Conversation
supportPHP NoticeFunction wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.0.)WordPress core File: /wp-includes/functions.php Line: 6078Jun 16, 2024 – 20:05:39 (10 occurrences logged)3DatabaseTable ‘techtuto_wp175.wp_wanc_notice’ doesn’t exist for query SHOW FULL COLUMNS FROM wp_wanc_notice made by do_action(‘wp_ajax_save_notices’), WP_Hook->do_action, WP_Hook->apply_filters, WANC\Controllers\Notices->saveNotice, WANC\Repository->save, WANC\Database::insertJun 16, 2024 – 20:05:33 (9 occurrences logged)4DatabaseTable ‘techtuto_wp175.wp_wanc_notice’ doesn’t exist for query SELECT * FROM wp_wanc_notice WHERE content = “” AND user_id = 1 made by do_action(‘wp_ajax_save_notices’), WP_Hook->do_action, WP_Hook->apply_filters, WANC\Controllers\Notices->saveNotice, WANC\Repositories\NoticeRepository->getOneByContentUserId, WANC\Database::getObjectJun 16, 2024 – 20:05:33 (3 occurrences logged)5DatabaseTable ‘techtuto_wp175.wp_wanc_notice’ doesn’t exist for query SHOW FULL COLUMNS FROM wp_wanc_notice made by do_action(‘wp_ajax_save_notices’), WP_Hook->do_action, WP_Hook->apply_filters, WANC\Controllers\Notices->saveNotice, WANC\Repositories\NoticeRepository->getOneByContentUserId, WANC\Database::getObjectJun 16, 2024 – 20:05:33 (4 occurrences logged)6DatabaseTable ‘techtuto_wp175.wp_wanc_notice’ doesn’t exist for query SELECT * FROM wp_wanc_notice WHERE content = ” Caution!The following WordPress constants are enabled and it is highly recommended that you disable them in production environments.WP_DEBUGWP_DEBUG_LOGSCRIPT_DEBUG” AND user_id = 1 made by do_action(‘wp_ajax_save_notices’), WP_Hook->do_action, WP_Hook->apply_filters, WANC\Controllers\Notices->saveNotice, WANC\Repositories\NoticeRepository->getOneByContentUserId, WANC\Database::getObjectJun 16, 2024 – 20:05:33 (2 occurrences logged)7DatabaseTable ‘techtuto_wp175.wp_wanc_notice’ doesn’t exist for query SELECT * FROM wp_wanc_notice WHERE content = “\\n\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t\\t\\tElementor Pro Data Updater\\n\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t\\t\\tDatabase update process is running in the background. Taking a while?\\n\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\tClick here to run it now\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t” AND user_id = 1 made by do_action(‘wp_ajax_save_notices’), WP_Hook->do_action, WP_Hook->apply_filters, WANC\Controllers\Notices->saveNotice, WANC\Repositories\NoticeRepository->getOneByContentUserId, WANC\Database::getObjectJun 16, 2024 – 20:05:29 (1 occurrence logged)8DatabaseTable ‘techtuto_wp175.wp_wanc_notice’ doesn’t exist for query SELECT * FROM wp_wanc_notice WHERE content = “\\n\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t\\t\\tElementor Data Updater\\n\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t\\t\\tDatabase update process is running in the background. Taking a while?\\n\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\tClick here to run it now\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t” AND user_id = 1 made by do_action(‘wp_ajax_save_notices’), WP_Hook->do_action, WP_Hook->apply_filters, WANC\Controllers\Notices->saveNotice, WANC\Repositories\NoticeRepository->getOneByContentUserId, WANC\Database::getObjectJun 16, 2024 – 20:05:29 (1 occurrence logged)9PHP NoticeFunction map_meta_cap was called incorrectly. The post type shop_order is not registered, so it may not be reliable to check the capability edit_post against a post of that type. Please see Debugging in WordPress for more information. (This message was added in version 4.4.0.)WordPress core File: /wp-includes/functions.php Line: 6078Jun 16, 2024 – 20:05:28 (2 occurrences logged)10PHP FatalUncaught TypeError: array_map(): Argument #2 ($array) must be of type array, null givenStack trace:#0 /wp-content/plugins/wp-admin-notification-center/src/Controllers/Notices.php(22): array_map()#1 /wp-includes/class-wp-hook.php(324): WANC\Controllers\Notices->saveNotice()#2 /wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()#3 /wp-includes/plugin.php(517): WP_Hook->do_action()#4 /wp-admin/admin-ajax.php(192): do_action()#5 {main} thrown in /wp-content/plugins/wp-admin-notification-center/src/Controllers/Notices.php on line 22Plugin: Hide admin notices File: /wp-content/plugins/wp-admin-notification-center/src/Controllers/Notices.php Line: 22Jun 16, 2024 – 20:04:10 (1 occurrence logged)
Hi, Thanks a lot for reporting this, I’ve release a new version with a fix 🙂 This reply was modified 1 year, 11 months ago by roumi .
Getting new errors from the new version: PHP FatalUncaught TypeError: array_map(): Argument #2 ($array) must be of type array, null givenStack trace:#0 /wp-content/plugins/wp-admin-notification-center/src/Controllers/Notices.php(22): array_map()#1 /wp-includes/class-wp-hook.php(324): WANC\Controllers\Notices->saveNotice()#2 /wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()#3 /wp-includes/plugin.php(517): WP_Hook- >do_action()#4 /wp-admin/admin-ajax.php(192): do_action()#5 {main} thrown in /wp-content/plugins/wp-admin-notification-center/src/Controllers/Notices.php on line 22Plugin: Hide admin notices File: /wp-content/plugins/wp-admin-notification-center/src/Controllers/Notices.php Line: 22Jun 21, 2024 – 02:16:37 (2 occurrences logged)2PHP WarningUndefined array key “notices”Plugin: Hide admin notices File: /wp-content/plugins/wp-admin-notification-center/src/Controllers/Notices.php Line: 22
Sorry for that, it should be better now.
I went through loading every single page on the backend and the frontend, and there are no new errors in the debug log. I think we’re good!
Nice !
@roumi also just wanted to mention, I got the logs from this plugin, it’s really useful: https://wordpress.org/plugins/debug-log-manager/
Hi, Thanks a lot for reporting this, I’ve release a new version with a fix 🙂 This reply was modified 1 year, 11 months ago by roumi .
Getting new errors from the new version: PHP FatalUncaught TypeError: array_map(): Argument #2 ($array) must be of type array, null givenStack trace:#0 /wp-content/plugins/wp-admin-notification-center/src/Controllers/Notices.php(22): array_map()#1 /wp-includes/class-wp-hook.php(324): WANC\Controllers\Notices->saveNotice()#2 /wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()#3 /wp-includes/plugin.php(517): WP_Hook- >do_action()#4 /wp-admin/admin-ajax.php(192): do_action()#5 {main} thrown in /wp-content/plugins/wp-admin-notification-center/src/Controllers/Notices.php on line 22Plugin: Hide admin notices File: /wp-content/plugins/wp-admin-notification-center/src/Controllers/Notices.php Line: 22Jun 21, 2024 – 02:16:37 (2 occurrences logged)2PHP WarningUndefined array key “notices”Plugin: Hide admin notices File: /wp-content/plugins/wp-admin-notification-center/src/Controllers/Notices.php Line: 22
Sorry for that, it should be better now.
I went through loading every single page on the backend and the frontend, and there are no new errors in the debug log. I think we’re good!
Nice !
@roumi also just wanted to mention, I got the logs from this plugin, it’s really useful: https://wordpress.org/plugins/debug-log-manager/