首页 > 解决方案 > Require wp-load.php returns error now without code change, the path worked until now

问题描述

I am using WordPress functions inside sub-directory of my Wordpress site. I am including the wp-load.php using the following code:

require($_SERVER['DOCUMENT_ROOT'].'/wp-load.php');

It was working fine until day before yesterday. No change was made in the program or location of wp-load.php as the Wordpress site is also working fine. It has started to generate error

require(/wp-load.php): failed to open stream: No such file or directory in /home1/mysite/public_html/processes/forms/chklogin.php on line 3

The wp-load.php file is right there as it was before in the site root. There is no change in .htaccess too.

What is going on ?

标签: phpwordpress

解决方案


推荐阅读