Title: hcaptcha_events SQL table doesn&#8217;t exist
Last modified: June 9, 2026

---

# hcaptcha_events SQL table doesn’t exist

 *  Resolved [p1c2d3](https://wordpress.org/support/users/postcd/)
 * (@postcd)
 * [1 day, 8 hours ago](https://wordpress.org/support/topic/hcaptcha_events-sql-table-doesnt-exist/)
 * WordPress database error Table ‘myusername_simplex.hcaptcha_events’ doesn’t exist
   for query SHOW FULL COLUMNS FROM `hcaptcha_events` made by require(‘wp-blog-header.
   php’), …
 * appeared in the log upon submitting HivePress Reviews form (where i have tried
   to add hcaptcha). I am not aware about deleting that table and disabling/enabling
   hcaptcha plugin does not create it.
 * At /wp-admin/options-general.php?page=hcaptcha&tab=general (plugin version 5.0.0,
   WP 7, PHP 8.4) i have disabled “Enable Statistic” and click Save. Then enabled
   it again, click save.
 * AI told me to run:
 * CREATE TABLE IF NOT EXISTS hcaptcha_events (
   id bigint(20) unsigned AUTO_INCREMENT
   PRIMARY KEY,event_type varchar(50) NOT NULL,status varchar(20) NOT NULL,timestamp
   datetime DEFAULT CURRENT_TIMESTAMP,INDEX idx_timestamp (timestamp));
 * so i have ran it. I have free version of a plugin, no Pro.

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Contributor [kaggdesign](https://wordpress.org/support/users/kaggdesign/)
 * (@kaggdesign)
 * [1 day, 3 hours ago](https://wordpress.org/support/topic/hcaptcha_events-sql-table-doesnt-exist/#post-18933590)
 * Hi [@postcd](https://wordpress.org/support/users/postcd/),
 * Thanks for reporting this.
 * The `hcaptcha_events` table is supposed to be created during plugin activation
   and also checked during plugin maintenance/migration flows. We have added an 
   extra hardening change for the next release: activation will force a physical
   table check/create, and normal frontend requests will no longer perform table-
   existence checks when the table is not marked as created. This should be included
   in the next release soon.
 * To help us understand how your site got into this state, could you please tell
   us how the plugin was installed/activated or updated on your site?
 * For example:
    - WordPress admin Plugins page
    - WP-CLI
    - Composer or deployment script
    - hosting control panel / auto-installer
    - staging/production clone or database restore
    - multisite network activation
 * Also, if you noticed any activation/update errors, or if the database user does
   not have `CREATE` / `ALTER` permissions, please mention that too.
 * We’re trying to determine whether the activation hook did not run, or whether
   the migration/maintenance step was skipped.
 *  Thread Starter [p1c2d3](https://wordpress.org/support/users/postcd/)
 * (@postcd)
 * [1 day, 3 hours ago](https://wordpress.org/support/topic/hcaptcha_events-sql-table-doesnt-exist/#post-18933627)
 * > how the plugin was installed/activated or updated on your site?
 * added, regularly from the WP store (internal installer, no manual), also updated
   automatically, if i remember correct, i have enabled statistics switch, this 
   is free plugin. I have not noticed update errors. Unfortunately i had to restore
   database and files of a whole site from backup due to a bug in other plugin, 
   so i have no logs.
 * > does not have `CREATE` / `ALTER` permissions, please mention that too.
 * User has these permissions, all perms.
 * Thank you for the attempt to fix. I am currently missing the events table so 
   i will see if update will fix it, and will let you know if i spot any errors 
   or weird behavior.
 *  Plugin Contributor [kaggdesign](https://wordpress.org/support/users/kaggdesign/)
 * (@kaggdesign)
 * [1 day, 1 hour ago](https://wordpress.org/support/topic/hcaptcha_events-sql-table-doesnt-exist/#post-18933707)
 * Thanks for the details.
 * Given that the plugin was installed and updated normally, and the database user
   has CREATE/ALTER permissions, the most likely cause is the full-site restore 
   from backup. The `hcaptcha_events` table is a plugin-created custom table, so
   if the backup/restore did not include it, or restored the database/files from
   different points in time, the plugin settings could remain while the custom events
   table is missing.
 * We have hardened this for the next release. The plugin will recreate/check the
   Events statistics table during activation and maintenance/admin flows, while 
   normal frontend requests will no longer run table-existence checks.
 * After the next update, if the table is still missing, please deactivate and activate
   the hCaptcha plugin once. Do not uninstall it; just deactivate/activate. That
   should recreate the missing table. Existing historical Events statistics cannot
   be recovered if the table was not included in the backup, but new statistics 
   should be recorded after the table is recreated.
 * Please let us know if the next update or deactivate/activate cycle does not recreate
   the table on your site.

Viewing 3 replies - 1 through 3 (of 3 total)

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fhcaptcha_events-sql-table-doesnt-exist%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://ps.w.org/hcaptcha-for-forms-and-more/assets/icon.svg?rev=3026321)
 * [hCaptcha for WP](https://wordpress.org/plugins/hcaptcha-for-forms-and-more/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/hcaptcha-for-forms-and-more/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/hcaptcha-for-forms-and-more/)
 * [Active Topics](https://wordpress.org/support/plugin/hcaptcha-for-forms-and-more/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/hcaptcha-for-forms-and-more/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/hcaptcha-for-forms-and-more/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [kaggdesign](https://wordpress.org/support/users/kaggdesign/)
 * Last activity: [1 day, 1 hour ago](https://wordpress.org/support/topic/hcaptcha_events-sql-table-doesnt-exist/#post-18933707)
 * Status: resolved