php - 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 ?
解决方案
推荐阅读
- sql - 如何使用 SQL 和通配符搜索 %?
- hash - 如何用盐创建 sha256 哈希
- javascript - 如何让两个 div 屏幕显示和隐藏在相同的高度
- ios - 如何创建一个带有可选辅助 View 参数的 SwiftUI 视图?
- python - 如何用 unittest 覆盖我的 Python 代码
- sql - 根据 jsonb 数组中的嵌套键查找行
- javascript - 在二叉搜索树上查找最小高度 - 如何跟踪高度的倒数第二次更新
- html - 将html片段从A翻译成B
- python - 无法在 Python 中连接到 MySql
- c# - C# 中是否有 Python 的 binascii.b2a_hex 的等效函数?