• I am having multiple issues while trying to log into the admin panel of my website. I get a blank screen after entering my password; enabling Debug mode via wp-config.php shows the following errors:

    Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/http/chris.urquhart/curquhart.co.uk/http_site/wp-includes/wp-db.php on line 1562

    Notice: wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.) in /home/http/chris.urquhart/curquhart.co.uk/http_site/wp-includes/functions.php on line 4148

    Warning: Cannot modify header information – headers already sent by (output started at /home/http/chris.urquhart/curquhart.co.uk/http_site/wp-includes/wp-db.php:1562) in /home/http/chris.urquhart/curquhart.co.uk/http_site/wp-admin/includes/misc.php on line 1116

    I got in touch with my uncle (who hosts the site) and he said the first issue had been fixed; I assume this means he changed it from MySQL to something else, but I still get the white screen of death.

    Line 1562 of wb-db.php looks like this:

    $this->dbh = mysql_connect( $this->dbhost, $this->dbuser, $this->dbpassword, $new_link, $client_flags );

    Line 4148 of functions.php looks like this:

    trigger_error( sprintf( __( '%1$s was called <strong>incorrectly</strong>. %2$s %3$s' ), $function, $message, $version ) );

    And line 1116 of misc.php looks like this:

    header( sprintf( 'Referrer-Policy: %s', $policy ) );

    I’m not an expert in PHP, so I can’t understand why these things are causing me such a headache; any and all help in fixing these issues is greatly appreciated.

    If I’ve missed out any information, please let me know and I’ll provide it ASAP.

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

Viewing 6 replies - 1 through 6 (of 6 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    What version of PHP are you using? How is it being hosted? What version of WordPress are you using? Is the PHP library php-mysqlnd installed?

    The lines you posted are where the errors are detected, not where the errors occur.

    This may be a plugin or theme conflict. Please attempt to disable all plugins, and use one of the default (Twenty*) themes. If the problem goes away, enable them one by one to identify the source of your troubles.

    If you can install plugins, install “Health Check”: https://ww.wp.xz.cn/plugins/health-check/ On the troubleshooting tab, you can click the button to disable all plugins and change the theme for you, while you’re still logged in, without affecting normal visitors to your site.

    See http://www.wpbeginner.com/plugins/how-to-deactivate-all-plugins-when-not-able-to-access-wp-admin/

    Thread Starter GeodesicDragon

    (@geodesicdragon)

    When you say ‘How is it being hosted?’ do you mean WordPress itself, or PHP? I’m afraid I’m not sure what you are referring to.

    To answer your other question, I am using version 4.9.6 of WordPress.

    I have also manually updated the two plugins I use – Akismet and Cryout Serious Theme Settings – as well as my theme (Mantra).

    Attempting to force WordPress to use the default theme doesn’t work either; I get a message saying ‘The theme directory “mantra” does not exist.’

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    got in touch with my uncle (who hosts the site)

    How is he hosting it?

    Thread Starter GeodesicDragon

    (@geodesicdragon)

    How is he hosting it?

    I asked him, but he’s been busy with his actual paying work lately, so I’ve not had a reply. I did find a ‘phpinfo’ file on my server, however, and reading it has provided me a whole heap of information — though it might as well be written in Welsh for all the sense it makes to me.

    Is there anything in said file that might help?

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    The mysql_connect message indicates that the mysql php libraries are out of date or there’s an old plugin or theme.

    If you’ve disabled *all plugins* and changed the theme to twentyseventeen and still have the problem, then it’s a hosting issue.

    Thread Starter GeodesicDragon

    (@geodesicdragon)

    I tried changing the theme to twentyseventeen, but nothing happened.

    Looks like I’ll have to send my uncle another email.

    Thanks for your help thus far.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Multiple Issues When Logging Into WP Admin’ is closed to new replies.