• Resolved blakeage

    (@blakeage)


    I’m showing an error in the Apache error log when the cron runs to email about a recovered cart.

    PHP Fatal error: require_once(): Failed opening required ‘/home/wp-load.php’ (include_path=’.:/usr/share/php:/usr/share/pear’) in /home/novelchild_prod/shared/plugins/woocommerce-abandoned-cart/cron/wcal_send_email.php on line 16

    Any idea what I can do to fix it? I’m not sure why it’s checking /home, and not the /home/novelchild_prod/current/ folder.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor chetnapatel

    (@chetnapatel)

    Hi,

    Can you please let me know which version of our plugin is active on your website?

    I have noticed that you have changed the “wp-content” folder name. Can you please let us know that how did you change the folder name? Did you change it by any plugin?

    From our plugin file, we are checking that if the “wp-load.php” file exists in the folder then it will consider that path. Can you please let me know the “wp-load.php” file is exist in the “/home/novelchild_prod” path?

    I am not sure why it is checking “/home/wp-load.php” path for your site. I would need to check the issue on your website.

    Can you please create the Forum on our plugin’s forum page? Below is our plugin’s forum page link:
    http://www.tychesoftwares.com/forums/forum/woocommerce-abandon-cart-pro/

    Please let me know if you have any further question.

    Regards,
    Chetna Bhutka

    Thread Starter blakeage

    (@blakeage)

    I’m using version 3.3 of the plugin.

    So I have
    /home/novelchild_prod/current as the root of the website
    Under that, I have
    wp-content/plugins
    wp-content/uploads

    …as symlinks to the shared folder (/home/novelchild_prod/shared/plugins, etc.).

    It is finding the email script fine, but I’m not sure why it is looking in “/home” for anything?

    Thread Starter blakeage

    (@blakeage)

    wp-load.php exists in /home/novelchild_prod/current

    “current” is actually a symlink to a /releases folder by the way. For example:
    /home/novelchild_prod/current -> /home/novelchild_prod/releases/20170206035940

    Most of the WordPress files are physically in:
    /home/novelchild_prod/releases/20170206035940

    I am using Capistrano deployment, which is why there is so much symlinking.

    Plugin Contributor chetnapatel

    (@chetnapatel)

    Hi,

    Thank you for sharing directory list of your site.

    I have checked bit about Capistrano deployment and Symlink.

    Could please answer to my below question?

    The current path of your site is symlinking to the /release folder. So the root directory of your site is: /home/novelchild_prod/releases/20170206035940/

    But I have noticed in the PHP Fatal error which you had shared that our “wcal_send_email.php” file is located at below path:

    /home/novelchild_prod/shared/plugins/woocommerce-abandoned-cart/cron/wcal_send_email.php

    Can you please let me know that the error log path and the path which you shared both are the same or on the different installation?

    If I misunderstood your query then please let me know in details.

    Regards,
    Chetna Bhutka

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘PHP Fatal Error including wp-load.php’ is closed to new replies.