Title: Multiple Issues When Logging Into WP Admin
Last modified: June 9, 2018

---

# Multiple Issues When Logging Into WP Admin

 *  [GeodesicDragon](https://wordpress.org/support/users/geodesicdragon/)
 * (@geodesicdragon)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/multiple-issues-when-logging-into-wp-admin/)
 * 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](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fmultiple-issues-when-logging-into-wp-admin%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [7 years, 11 months ago](https://wordpress.org/support/topic/multiple-issues-when-logging-into-wp-admin/#post-10382979)
 * 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://wordpress.org/plugins/health-check/](https://wordpress.org/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/](http://www.wpbeginner.com/plugins/how-to-deactivate-all-plugins-when-not-able-to-access-wp-admin/)
 *  Thread Starter [GeodesicDragon](https://wordpress.org/support/users/geodesicdragon/)
 * (@geodesicdragon)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/multiple-issues-when-logging-into-wp-admin/#post-10384565)
 * 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.’
    -  This reply was modified 7 years, 11 months ago by [GeodesicDragon](https://wordpress.org/support/users/geodesicdragon/).
    -  This reply was modified 7 years, 11 months ago by [GeodesicDragon](https://wordpress.org/support/users/geodesicdragon/).
 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [7 years, 11 months ago](https://wordpress.org/support/topic/multiple-issues-when-logging-into-wp-admin/#post-10384646)
 * >  got in touch with my uncle (who hosts the site)
 * How is he hosting it?
 *  Thread Starter [GeodesicDragon](https://wordpress.org/support/users/geodesicdragon/)
 * (@geodesicdragon)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/multiple-issues-when-logging-into-wp-admin/#post-10520970)
 * > 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)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [7 years, 10 months ago](https://wordpress.org/support/topic/multiple-issues-when-logging-into-wp-admin/#post-10520999)
 * 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](https://wordpress.org/support/users/geodesicdragon/)
 * (@geodesicdragon)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/multiple-issues-when-logging-into-wp-admin/#post-10521042)
 * 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.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 6 replies
 * 2 participants
 * Last reply from: [GeodesicDragon](https://wordpress.org/support/users/geodesicdragon/)
 * Last activity: [7 years, 10 months ago](https://wordpress.org/support/topic/multiple-issues-when-logging-into-wp-admin/#post-10521042)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
