Latest version of the plugin causes fatal errors
-
Hi there — just a heads up that on WP installs whose
wp-content
directories have been moved or renamed to anything other thanwp-content
, this plugin currently causes fatal errors when users attempt to access the WP admin interface.Example (full paths edited for brevity):
require_once(): Failed opening required '[...]/wp-content/plugins/flickr-album-gallery/plugin-notice/admin/class-getting-start-plugin-helper.php' (include_path='.:') in [...]/assets/plugins/flickr-album-gallery/plugin-notice/admin/getting-started.php on line 9
I’d recommend using the
plugin_dir_path()
function instead ofABSPATH . 'wp-content/plugins'
, since that will reflect theWP_CONTENT_DIR
constant if it has been defined in wp-config.php.(If anyone else has this problem, you can work around it by making
wp-content
a symlink to your actual, renamed wp-content directory.)
- The topic ‘Latest version of the plugin causes fatal errors’ is closed to new replies.