Error with update_core.php after updating manually
-
Hi
I have been tasked with fixing a site that was incompatible with php.8.0 as the host has discontinued use of version 7.4 and below.
I manually updated wordPress to version 6.1.1 which has the site kind of just up and running again, HOWEVER I get an error popping up on various pages in the backend, particularly on the general settings page where as a result I cannot save any changes, and on the wordpress Updates page in the backend where it doesn’t list plugins requiring upates, but rather displays the following error:
/usr/www/users/*#####/wp-admin/update-core.php:1047 Stack trace: #0 {main} thrown in /usr/www/users/*######/wp-admin/update-core.php on line 1047
* This is the host username
The particular section of code in question (with exact line 1047 highlighted) is:
$last_update_check = false; $current = get_site_transient( 'update_core' ); if ( $current && isset( $current->last_checked ) ) { <strong>$last_update_check = $current->last_checked + get_option( 'gmt_offset' ) * HOUR_IN_SECONDS;</strong> }
Does anyone know how I could possibly resolve this?
My logic is telling me that because I manually updated wordpress, there is no value for the last update date and time, and therefore an empty string or integer is causing the error… or something like that. I am not a coder, just guessing ??
Assistance would be massively appreciated.
Thanks
The page I need help with: [log in to see the link]
- The topic ‘Error with update_core.php after updating manually’ is closed to new replies.