PHP 7 fatal error

Hi!
I realy tried to find a solution… but…
this is what I get when I change to php 7.x:

Fatal error: Uncaught Error: Call to undefined function mysql_connect() in /home/www/doc/22299/dcp222990006/tanz-kiel.de/wp-includes/wp-db.php:1643 Stack trace: #0 /home/www/doc/22299/dcp222990006/tanz-kiel.de/wp-includes/wp-db.php(639): wpdb->db_connect() #1 /home/www/doc/22299/dcp222990006/tanz-kiel.de/wp-includes/load.php(420): wpdb->__construct(‘db222990043’, ‘38BkMq!7cY41F’, ‘db222990043’, ‘sql605.c.artfil…’) #2 /home/www/doc/22299/dcp222990006/tanz-kiel.de/wp-settings.php(120): require_wp_db() #3 /home/www/doc/22299/dcp222990006/tanz-kiel.de/wp-config.php(89): require_once(’/home/www/doc/2…’) #4 /home/www/doc/22299/dcp222990006/tanz-kiel.de/wp-load.php(37): require_once(’/home/www/doc/2…’) #5 /home/www/doc/22299/dcp222990006/tanz-kiel.de/wp-blog-header.php(13): require_once(’/home/www/doc/2…’) #6 /home/www/doc/22299/dcp222990006/tanz-kiel.de/index.php(17): require(’/home/www/doc/2…’) #7 {main} thrown in /home/www/doc/22299/dcp222990006/tanz-kiel.de/wp-includes/wp-db.php on line 1643

Fatal error: Uncaught Error: Call to undefined function load_default_textdomain() in /home/www/doc/22299/dcp222990006/tanz-kiel.de/wp-includes/class-wp-fatal-error-handler.php:41 Stack trace: #0 [internal function]: WP_Fatal_Error_Handler->handle() #1 {main} thrown in /home/www/doc/22299/dcp222990006/tanz-kiel.de/wp-includes/class-wp-fatal-error-handler.php on line 41

what can I do to get my side running with php 7.X

Hi @Tanz_Kiel,

My local installation is using PHP 7.2.10 without any issues.

May we know what’s the version of your WordPress core? It should be 5.1.1 or higher:

If your WordPress core is outdated, please follow this article to manually update it to the latest version:

https://codex.wordpress.org/Updating_WordPress

Don’t forget to completely backup your website before upgrading.

Let us know how it goes!

I do use WP 5.2

I also tried just the x-theme without any plugins but the white screen keeps coming as soon as I switch to php 7.X

Hi There,

Would you mind providing us with login credentials(by clicking on the Secure Note button at the bottom) so we can take a closer look? To do this, you can make a post with the following info:

  • Link to your site
  • WordPress Admin username / password
  • FTP credentials

Thanks.

The button was only at the above box…

Hi @Tanz_Kiel,

Have you switched the site to PHP 7 already? I checked the site and it is correctly accessible now.

If you haven’t switch it to PHP 7, try setting up a staging site and do the debugging from there plus, please note that the errors you are getting are Wordpress related and not with X.

Thank you.

No I did not switch… I´ll try…Thx

Thanks for testing. Please test what happens if you switch to the default WordPress theme also.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.