• Resolved Bunty

    (@bhargavbhandari90)


    I am getting following error on my site with PHP 7.2

    PHP Fatal error: require(): Failed opening required ‘../../../../wp-load.php’ (include_path=’.:/usr/share/php’) in /www/wp-content/plugins/simple-ajax-chat/resources/sac.php on line 10″

    Working fine with other php versions

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Jeff Starr

    (@specialk)

    Does the file exist on the server in that location?

    Thread Starter Bunty

    (@bhargavbhandari90)

    Hi Jeff,

    So the file wp-load.php is not there on my site’s root.

    Let me try to explain the scenario her::

    So my site is hosted on flywheel, and they setup all the WP sites on their cloud platform. Meaning, the core files of WP is the common for all the sites.

    See the folder structure here: http://prntscr.com/npoeto

    I’ve asked them how they suggest to include wp-load.php in plugins.

    I’ll share their response.

    Plugin Author Jeff Starr

    (@specialk)

    Thanks for the infos, let me know the response if there is a way I would be glad to include it in the plugin.

    Thread Starter Bunty

    (@bhargavbhandari90)

    Hi Jeff,

    Got the response. Below what they are saying:

    ====

    A better way to get to WordPress dynamically would be to:

    1. Include the wp-config.php file from the site root (so that the ABSPATH variable can be used—ABSPATH is defined in the wp-config file, and points to wherever the core files live); and
    2. Point to wp-load.php with ABSPATH . ‘/wp-load.php’

    ===

    That make sense to me. What do you think?

    Plugin Author Jeff Starr

    (@specialk)

    Yes that looks like a better way of doing it. I will take a closer look and maybe implement for the next update if everything looks good. Thank you Bunty for the infos.

    Thread Starter Bunty

    (@bhargavbhandari90)

    Sounds good. Looking forward to it buddy.

    Thanks

    Plugin Author Jeff Starr

    (@specialk)

    Just to follow up with this, the reported bug is fixed in the upcoming version. Should be available soon. Thanks again for the feedback, Bunty.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘PHP Fatal error: with PHP 7.2’ is closed to new replies.