PHP Fatal error: Uncaught TypeError: array_keys():
-
Hi
I’ve noticed the following error in the error logs on our staging server.
PHP Fatal error: Uncaught TypeError: array_keys(): Argument #1 ($array) must be of type array, bool given in /nas/content/live/bagsofbo464stg/wp-content/plugins/wp-optimize-premium/includes/class-wpo-db-table-analysis.php:399#012Stack trace:#012#0 /nas/content/live/bagsofbo464stg/wp-content/plugins/wp-optimize-premium/includes/class-wpo-db-table-analysis.php(399): array_keys(false)#012#1 /nas/content/live/bagsofbo464stg/wp-content/plugins/wp-optimize-premium/includes/class-wpo-db-table-analysis.php(189): WPO_DB_Table_Analysis::get_query_table(‘COMMIT /* From …’)#012#2 /nas/content/live/bagsofbo464stg/wp-includes/class-wp-hook.php(341): WPO_DB_Table_Analysis->execute_query_analysis(”)#012#3 /nas/content/live/bagsofbo464stg/wp-includes/class-wp-hook.php(365): WP_Hook->apply_filters(NULL, Array)#012#4 /nas/content/live/bagsofbo464stg/wp-includes/plugin.php(522): WP_Hook->do_action(Array)#012#5 /nas/content/live/bagsofbo464stg/wp-includes/load.php(1308): do_action(‘shutdown’)#012#6 [internal function]: shutdown_action_hook()#012#7 {main}#012 thrown in /nas/content/live/bagsofbo464stg/wp-content/plugins/wp-optimize-premium/includes/class-wpo-db-table-analysis.php on line 399
I tried testing scheduling database optimisations to avoid having to manually do them. The selected optimisations were; Clean all post revisions, Clean all auto-draft posts, Clean all trashed posts , Remove spam and trashed comments and Remove expired transient options. When I run the optimisation manually everything functions OK with no errors logged.
Regards
MattThe page I need help with: [log in to see the link]
You must be logged in to reply to this topic.