• Resolved kevin_abs

    (@kevin_abs)


    Just updated my plugin today and this message appears on the footer of my website:

    Warning: require(WP_PLUGIN_DIR/advanced-browser-check/browscap/browscap.php) [function.require]: failed to open stream: No such file or directory in /home/allbar5/public_html/wp-content/plugins/advanced-browser-check/abc-core.php on line 4

    Warning: require(WP_PLUGIN_DIR/advanced-browser-check/browscap/browscap.php) [function.require]: failed to open stream: No such file or directory in /home/allbar5/public_html/wp-content/plugins/advanced-browser-check/abc-core.php on line 4

    Fatal error: require() [function.require]: Failed opening required ‘WP_PLUGIN_DIR/advanced-browser-check/browscap/browscap.php’ (include_path=’.:/usr/lib/php:/usr/local/lib/php:/home/allbar5/php’) in /home/allbar5/public_html/wp-content/plugins/advanced-browser-check/abc-core.php on line 4

    https://wordpress.org/plugins/advanced-browser-check/

Viewing 14 replies - 1 through 14 (of 14 total)
  • Plugin Author Mattias

    (@darkwhispering)

    Hi,

    Are you using a cache plugin on your site? If so, please make sure to clear your cache. That solved the issue for another user with the same issue.

    Thread Starter kevin_abs

    (@kevin_abs)

    Hi Mattias,

    Yes, I cleared the cache, cleared my browser cache, and purged my CDN but unfortunately that didn’t help me.

    Plugin Author Mattias

    (@darkwhispering)

    Hmm, okay.

    What caching plugin are you using on your site?

    The reason you have the error is cuz the constant WP_PLUGIN_DIR don’t work for you. This is a contact that WordPress core creates so it should be there.

    I will see if I can find any reason why that happens.

    Thread Starter kevin_abs

    (@kevin_abs)

    I’m using W3 Total Cache. Thanks for the help! I may resort to an older version in the mean time.

    Plugin Author Mattias

    (@darkwhispering)

    W3TC, that makes me even more confused.

    I use W3TC myself on 2 sites (including my darkwhisperin.com) and with the latest version of my Adv Browser Check plugin without any issues at all.
    I only got your error once directly after updating. But clearing all caches solved it and never seen it since.

    Can you test.
    1. Uninstall the plugin completely, like delete the folder in wp-content/plugins
    2. Clear ALL caches in W3TC again
    3. Install the plugin and activate it
    4. Clear all caches again

    Let me know if fixes the issue or not.

    Thread Starter kevin_abs

    (@kevin_abs)

    Followed your steps but unfortunately still encountered the same issues.

    Plugin Author Mattias

    (@darkwhispering)

    Okay, thanks to testing.

    I will continue see if I can find any reasons why this can happen. I will update you when I have something.

    Plugin Author Mattias

    (@darkwhispering)

    Hi again,

    I have updated the plugin to version 3.0.2 which replaces the WP_PLUGIN_DIR constant with the recommended plugin_dir_path() function.

    Please update and let me know if you still have problems or not.

    Thanks

    Thread Starter kevin_abs

    (@kevin_abs)

    Just updated and now this error pops up but the others are gone:

    Fatal error: Call to undefined function plugin_dir_path() in /home/allbar5/public_html/wp-content/plugins/advanced-browser-check/abc-core.php on line 4

    Plugin Author Mattias

    (@darkwhispering)

    what?!?

    It seems like the WP core is not loading for you. Can you try edit advanced-browser-cache.php on line 16.

    Replace the path in “require_once()” to the path to you wp-load.php file.
    ** your path should be something like after edit “/home/allbar5/public_html/wp-load.php”.

    If that solves your problems its definitely the wp-load.php not being loaded as it should.

    In the meantime, I will search for a better way to include the wp-load.php file.

    Thread Starter kevin_abs

    (@kevin_abs)

    Made the changes on line 16 but still no good! 🙁

    Not sure if this will help but this is it appearing: http://imgur.com/RC3g0dx

    Plugin Author Mattias

    (@darkwhispering)

    I have updated the plugin to version 3.0.3 that change the way the AJAX call are made.

    It is now made with the WordPress wp_ajax hook so I don’t have to load wp-load.php manually in the script anymore. I hope this will solve the issue you have.

    Please update and let me know.

    Thread Starter kevin_abs

    (@kevin_abs)

    Hi Mattias,

    Updated and I’m not receiving any errors. Looks good! I’ll do some further testings later today.

    Plugin Author Mattias

    (@darkwhispering)

    Great to hear that it works for you know.

    Unfortunately others have new issues instead. It never ends… 🙂

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘Browscap.php Error’ is closed to new replies.