Closed stuwest closed 8 years ago
Try using basename( __DIR__ )
instead of WP_PLUGIN_DIR
hahah. it's so tempting to blame GoDaddy or PHP 5.4 but unfortunately in this case PEBKAC.
I was compressing the plugin already in a folder. Looks like core uses the zip archive name for the folder name so the plugin i uploaded was nested one level too deep. As a result, WP_PLUGIN_DIR . '/wp-cldr/wp-cldr.php';
failed because the plugin file was actually located in 'wp-cldr-29.0.0/wp-cldr/wp-cldr.php'
. Duh.
When re-installing the plugin on one of my old GoDaddy test sites running WP 4.4.2 on PHP 5.4.19 (after uninstalling an earlier version of the plugin) i got this:
That text is:
The offending code appears to be:
I haven't been able to reproduce on other sites yet, and it worked fine before I did the uninstall/reinstall.