• Resolved anoshnea

    (@anoshnea)


    Hi, I have a self hosted WP site which I left for too long without updating. I am unable to log into my admin page to fix it. Any advice please?!

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hi, anoshnea, you could ask your web hosting provider for additional assistance.

    Do you have a file directory system that you can access from within the back end of your web hosting service (or have FTP access to your files)?

    If so, could you please try copy and pasting the code that is within the index.php file that is causing the error into a new reply in this topic so we can help in troubleshooting?

    Thread Starter anoshnea

    (@anoshnea)

    Hi Ian, thanks for your reply. Yes, I have FTP, this is whats in index.php:

    <?php/** * Front to the WordPress application. This file doesn't do anything, but loads
     * wp-blog-header.php which does and tells WordPress to load the theme.
     *
     * @package WordPress
     */
    
    /**
     * Tells WordPress to load the WordPress theme and output it.
     *
     * @var bool
     */
    define('WP_USE_THEMES', true);
    
    /** Loads the WordPress Environment and Template */
    require( dirname( __FILE__ ) . '/wp-blog-header.php' );
    sab

    (@sainikbiswas)

    Hi @anoshnea I can see that your server is running PHP 5.3 on IIS 8.0. You have to change your PHP version from 5.3 preferably to v8.0 or v7.4 or v7.3 preferably which is required for WordPress.

    For instance as you can see this page in html here opens

    https://anoshnea.com/readme.html

    but this does not

    https://anoshnea.com/index.php

    Your PHP settings most probably need configuration. This should hopefully help.

    Thread Starter anoshnea

    (@anoshnea)

    Thanks for the advice. The hosting service replied:

    We have changed latest PHP supported version 7.4.x to your website and it is still throwing following error:

    PHP Fatal error: Uncaught Error: Call to undefined function esc_html() in C:\HostingSpaces\anoshnea\anoshnea.com\wwwroot\wp-admin\index.php:102
    Stack trace:
    #0 {main}
    thrown in C:\HostingSpaces\anoshnea\anoshnea.com\wwwroot\wp-admin\index.php on line 102`

    Any idea what is going on?… thanks!!

    sab

    (@sainikbiswas)

    @anoshnea Hi please reach out to your hosting provider accuwebhosting.

    https://anoshnea.com/wp-config.php

    If you right click and do a view page source you will notice that your entire wp-config file is displayed along with all your database login credentials which is a significant security threat. What is happening here is that the PHP files are being delivered as text files, which means the PHP interpreter is not executed most probably on the server side.

    The last thing that I can suggest is creating an empty file with the following code content <?php phpinfo(); ?> The output might provide some clues.

    You should ask your hosting provider to fix this for you immediately, and once this is fixed kindly update your database login credentials which are displayed in wp-config.php.

    Thread Starter anoshnea

    (@anoshnea)

    Thanks for your advice and support. My site and dashboard are working well again.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Out of date WP’ is closed to new replies.