Setting SCRIPT_DEBUG or WP_DEBUG_LOG fixes theme-changing problem.
-
I have just provisioned a Linode with Nginx and WordPress (first time).
Everything works except I cannot change the theme. When I try to do “live preview” or “save and activate” I get the spinning busy icon forever. The browser used doesn’t matter. Clearing caches has no effect, all plugins are disabled.
The javascript console gives these error messages when this problem occurs:
GET http://(url witheld).com/wp-admin/load-scripts.php?c=1&load%5B%5D=undersco…e-view,imgareaselect,image-edit,customize-models,customize-views&ver=4.2.2 net::ERR_INCOMPLETE_CHUNKED_ENCODING
color-scheme-control.js?ver=20141216:78 Uncaught ReferenceError: wp is not defined(anonymous function) @ color-scheme-control.js?ver=20141216:78
Strangely, setting the WP_DEBUG_LOG or the SCRIPT_DEBUG flag fixes the problem, even if WP_DEBUG is set to false.
This happens with a vanilla “just downloaded” WordPress.
Since I am new to provisioning servers maybe I have something set wrong in my PHP or NGINX setup?
Thanks for any help or comments
The topic ‘Setting SCRIPT_DEBUG or WP_DEBUG_LOG fixes theme-changing problem.’ is closed to new replies.