dongshiliao7990 2019-07-03 11:23
浏览 72

找不到类Requests_Hooks。 我已经做了研究并重新安装了wordpress并把相同版本的requests文件夹放了?

I have blog installed on my sub domain. The wordpress installed is also on same server. When i try to access the blog from main website Like this

define('WP_USE_THEMES', false);

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

It throws an error

PHP Fatal error:  Class 'Requests_Hooks' not found in pathtoblog/blog/wp-includes/class-wp-http-requests-hooks.php on line 17

I have re-installed the wordpress. Updated the wordpress to latest version. Put the Requests folder again. None works

define('WP_USE_THEMES', false);

require($_SERVER['DOCUMENT_ROOT'] . "/blog/wp-load.php");// Error occurs here 

also tried

require($_SERVER['DOCUMENT_ROOT'] . "/blog/wp-blog-header.php"); // Same error
  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥200 总是报错,能帮助用python实现程序实现高斯正反算吗?有偿
    • ¥15 对于squad数据集的基于bert模型的微调
    • ¥15 为什么我运行这个网络会出现以下报错?CRNN神经网络
    • ¥20 steam下载游戏占用内存
    • ¥15 CST保存项目时失败
    • ¥15 树莓派5怎么用camera module 3啊
    • ¥20 java在应用程序里获取不到扬声器设备
    • ¥15 echarts动画效果的问题,请帮我添加一个动画。不要机器人回答。
    • ¥15 Attention is all you need 的代码运行
    • ¥15 一个服务器已经有一个系统了如果用usb再装一个系统,原来的系统会被覆盖掉吗