Fixing website errors after a PHP upgrade Print

  • php 8.3, php, error, wordpress, upgrade
  • 0

New PHP versions such as 8.4 are faster and more secure than older ones, but each version removes some functions that very old code still uses. Most up-to-date websites work without changes. If your site shows an error or a blank page, this guide helps you find and fix the cause.

Step 1: Find the error message

  • In cPanel, open Metrics › Errors to see the most recent errors for your account.
  • Or open the error_log file in your website folder with File Manager.
  • For WordPress, look for a recovery email sent to the site administrator: it names the plugin or theme that caused the problem and contains a link to log in safely.

Step 2: Fix the cause

ErrorWhat to do
Call to undefined function create_function(), each() or mysql_connect()An old plugin, theme or script that has not been updated for many years. Update it, or replace it with a maintained alternative.
Unparenthesized a ? b : c ? d : e is not supportedOld code in a plugin or theme. Updating the plugin or theme fixes this.
Allowed memory size exhaustedRaise memory_limit in MultiPHP INI Editor, or in WordPress add define('WP_MEMORY_LIMIT', '512M'); to wp-config.php.
Deprecated: messages on the pageThese are warnings, not errors. Hide them by setting display_errors to Off in MultiPHP INI Editor, and update the plugin when possible.
Premium plugin or theme failsDownload the latest version from the developer's website using your licence, and upload it to replace the old one.

Step 3: Still stuck?

If you need more time, you can switch the domain back to PHP 8.3 in Software › MultiPHP Manager; it receives security fixes until 31 December 2027. Versions older than 8.3 are not available, because they no longer receive the security fixes needed to keep every website safe. If you cannot update your application yourself, open a support ticket with the error message and we will advise on the best way forward.

Need help?

If you have any difficulty, please open a support ticket and our team will be glad to assist.


Was this answer helpful?

« Back