Title: Failed opening wp-load.php error after activating plugin
Last modified: August 21, 2016

---

# Failed opening wp-load.php error after activating plugin

 *  Resolved [Travis Tubbs](https://wordpress.org/support/users/travistubbs/)
 * (@travistubbs)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/failed-opening-wp-loadphp-error-after-activating-plugin/)
 * Recently installed this plugin. After activating it, I get the following errors:
 *     ```
       Warning: include_once(/[DocumentRootPath]/wp-load.php) [function.include-once]: failed to open stream: No such file or directory in /[DocumentRootPath]/content/plugins/responsive-contact-form/ai-responsive-contact-form.php on line 68
   
       Warning: include_once() [function.include]: Failed opening '/[DocumentRootPath]/wp-load.php' for inclusion (include_path='.:/usr/local/php-5.3.27/share/pear') in /[DocumentRootPath]/content/plugins/responsive-contact-form/ai-responsive-contact-form.php on line 68
       ```
   
 * Looking at line 68 in `ai-responsive-contact-form.php`, I’m noticing that it’s
   hardcoded to `include_once($_SERVER['DOCUMENT_ROOT'].'/wp-load.php' );`. My WordPress
   files are stored in a subfolder of my document root while my content (plugins,
   themes, uploads, etc.) are stored in a content folder within my document root.
 * I know next to nothing about writing plugins for WordPress, but I think you’re
   suppose to use `get_home_path()` to get the absolute path to the WordPress install
   folder? Changing `$_SERVER['DOCUMENT_ROOT']` to that seemed to fix the issue 
   for me.
 * [https://wordpress.org/plugins/responsive-contact-form/](https://wordpress.org/plugins/responsive-contact-form/)

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

 *  Plugin Author [August Infotech](https://wordpress.org/support/users/augustinfotech/)
 * (@augustinfotech)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/failed-opening-wp-loadphp-error-after-activating-plugin/#post-4990446)
 * Hello Travis Tubbs,
 * This problem only occurs with you so we cant change plugin functionality but 
   you can do this by just simply change below code with replacing new one.
 * File in which you have to change code.
 * wp-content\plugins\responsive-contact-form\ai-responsive-contact-form.php
 * Line No : 68 : include_once($_SERVER[‘DOCUMENT_ROOT’].’/wp-load.php’ );
 * Replace this above code with this below code.
    include_once(get_home_path().’/
   wp-load.php’ );
 * If you have still any query regarding this then please feel free to tell us.
 * Thanks & Regards,
    August Infotech
 *  [thulag](https://wordpress.org/support/users/thulag/)
 * (@thulag)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/failed-opening-wp-loadphp-error-after-activating-plugin/#post-4990668)
 * Im having the same problem. tried to replace the line. didn’t work. got another
   error line.
 *  Plugin Author [August Infotech](https://wordpress.org/support/users/augustinfotech/)
 * (@augustinfotech)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/failed-opening-wp-loadphp-error-after-activating-plugin/#post-4990669)
 * Hello,
 * We have just resolved the issue in our latest version of plugin. Kindly download
   or update to our latest version of plugin and let us know if you have any query.
   We thank you for your patience.
 * Thanks & Regards,
    August Infotech
 *  Plugin Author [August Infotech](https://wordpress.org/support/users/augustinfotech/)
 * (@augustinfotech)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/failed-opening-wp-loadphp-error-after-activating-plugin/#post-4990678)
 * Hello,
 * We think might be your problem will be resolved and if you have still any query
   regarding this then please tell us.
 * Thanks & Regards,
    August Infotech

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

The topic ‘Failed opening wp-load.php error after activating plugin’ is closed to
new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/responsive-contact-form_191919.svg)
 * [Multi-language Responsive Contact Form](https://wordpress.org/plugins/responsive-contact-form/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/responsive-contact-form/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/responsive-contact-form/)
 * [Active Topics](https://wordpress.org/support/plugin/responsive-contact-form/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/responsive-contact-form/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/responsive-contact-form/reviews/)

## Tags

 * [get_home_path](https://wordpress.org/support/topic-tag/get_home_path/)
 * [subfolder](https://wordpress.org/support/topic-tag/subfolder/)
 * [wp-load.php](https://wordpress.org/support/topic-tag/wp-load-php/)

 * 4 replies
 * 3 participants
 * Last reply from: [August Infotech](https://wordpress.org/support/users/augustinfotech/)
 * Last activity: [11 years, 5 months ago](https://wordpress.org/support/topic/failed-opening-wp-loadphp-error-after-activating-plugin/#post-4990678)
 * Status: resolved