Site not loading, error 404
-
WP site is not loading. These are the errors that are in the logs. I created a new folder Dummy with clean install of WP and still can’t access the admin page. For the original site I get 404 page not found. WordPress is located in a folder named WP. It was working fine then nothing.
I have contacted the host and they have done some things with the htaccess file and check database but site is still not loading.
The errors are coming when I attempt to access the admin side from both folders, dummy (newly created clean install) and WP folder (existing site location).
Now from the website address it just goes to the index of file manager. Any help greatly appreciated.//Dummy/ WP-Settings.php
Line 18-21
// Include files required for initialization.
require( ABSPATH . WPINC . ‘/load.php’ );
require( ABSPATH . WPINC . ‘/default-constants.php’ );
require_once( ABSPATH . WPINC . ‘/plugin.php’ );WP-includes/script-loader.php
Line 137-142
//wpApiSettings
is also used bywp-api
, which depends on this script.
did_action( ‘init’ ) && $scripts->localize( ‘wp-api-request’, ‘wpApiSettings’, array(
‘root’ => esc_url_raw( get_rest_url() ),
‘nonce’ => ( wp_installing() && ! is_multisite() ) ? ” : wp_create_nonce( ‘wp_rest’ ),
‘versionString’ => ‘wp/v2/’,
) );Error
[27-Sep-2018 13:01:23 UTC] PHP Fatal error: Call to undefined function get_rest_url() in /home/pyains/public_html/wp-includes/script-loader.php on line 139//WP/ WP-settings.php
line 222
require( ABSPATH . WPINC . ‘/rest-api.php’ );
Errors
27-Sep-2018 13:00:25 UTC] PHP Warning: require(/home/pyains/public_html/wp-includes/rest-api.php): failed to open stream: Permission denied in /home/pyains/public_html/wp-settings.php on line 222[27-Sep-2018 13:00:25 UTC] PHP Fatal error: require(): Failed opening required ‘/home/pyains/public_html/wp-includes/rest-api.php’ (include_path=’.:/opt/php54/lib/php’) in /home/pyains/public_html/wp-settings.php on line 222
[27-Sep-2018 13:00:31 UTC] PHP Warning: require(/home/pyains/public_html/wp-includes/rest-api.php): failed to open stream: Permission denied in /home/pyains/public_html/wp-settings.php on line 222
[27-Sep-2018 13:00:31 UTC] PHP Fatal error: require(): Failed opening required ‘/home/pyains/public_html/wp-includes/rest-api.php’ (include_path=’.:/opt/php54/lib/php’) in /home/pyains/public_html/wp-settings.php on line 222
[27-Sep-2018 13:01:44 UTC] PHP Warning: require(/home/pyains/public_html/wp-includes/rest-api.php): failed to open stream: Permission denied in /home/pyains/public_html/wp-settings.php on line 222
[27-Sep-2018 13:01:44 UTC] PHP Fatal error: require(): Failed opening required ‘/home/pyains/public_html/wp-includes/rest-api.php’ (include_path=’.:/opt/php54/lib/php’) in /home/pyains/public_html/wp-settings.php on line 222
[27-Sep-2018 13:02:39 UTC] PHP Warning: require(/home/pyains/public_html/wp-includes/rest-api.php): failed to open stream: Permission denied in /home/pyains/public_html/wp-settings.php on line 222
[27-Sep-2018 13:02:39 UTC] PHP Fatal error: require(): Failed opening required ‘/home/pyains/public_html/wp-includes/rest-api.php’ (include_path=’.:/opt/php54/lib/php’) in /home/pyains/public_html/wp-settings.php on line 222
line228
require( ABSPATH . WPINC . ‘/rest-api/endpoints/class-wp-rest-attachments-controller.php’ );
Error
[27-Sep-2018 13:01:23 UTC] PHP Warning: call_user_func_array() expects parameter 1 to be a valid callback, function ‘rest_cookie_collect_status’ not found or invalid function name in /home/pyains/public_html/wp-includes/class-wp-hook.php on line 288
- The topic ‘Site not loading, error 404’ is closed to new replies.