Update order from PHP 7.4/X9.1.4/Colrnerstone6.1.4 to PHP8.1/X10/Cornerstone7.0

I have successfully update my website from very old version running under PHP7.2

Now I am running X-9.1.4 with Cornerstone 6.1.4 under PHP 7.4.

If I try to create a new staging site under php 8.1, is gives me a fatal error.

In what order can I update my staging site?

Should I (can I) update X to 10 under PHP7.4?

What versions of X run under which Versions of PHP 7.4, or 8?

What versions of Cornerstone run under which versions of PHP7.4 or 8?

Hi Thomas,

Thanks for reaching out.
The latest version of Cornerstone works correctly with the latest version of PHP. I would suggest you update the X and Cornerstone first and then update the PHP to the version you want. If you still find any issues, please provide login credentials for your site in a secure note to examine it further, including:

– WordPress Site URL & Login URL
– WordPress Admin username/password

To create a secure note, click the key icon underneath any of your posts.

Thanks

I have everything running well under PHP7.4. When I update to PHP 8.x I get a critical error. Even if I clone my working site to a staging site built under PHP 8 I get that same error message. I can’t even access the dashboard under php 8.x

The live site is running php7.4

Hey Thomas,

You can clone your site and create a staging site so we can investigate the fatal error issue. It could be a plugin that is causing an issue. If you do not have a staging site, you can test for a plugin conflict by deactivating the plugins one at a time. You will know which plugin is causing it when the issue resolved and the plugin is deactivated. You may also do the following:

In your staging site, enable the WP Debug mode so we can check where the fatal error is coming from.

Please provide us the WP credentials for your staging site along with the FTP details so that we can ivestigate further if the issue is still not resolved.

Thanks.

Everything is working great under PHP7.4. I built this Dev site under PHP 8.0 and it won’t even load. Any ideas?

The DEV site is now working, but not the live site. Any other ideas why?

Hi Thomas,

If Staging or Dev site is working fine, you can migrate the staging server to live.

NOTE: I would also suggest you take a backup of your website and the database before doing it, so you can restore it if anything goes wrong.

Thanks

I have my live site working on PHP 8.0

If I go to PHP 8.1 or 8.2 the site send following errors:

8.1

Deprecated: Implicit conversion from float 11.5 to int loses precision in /home/habitat6/public_html/wp-includes/class-wp-hook.php on line 77

Deprecated: Implicit conversion from float 11.5 to int loses precision in /home/habitat6/public_html/wp-includes/class-wp-hook.php on line 79

8.2

Fatal error: Uncaught Error: Call to undefined function mysql_connect() in /home/habitat6/public_html/wp-includes/class-wpdb.php:1807 Stack trace: #0 /home/habitat6/public_html/wp-includes/class-wpdb.php(734): wpdb->db_connect() #1 /home/habitat6/public_html/wp-includes/load.php(562): wpdb->__construct() #2 /home/habitat6/public_html/wp-settings.php(124): require_wp_db() #3 /home/habitat6/public_html/wp-config.php(100): require_once(’/home/habitat6/…’) #4 /home/habitat6/public_html/wp-load.php(50): require_once(’/home/habitat6/…’) #5 /home/habitat6/public_html/wp-blog-header.php(13): require_once(’/home/habitat6/…’) #6 /home/habitat6/public_html/index.php(17): require(’/home/habitat6/…’) #7 {main} thrown in /home/habitat6/public_html/wp-includes/class-wpdb.php on line 1807

Can you offer any advice?

Tom

Hi Tom,

The listed issues are not related to the Theme. I would suggest you revert back to PHP version 8.0 and activate any default theme before updating the PHP version to 8.2. If you still face the issue, it might be the problem with the WordPress and PHP versions, and you need to stay back into the previous version of PHP till the solution comes. If the issue only exists with our theme, please let us know for further investigation.

Thanks

I have everything running great under PHP8.1, but the backend breaks under 8.2. We received this input from our host:
“We found that the website script is not compatible with the latest PHP version. The latest PHP version uses mysqli() function, instead of MySQL() which is depreciated and not supported in the latest PHP versions. And I can also confirm that the website scripts uses “mysql_connect” functions. So if you would like to use it with PHP 8.2, you would need to update those scripts accordingly.”

This script is being called by the theme.

Hey Thomas,

Please understand that the PHP 8.2 has just been released last December 8, 2022. The current theme version including the WordPress core and most plugins are not yet a PHP 8.2 compatible. You will have to downgrade to at least PHP 8.0 or PHP 8.1 instead.

Thank you for your understanding.

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