• Resolved kenjigarland

    (@kenjigarland)


    Hi there — just a heads up that on WP installs whose wp-content directories have been moved or renamed to anything other than wp-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 of ABSPATH . 'wp-content/plugins', since that will reflect the WP_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.)

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author FARAZFRANK

    (@farazfrank)

    Hi @kenjigarland,

    Try to delete the plugin and re-install once.

    Hope that will fix.

    If not, let me know, I will look into this.

    Thanks

    Thread Starter kenjigarland

    (@kenjigarland)

    Hi @farazfrank — that was the first thing I tried, because at first glance, it looked like the error message was saying that the class-getting-start-plugin-helper.php file was simply missing. But the plugin is actually looking for that file in the wrong place (wp-content/ instead of assets/, which is where this particular WordPress site is configured to store plugin files).

    Thanks!

    Plugin Author FARAZFRANK

    (@farazfrank)

    Thanks for your valuable feedback.

    Is the error still exist or It was the only first time?

    I can confirm the same issue on an additional site:

    Warning: require_once(/wordpress/core/5.6.1/wp-content/plugins/flickr-album-gallery/plugin-notice/admin/class-getting-start-plugin-helper.php): failed to open stream: No such file or directory in /srv/htdocs/wp-content/plugins/flickr-album-gallery/plugin-notice/admin/getting-started.php on line 9
    
    Fatal error: require_once(): Failed opening required '/wordpress/core/5.6.1/wp-content/plugins/flickr-album-gallery/plugin-notice/admin/class-getting-start-plugin-helper.php' (include_path='/:.') in /srv/htdocs/wp-content/plugins/flickr-album-gallery/plugin-notice/admin/getting-started.php on line 9

    Installing, reinstalling didn’t work. This is the first time I’ve seen this error with your plugin on the site and it still exists upon reinstall!

    Plugin Author FARAZFRANK

    (@farazfrank)

    Guys, please update the plugin to the newest version 2.1.8.

    And let me know the feedback.

    Thanks

    Plugin Author FARAZFRANK

    (@farazfrank)

    Guys can let me know about the new version.

    Thanks

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Latest version of the plugin causes fatal errors’ is closed to new replies.