• rgylb

    (@rgylb)


    I posted about this last year, but we decided to roll back to PHP 7.4 until we had more time to look into the issue. 
    
    I hired a consultant to look at the multisite server and see if something other than Activity Log was causing the Critical Errors. My steps to seeing the Critical Error is after spinning up a new site on the multisite, I then go to /wp-admin/options-general.php. I change the timezone to New York and the day to Sunday. Click save changes and then get a Critical Error page. Here is what the consultant found. I hope this helps. 
    
    If we deactivate Activity Log before updating the time/day settings we do not get the error. Also if we only update 1 of the settings with Activity Log active, we do not get the error. Only when updating both settings and then trying to save.
    
    Thank you!
    -------------------
    
    [16-May-2024 19:42:46 UTC] PHP Fatal error:  Uncaught TypeError: Unsupported operand types: string * int in /nas/content/live/websitename/wp-includes/functions.php:76
    
    Stack trace:
    
    #0 /nas/content/live/websitename/wp-content/plugins/aryo-activity-log/classes/class-aal-api.php(95): current_time('timestamp')
    
    #1 /nas/content/live/websitename/wp-content/plugins/aryo-activity-log/classes/class-aal-api.php(192): AAL_API->insert(Array)
    
    #2 /nas/content/live/websitename/wp-content/plugins/aryo-activity-log/hooks/class-aal-hook-options.php(101): aal_insert_log(Array)
    
    #3 /nas/content/live/websitename/wp-content/plugins/aryo-activity-log/hooks/class-aal-hook-options.php(96): AAL_Hook_Options->insert_log('start_of_week')
    
    #4 /nas/content/live/websitename/wp-includes/class-wp-hook.php(324): AAL_Hook_Options->hooks_updated_option('start_of_week', '1', 0)
    
    #5 /nas/content/live/websitename/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)
    
    #6 /nas/content/live/websitename/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
    
    #7 /nas/content/live/websitename/wp-includes/option.php(900): do_action('updated_option', 'start_of_week', '1', 0)
    
    #8 /nas/content/live/websitename/wp-admin/options.php(340): update_option('start_of_week', 0)
    
    #9 {main}
    
      thrown in /nas/content/live/websitename/wp-includes/functions.php on line 76
    
    `</code></pre>
    

The topic ‘PHP 8.2 Compatibility’ is closed to new replies.