Skip to content

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

Closed

Description

@ernilambar

Steps to reproduce:

  • Install Yoast plugin
  • In the Plugin Check, enable Performance only
  • Run the check
  • Sometimes AJAX is completed but some times it halts. Nevertheless lots of notices are added in the log file.

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

Activity

  1. mukeshpanchal27 commented on Dec 20, 2023

    @mukeshpanchal27
    Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions