• Resolved southafricanrob

    (@southafricanrob)


    Hi there,
    I’m using your plugin and really enjoying the simple setup for using Cloudfront CDN.

    I am however getting warnings about constants being defined more than once – I am using and Elastic Beanstalk environment. I can hide the errors but would rather understand why your plugin is triggering them?

    Thanks

    Warning: Constant AS3CF_SETTINGS already defined in /var/app/current/wp-config.php on line 4 Warning: Constant WP_HOME already defined in /var/app/current/wp-config.php on line 12 Warning: Constant WP_SITEURL already defined in /var/app/current/wp-config.php on line 13 Warning: Constant DB_NAME already defined in /var/app/current/wp-config.php on line 15 Warning: Constant DB_USER already defined in /var/app/current/wp-config.php on line 16 Warning: Constant DB_PASSWORD already defined in /var/app/current/wp-config.php on line 17 Warning: Constant DB_HOST already defined in /var/app/current/wp-config.php on line 18 Warning: Constant DB_CHARSET already defined in /var/app/current/wp-config.php on line 19 Warning: Constant DB_COLLATE already defined in /var/app/current/wp-config.php on line 20 Warning: Constant AUTH_KEY already defined in /var/app/current/wp-config.php on line 22 Warning: Constant SECURE_AUTH_KEY already defined in /var/app/current/wp-config.php on line 23 Warning: Constant LOGGED_IN_KEY already defined in /var/app/current/wp-config.php on line 24 Warning: Constant NONCE_KEY already defined in /var/app/current/wp-config.php on line 25 Warning: Constant AUTH_SALT already defined in /var/app/current/wp-config.php on line 26 Warning: Constant SECURE_AUTH_SALT already defined in /var/app/current/wp-config.php on line 27 Warning: Constant LOGGED_IN_SALT already defined in /var/app/current/wp-config.php on line 28 Warning: Constant NONCE_SALT already defined in /var/app/current/wp-config.php on line 29 Warning: Constant FORCE_SSL_ADMIN already defined in /var/app/current/wp-config.php on line 31 Warning: Constant WP_MEMORY_LIMIT already defined in /var/app/current/wp-config.php on line 32 Warning: Constant WP_POST_REVISIONS already defined in /var/app/current/wp-config.php on line 33 Warning: Constant DISABLE_WP_CRON already defined in /var/app/current/wp-config.php on line 34 Warning: Constant WP_DEBUG already defined in /var/app/current/wp-config.php on line 35 Warning: Constant WP_DEBUG_LOG already defined in /var/app/current/wp-config.php on line 36 Warning: Constant AWS_CDN_Domain already defined in /var/app/current/wp-config.php on line 38 Warning: Constant AWS_CDN_Isactive already defined in /var/app/current/wp-config.php on line 39

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter southafricanrob

    (@southafricanrob)

    I have investigated further and found that it appears wp-config.php is being included multiple times in the wpaws_cdn_content and wpaws_cdn_stylescripts functions in class-awn-cdn.php.

    In my case (using Elastic Beanstalk and declaring the constants in the EB environment variables rather than in wp-config.php itself I am getting multiple (±5000) php errors.

    Shouldn’t include($wpconfig); in these functions rather be include_once($wpconfig); to first check if the file has been loaded ? In my case this resolves the php errors.

    @southafricanrob : Thank you for the hint, I saw the same problem when debugging a different issue and viewing my debug log, so at least this one I could fix instantly ??

    Plugin Author luckychingi

    (@luckychingi)

    code fix applied in version 2.0.13

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Multiple Warnings re wp-config.php on AWS’ is closed to new replies.