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