Ready to get started?Download WordPress


Multi-language Responsive Contact Form
Failed opening wp-load.php error after activating plugin (2 posts)

  1. Travis Tubbs
    Posted 2 months ago #

    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.


  2. August Infotech
    Plugin Author

    Posted 2 months ago #

    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.


    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


You must log in to post.

About this Plugin

About this Topic