• Resolved cviebrock

    (@cviebrock)


    I’m trying to use the plugin, but I’m only seeing the following errors in the widget:

    Maintenance fatal error: Not Found
    Server error occurred: Not Found

    I believe the issue has to do with this line of code in src/endpoints/index.php:

    require_once('../../../../../wp-load.php');

    Our WP set up is slightly non-standard, so the wp-load.php file isn’t in that location, relative to the plugins.

    Everything I’ve been able to find online about locating this file seems to indicate that you shouldn’t need to include it, and that there is a better way of doing things. e.g.:

    https://ottopress.com/2010/dont-include-wp-load-please/

    Any chance of you refactoring the plugin so that those of us with non-standard setups can still use it?

    Thanks!

    https://www.ads-software.com/plugins/wise-chat/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Marcin

    (@marcinlawrowski)

    Hi,

    thank you for reporting this. File src/endpoints/index.php is requested directly by the chat due to performance advantages, so there is now way to tell where exactly wp-load.php is. In standard installation it works, however, if you move plugins directory somewhere else it will not work.

    I am aware of this problem and in future version I will try to find a solution for this. There will be always a need to reference something from WordPress, so I cannot eliminate such require_once statements.

    Thanks
    Marcin

    I got the same error.
    Solved creating the wp-content/plugin folder instead my custom folder
    and adding there the plugin.
    I ve it twice but works perfect!
    thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Can't find wp-load.php’ is closed to new replies.