WordPress / WordPress/plugin-check

Plugins Fail to Create Custom Tables in Database During Runtime Check

Open
#234 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

[Type] Bug
Dominant language
PHP
Stars
362
Forks
126
Avg merge
1d 23h
Merged PRs (30d)
22

Description

Describe the bug

I am encountering a persistent issue with both WooCommerce and Yoast SEO plugins. These plugins are expected to create custom tables in the WordPress database during installation or activation. However, I have noticed that sometimes, the tables are not being created, leading to "table not found" errors during runtime checks.

Steps to Reproduce
  1. Setup Plugin Checker in you local system using steps outline here
  2. Install and activate WooCommerce plugin
  3. Go to Admin Panel > Tools > Plugin Check
  4. Open The Browsers Network tab
  5. Select "WooCommerce" and click on "Check it!" button
  6. Check "enqueued_scripts_size" and "enqueued_styles_scope" check output in network tab.
Screenshots, screen recording, code snippet
Screenshot 2023-07-21 at 11 02 17 AM
Environment information

No response

WordPress information

No response

Code of Conduct
  • I agree to follow this project's Code of Conduct

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by following the contributing setup and reproducing the WooCommerce case through Tools > Plugin Check. Inspect the network output for the enqueued_scripts_size and enqueued_styles_scope checks, then verify that the plugin's custom tables exist during the runtime check and that no table-not-found error occurs.

Written by the indexing model from the issue text.

Assessment

Tech stack
php, wordpress
Domain
databases, testing
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.