Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #62542


Ignore:
Timestamp:
11/23/2024 12:19:06 AM (12 months ago)
Author:
sabernhardt
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #62542

    • Property Focuses administration added
    • Property Component changed from General to Plugins
  • Ticket #62542 – Description

    initial v1  
    11A fatal error occurred due to the latest update and is causing problems in the database. Even after I disabled all plugins and installed older wordpress versions, the problem remains due to the cron.
    22
     3{{{
     4[22-Nov-2024 22:43:55 UTC] PHP Notice:  Function _load_textdomain_just_in_time was called <strong>incorrectly</strong>. Translation loading for the <code>astra</code> domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the <code>init</code> action or later. Please see <a href="https://developer.wordpress.org/advanced-administration/debug/debug-wordpress/">Debugging in WordPress</a> for more information. (This message was added in version 6.7.0.) in /.../wp-includes/functions.php on line 6114
     5[22-Nov-2024 22:43:55 UTC] PHP Notice:  Function _load_textdomain_just_in_time was called <strong>incorrectly</strong>. Translation loading for the <code>astra</code> domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the <code>init</code> action or later. Please see <a href="https://developer.wordpress.org/advanced-administration/debug/debug-wordpress/">Debugging in WordPress</a> for more information. (This message was added in version 6.7.0.) in /.../wp-includes/functions.php on line 6114
    36
    4 [22-Nov-2024 22:43:55 UTC] PHP Notice:  Function _load_textdomain_just_in_time was called <strong>incorrectly</strong>. Translation loading for the <code>astra</code> domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the <code>init</code> action or later. Please see <a href="https://developer.wordpress.org/advanced-administration/debug/debug-wordpress/">Debugging in WordPress</a> for more information. (This message was added in version 6.7.0.) in /var/www/vhosts/civitaic.com/httpdocs/wp-includes/functions.php on line 6114
    5 [22-Nov-2024 22:43:55 UTC] PHP Notice:  Function _load_textdomain_just_in_time was called <strong>incorrectly</strong>. Translation loading for the <code>astra</code> domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the <code>init</code> action or later. Please see <a href="https://developer.wordpress.org/advanced-administration/debug/debug-wordpress/">Debugging in WordPress</a> for more information. (This message was added in version 6.7.0.) in /var/www/vhosts/civitaic.com/httpdocs/wp-includes/functions.php on line 6114
    6 [22-Nov-2024 22:43:55 UTC] PHP Fatal error:  Uncaught TypeError: Unsupported operand types: string + int in /var/www/vhosts/civitaic.com/httpdocs/wp-admin/includes/class-wp-plugins-list-table.php:189
     7[22-Nov-2024 22:43:55 UTC] PHP Fatal error:  Uncaught TypeError: Unsupported operand types: string + int in /.../wp-admin/includes/class-wp-plugins-list-table.php:189
    78Stack trace:
    8 #0 /var/www/vhosts/civitaic.com/httpdocs/wp-admin/plugins.php(553): WP_Plugins_List_Table->prepare_items()
     9#0 /.../wp-admin/plugins.php(553): WP_Plugins_List_Table->prepare_items()
    910#1 {main}
    10   thrown in /var/www/vhosts/civitaic.com/httpdocs/wp-admin/includes/class-wp-plugins-list-table.php on line 189
    11 
     11  thrown in /.../wp-admin/includes/class-wp-plugins-list-table.php on line 189
     12}}}
    1213
    1314The error comes from this function:
    14 
     15{{{
    1516foreach ( $recently_activated as $key => $time ) {
    16                         if ( $time + WEEK_IN_SECONDS < time() ) {
    17                                 unset( $recently_activated[ $key ] );
    18                         }
    19                 }
    20 
     17    if ( $time + WEEK_IN_SECONDS < time() ) {
     18        unset( $recently_activated[ $key ] );
     19    }
     20}
     21}}}
    2122My correction:
     23{{{
    2224foreach ( $recently_activated as $key => $time ) {
    2325    if ( (int) $time + WEEK_IN_SECONDS < time() ) {
     
    2527    }
    2628}
    27 
     29}}}
    2830The problem has been fixed for me.