Title: PHP update
Last modified: August 20, 2019

---

# PHP update

 *  [cathyp10](https://wordpress.org/support/users/cathyp10/)
 * (@cathyp10)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/php-update-9/)
 * Update of PHP doesn’t work on my site. I haven’t updated before because I have
   hardened PHP and it tells me I don’t need to. But now I cannot update wordpress
   or jetpack because I am using 5.4. I used PHP compatibility checker which said
   ok and so I changed to PHP version 7 on my c panel. Then I couldn’t log in to
   my site.
    error- Fatal error: Uncaught Error: Call to undefined function mysql_connect()
   in /home/granizcm/public_html/wp-includes/wp-db.php:1645 Stack trace: #0 /home/
   granizcm/public_html/wp-includes/wp-db.php(639): wpdb->db_connect() #1 /home/
   granizcm/public_html/wp-includes/load.php(435): wpdb->__construct(‘granizcm_wp569’,‘
   S]h15@2SPw’, ‘granizcm_wp569’, ‘localhost’) #2 /home/granizcm/public_html/wp-
   settings.php(109): require_wp_db() #3 /home/granizcm/public_html/wp-config.php(
   89): require_once(‘/home/granizcm/…’) #4 /home/granizcm/public_html/wp-load.php(
   37): require_once(‘/home/granizcm/…’) #5 /home/granizcm/public_html/wp-admin/
   admin.php(34): require_once(‘/home/granizcm/…’) #6 /home/granizcm/public_html/
   wp-admin/index.php(10): require_once(‘/home/granizcm/…’) #7 {main} thrown in /
   home/granizcm/public_html/wp-includes/wp-db.php on line 1645 I have gone back
   to my original PHP and now my site works but that leaves me unable to update.
   I struggle with these technical issues and would appreciate advice. Thank you
   Cathy
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fphp-update-9%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [Jazz](https://wordpress.org/support/users/jraborar/)
 * (@jraborar)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/php-update-9/#post-11848325)
 * Hi
 * Based from the information you provided, I recommend that you get in touch with
   your hosting company (NameCheap) for further assistance.
 * [https://lookup.icann.org/lookup](https://lookup.icann.org/lookup)
 *  Thread Starter [cathyp10](https://wordpress.org/support/users/cathyp10/)
 * (@cathyp10)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/php-update-9/#post-11848333)
 * Thank you I will try that later. Their customer support is quite helpful.
    Thanks
   again Cathy

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

The topic ‘PHP update’ is closed to new replies.

## Tags

 * [php](https://wordpress.org/support/topic-tag/php/)
 * [update](https://wordpress.org/support/topic-tag/update/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [cathyp10](https://wordpress.org/support/users/cathyp10/)
 * Last activity: [6 years, 9 months ago](https://wordpress.org/support/topic/php-update-9/#post-11848333)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
