WordPress / plugin-check

A repository for the new Plugin Check plugin from the WordPress Performance and Plugins Team.
https://wordpress.org/plugins/plugin-check/
GNU General Public License v2.0
198 stars 39 forks source link

Database error message when Yoast plugin is checked for Performance #350

Closed ernilambar closed 6 months ago

ernilambar commented 6 months ago

Steps to reproduce:

Content of debug.log:

[20-Dec-2023 10:16:40 UTC] WordPress database error Table 'wordpress.wp_pc_yoast_primary_term' doesn't exist for query SELECT * FROM `wp_pc_yoast_primary_term` WHERE `post_id` = '4' AND `taxonomy` = 'category' LIMIT 1 made by do_action('wp_ajax_plugin_check_run_checks'), WP_Hook->do_action, WP_Hook->apply_filters, WordPress\Plugin_Check\Admin\Admin_AJAX->run_checks, WordPress\Plugin_Check\Checker\Abstract_Check_Runner->run, WordPress\Plugin_Check\Checker\Preparations\Demo_Posts_Creation_Preparation->prepare, wp_insert_post, do_action('save_post'), WP_Hook->do_action, WP_Hook->apply_filters, Yoast\WP\SEO\Integrations\Watchers\Primary_Term_Watcher->save_primary_terms, Yoast\WP\SEO\Builders\Primary_Term_Builder->build, Yoast\WP\SEO\Builders\Primary_Term_Builder->save_primary_term, Yoast\WP\SEO\Repositories\Primary_Term_Repository->find_by_post_id_and_taxonomy, Yoast\WP\Lib\ORM->find_one, Yoast\WP\Lib\ORM->run, Yoast\WP\Lib\ORM::execute
[20-Dec-2023 10:16:40 UTC] WordPress database error Table 'wordpress.wp_pc_yoast_primary_term' doesn't exist for query SELECT * FROM `wp_pc_yoast_primary_term` WHERE `post_id` = '4' AND `taxonomy` = 'category' LIMIT 1 made by do_action('wp_ajax_plugin_check_run_checks'), WP_Hook->do_action, WP_Hook->apply_filters, WordPress\Plugin_Check\Admin\Admin_AJAX->run_checks, WordPress\Plugin_Check\Checker\Abstract_Check_Runner->run, WordPress\Plugin_Check\Checker\Preparations\Demo_Posts_Creation_Preparation->prepare, wp_insert_post, do_action('save_post'), WP_Hook->do_action, WP_Hook->apply_filters, Yoast\WP\SEO\Integrations\Watchers\Primary_Term_Watcher->save_primary_terms, Yoast\WP\SEO\Builders\Primary_Term_Builder->build, Yoast\WP\SEO\Builders\Primary_Term_Builder->save_primary_term, Yoast\WP\SEO\Repositories\Primary_Term_Repository->find_by_post_id_and_taxonomy, Yoast\WP\Lib\ORM->find_one, Yoast\WP\Lib\ORM->run, Yoast\WP\Lib\ORM::execute
[20-Dec-2023 10:16:40 UTC] WordPress database error Table 'wordpress.wp_pc_yoast_indexable' doesn't exist for query SELECT * FROM `wp_pc_yoast_indexable` WHERE `object_id` = '4' AND `object_type` = 'post' LIMIT 1 made by do_action('wp_ajax_plugin_check_run_checks'), WP_Hook->do_action, WP_Hook->apply_filters, WordPress\Plugin_Check\Admin\Admin_AJAX->run_checks, WordPress\Plugin_Check\Checker\Abstract_Check_Runner->run, WordPress\Plugin_Check\Checker\Preparations\Demo_Posts_Creation_Preparation->prepare, wp_insert_post, do_action('wp_insert_post'), WP_Hook->do_action, WP_Hook->apply_filters, Yoast\WP\SEO\Integrations\Watchers\Indexable_Post_Watcher->build_indexable, Yoast\WP\SEO\Repositories\Indexable_Repository->find_by_id_and_type, Yoast\WP\Lib\ORM->find_one, Yoast\WP\Lib\ORM->run, Yoast\WP\Lib\ORM::execute
[20-Dec-2023 10:16:40 UTC] WordPress database error Table 'wordpress.wp_pc_yoast_indexable' doesn't exist for query SELECT * FROM `wp_pc_yoast_indexable` WHERE `object_id` = '4' AND `object_type` = 'post' LIMIT 1 made by do_action('wp_ajax_plugin_check_run_checks'), WP_Hook->do_action, WP_Hook->apply_filters, WordPress\Plugin_Check\Admin\Admin_AJAX->run_checks, WordPress\Plugin_Check\Checker\Abstract_Check_Runner->run, WordPress\Plugin_Check\Checker\Preparations\Demo_Posts_Creation_Preparation->prepare, wp_insert_post, do_action('wp_insert_post'), WP_Hook->do_action, WP_Hook->apply_filters, Yoast\WP\SEO\Integrations\Watchers\Indexable_Post_Watcher->build_indexable, Yoast\WP\SEO\Repositories\Indexable_Repository->find_by_id_and_type, Yoast\WP\Lib\ORM->find_one, Yoast\WP\Lib\ORM->run, Yoast\WP\Lib\ORM::execute
[20-Dec-2023 10:16:40 UTC] WordPress database error Table 'wordpress.wp_pc_yoast_primary_term' doesn't exist for query SELECT * FROM `wp_pc_yoast_primary_term` WHERE `post_id` = '4' AND `taxonomy` = 'category' LIMIT 1 made by do_action('wp_ajax_plugin_check_run_checks'), WP_Hook->do_action, WP_Hook->apply_filters, WordPress\Plugin_Check\Admin\Admin_AJAX->run_checks, WordPress\Plugin_Check\Checker\Abstract_Check_Runner->run, WordPress\Plugin_Check\Checker\Preparations\Demo_Posts_Creation_Preparation->prepare, wp_insert_post, do_action('wp_insert_post'), WP_Hook->do_action, WP_Hook->apply_filters, Yoast\WP\SEO\Integrations\Watchers\Indexable_Post_Watcher->build_indexable, Yoast\WP\SEO\Builders\Indexable_Builder->build_for_id_and_type, Yoast\WP\SEO\Builders\Indexable_Builder->build, Yoast\WP\SEO\Builders\Primary_Term_Builder->build, Yoast\WP\SEO\Builders\Primary_Term_Builder->save_primary_term, Yoast\WP\SEO\Repositories\Primary_Term_Repository->find_by_post_id_and_taxonomy, Yoast\WP\Lib\ORM->find_one, Yoast\WP\Lib\ORM->run, Yoast\WP\Lib\ORM::execute
[20-Dec-2023 10:16:40 UTC] WordPress database error Table 'wordpress.wp_pc_yoast_primary_term' doesn't exist for query SELECT * FROM `wp_pc_yoast_primary_term` WHERE `post_id` = '4' AND `taxonomy` = 'category' LIMIT 1 made by do_action('wp_ajax_plugin_check_run_checks'), WP_Hook->do_action, WP_Hook->apply_filters, WordPress\Plugin_Check\Admin\Admin_AJAX->run_checks, WordPress\Plugin_Check\Checker\Abstract_Check_Runner->run, WordPress\Plugin_Check\Checker\Preparations\Demo_Posts_Creation_Preparation->prepare, wp_insert_post, do_action('wp_insert_post'), WP_Hook->do_action, WP_Hook->apply_filters, Yoast\WP\SEO\Integrations\Watchers\Indexable_Post_Watcher->build_indexable, Yoast\WP\SEO\Builders\Indexable_Builder->build_for_id_and_type, Yoast\WP\SEO\Builders\Indexable_Builder->build, Yoast\WP\SEO\Builders\Primary_Term_Builder->build, Yoast\WP\SEO\Builders\Primary_Term_Builder->save_primary_term, Yoast\WP\SEO\Repositories\Primary_Term_Repository->find_by_post_id_and_taxonomy, Yoast\WP\Lib\ORM->find_one, Yoast\WP\Lib\ORM->run, Yoast\WP\Lib\ORM::execute
mukeshpanchal27 commented 6 months ago

Thank you for raising the issue. This issue has already reported in #234.