Fatal error on line 19

(2 posts) (2 voices)
  • Started 1 month ago by jenworks
  • Latest reply from CSSJockey

Tags:

No tags yet.

  1. jenworks
    Member

    The plugin cannot activate because of this fatal error:

    Warning: require_once() [function.require-once]: Unable to access /virtual/users/e16532-17809/web/wp-content/plugins/custom-coming-soon-page../../../../wp-load.php in /virtual/users/e16532-17809/web/wp-content/plugins/custom-coming-soon-page/cj-coming-soon.php on line 19

    I noticed on line 19 it says:

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

    It seems that no matter how many directories you go back here (../../../../) it still tries to look for wp-load.php within this plugin directory instead of the website's main directory. How can I change this? Is this something I need to work out with my host, or can I modify the php code somehow? I wouldn't know where to begin.

    Thanks,
    Jen

    Posted 1 month ago #
  2. Hi, You can try changing the path in cj-coming-soon.php located under wp-content/plugins. Setup the the ../../ based on your directory structure.

    Let me know if you still face any issues with the same.

    Posted 1 month ago #

Reply

You must log in to post.