Uncaught TypeError: array_keys(): Argument #1 ($array) must be of type array
-
The following error has recently started occuring when your plugin is enabled:
WordPress version 6.8.2
Current plugin: WP Admin Audit (version 1.2.15)
PHP version 8.1.33Error Details
An error of type E_ERROR was caused in line 23 of the file /srv/websites/[site-name]/httpdocs/wp-content/plugins/wp-admin-audit/classes/Utils/PostUtils.php. Error message: Uncaught TypeError: array_keys(): Argument #1 ($array) must be of type array, null given in /srv/websites/[site-name]/httpdocs/wp-content/plugins/wp-admin-audit/classes/Utils/PostUtils.php:23
Stack trace: 0 /srv/websites/[site-name]/httpdocs/wp-content/plugins/wp-admin-audit/classes/Utils/PostUtils.php(23): array_keys() 1 /srv/websites/[site-name]/httpdocs/wp-content/plugins/wp-admin-audit/classes/Sensors/Post.php(251): WADA_PostUtils::getChangedMeta() 2 /srv/websites/[site-name]/httpdocs/wp-content/plugins/wp-admin-audit/classes/Sensors/Post.php(196): WADA_Sensor_Post->getPostMetaEventDetails() 3 /srv/websites/[site-name]/httpdocs/wp-includes/class-wp-hook.php(324): WADA_Sensor_Post->onAfterPostInsert() 4 /srv/websites/[site-name]/httpdocs/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() 5 /srv/websites/[site-name]/httpdocs/wp-includes/plugin.php(517): WP_Hook->do_action() 6 /srv/websites/[site-name]/httpdocs/wp-includes/post.php(5831): do_action() 7 /srv/websites/[site-name]/httpdocs/wp-includes/post.php(5124): wp_after_insert_post() 8 /srv/websites/[site-name]/httpdocs/wp-content/plugins/duplicate-page/duplicatepage.php(192): wp_insert_post() 9 /srv/websites/[site-name]/httpdocs/wp-content/plugins/duplicate-page/duplicatepage.php(122): duplicate_page->duplicate_edit_post() 10 /srv/websites/[site-name]/httpdocs/wp-includes/class-wp-hook.php(324): duplicate_page->dt_duplicate_post_as_draft() 11 /srv/websites/[site-name]/httpdocs/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() 12 /srv/websites/[site-name]/httpdocs/wp-includes/plugin.php(517): WP_Hook->do_action() 13 /srv/websites/[site-name]/httpdocs/wp-admin/admin.php(420): do_action() 14 {main}
The topic ‘Uncaught TypeError: array_keys(): Argument #1 ($array) must be of type array’ is closed to new replies.