• Resolved andyrey

    (@andyrey)


    Hello!

    I am a novice. I am following your excellent instructions at How to Offload WordPress Media Files to Amazon S3: Accelerate with Cloudflare CDN – WP Fitter
    I have set up Cloudflare, S3, buckets etc so far with no errors.

    Domain is livemusicbusiness.com. Domain for bucket is media.livemusicbusiness.com

    I am at the stage of adding the constants to the wp-config.php. I have uploaded the edited version with my detail replacing the entries in the template.
    I get this message:
    “Fatal error: Uncaught Error: Undefined constant “ADVMO_AWS_KEY” in /home/livemusi/public_html/wp-config.php:83 Stack trace: #0 /home/livemusi/public_html/wp-load.php(50): require_once() #1 /home/livemusi/public_html/wp-admin/admin.php(34): require_once(‘/home/livemusi/…’) #2 /home/livemusi/public_html/wp-admin/tools.php(40): require_once(‘/home/livemusi/…’) #3 {main} thrown in /home/livemusi/public_html/wp-config.php on line 83″

    Line 34 is define( ‘DB_HOST’, ‘localhost:3306’ ); which is MySQL hostname

    Line 40 is define( ‘DB_COLLATE’, ” );

    Line 82 is obviously the AWS access key which I have copied an pasted directly form AWS.

    Can you advise me as to what I am doing wrong?

    Many thanks,

    Andy

Viewing 1 replies (of 1 total)
  • Plugin Author Masoud Golchin

    (@masoudin)

    Hi Adny,

    Please add the necessary constants to wp-config.php and ensure that the AWS region is defined as well.

Viewing 1 replies (of 1 total)

The topic ‘Undefined constant “ADVMO_AWS_KEY”’ is closed to new replies.