• Resolved sheldon54

    (@sheldon54)


    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 by wp-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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter sheldon54

    (@sheldon54)

    htaccess

    • This reply was modified 6 years ago by sheldon54.
    Thread Starter sheldon54

    (@sheldon54)

    Htaccess file
    #
    RewriteEngine on

    RewriteOptions inherit
    RewriteCond %{HTTP_HOST} ^pyains\.com$ [OR]
    RewriteCond %{HTTP_HOST} ^www\.pyains\.com$
    RewriteCond %{REQUEST_URI} !^/\.well-known/acme-challenge/[0-9a-zA-Z_-]+$
    RewriteCond %{REQUEST_URI} !^/\.well-known/cpanel-dcv/[0-9a-zA-Z_-]+$
    RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
    RewriteRule ^/?$ “http\:\/\/pyainsurancegroup\.com\/” [R=301,L]
    # Use PHPstable as default
    AddHandler application/x-httpd-php-stable .php
    <IfModule mod_suphp.c>
    suPHP_ConfigPath /opt/phpstable/lib
    </IfModule>
    #
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^WP/index.php$ – [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /WP/index.php [L]
    </IfModule>
    # End WordPress

    • This reply was modified 6 years ago by sheldon54.
    Thread Starter sheldon54

    (@sheldon54)

    found issue

    paolamelli

    (@paolamelli)

    My website does not load, error 500. Please help!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Site not loading, error 404’ is closed to new replies.