I just setup my hosted WP Engine on Local. Got the local site running in the browser except I’m getting a warning. I don’t get this warning on the hosted site.
Warning: Use of undefined constant WPE_CLUSTER_ID - assumed 'WPE_CLUSTER_ID' (this will throw an Error in a future version of PHP) in /Users/paulna/Sites/cphfaithcourses/app/public/wp-content/mu-plugins/wpengine-common/plugin.php on line *14*
Call Stack
Time Memory Function Location
1 0.0001 411376 {main}( ) .../index.php **:** 0
2 0.0001 411656 require( '/Users/paulna/Sites/cphfaithcourses/app/public/wp-blog-header.php' ) .../index.php **:** 17
3 0.0001 412200 require_once( '/Users/paulna/Sites/cphfaithcourses/app/public/wp-load.php' ) .../wp-blog-header.php **:** 13
4 0.0002 412720 require_once( '/Users/paulna/Sites/cphfaithcourses/app/public/wp-config.php' ) .../wp-load.php **:** 37
5 0.0002 417400 require_once( '/Users/paulna/Sites/cphfaithcourses/app/public/wp-settings.php' ) .../wp-config.php **:** 77
6 0.0084 2435088 include_once( '/Users/paulna/Sites/cphfaithcourses/app/public/wp-content/mu-plugins/mu-plugin.php' ) .../wp-settings.php **:** 291
7 0.0086 2446232 require_once( '/Users/paulna/Sites/cphfaithcourses/app/public/wp-content/mu-plugins/wpengine-common/plugin.php' ) .../mu-plugin.php **:** 18
Was this site imported or pulled using Connect to WP Engine?
As far as a solution goes, if you add the following to your wp-config.php file before /* That's all, stop editing! Happy publishing. */, it should resolve the warning:
I’ve installed 5.2.1+2165 and pulled down the site I’m working on using Connect to WP Engine. I got exactly the same error. Should we be reporting this to WP Engine? Or is reporting here enough to get this issue looked at?
If we add this declaration to wp-config.php will this change be pushed to the live server when we use Push to WP Engine?
Experiencing a similar issue. The suggested fix for updating wp-config didn’t resolve the problem. Any other thoughts?
Warning: Use of undefined constant PWP_NAME - assumed ‘PWP_NAME’ (this will throw an Error in a future version of PHP) in C:\Users\redacted\Local Sites\redacted\app\public\wp-content\mu-plugins\wpengine-common\wpe-sec.php on line 63
Yes, when /mu-plugins/ has been removed the errors are gone and all is being displayed properly.
Considering you are now so close with WPE, is there a way not to pull them from the server at all or find some other solution that would not include manual intervention with each and single site?