WPIntell

Source evidence

Database not created

Price Alerts for WooCommerce · support · 2025-09-20T14:57:00+00:00

mixedsentiment
highseverity
0.95relevance
5replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

3 / 31 rows with source links

9.7% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

28 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
uponity resolved
Error: AH01071: Got error 'PHP message: WordPress database error Table 'XX.dptvndp_price_alerts_subscriptions' doesn't exist for query \n SELECT subs.*\n FROM dptvndp_price_alerts_subscriptions AS subs\n WHERE subs.status = 'pending' ORDER BY subs.date_created DESC made by require('wp-admin/menu.php'), require_once('wp-admin/includes/menu.php'), do_action('admin_menu'), WP_Hook->do_action, WP_Hook->apply_filters, Devnet\\PriceAlerts\\Admin\\AdminSide->admin_menu, Devnet\\PriceAlerts\\Includes\\Helper::get_subscriptions', referer: https://xxx.de/wp-admin/admin.php?page=price-alerts-subscriptions That’s an unusual error, the plugin should automatically create its database tables during activation. Could you please try deactivating the plugin and then activating it again? This will trigger the table creation process. Thank you. I tried id. But not working. I find another Error in the Plugin Activation Process. Maybe it helps: AH01071: Got error 'PHP message: WordPress database error Invalid default value for 'date_created' for query CREATE TABLE dptvndp_price_alerts_subscriptions (\n\t\t\tid BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT,\n\t\t\t\n\t\t\t-- Product info\n\t\t\tproduct_id BIGINT(20) UNSIGNED NOT NULL,\n\t\t\tproduct_type VARCHAR(20) NULL,\n\t\t\tproduct_price DECIMAL(10,2) NOT NULL,\n\t\t\tcurrency VARCHAR(3) NULL,\n\t\t\ttarget_price DECIMAL(10,2) NULL,\n\t\t\n\t\t\t-- User info\n\t\t\tname VARCHAR(120) NULL,\n\t\t\temail VARCHAR(120) NOT NULL,\n\t\t\topt_in TINYINT(1) UNSIGNED NULL,\n\t\t\tmarketing TINYINT(1) UNSIGNED NULL,\n\t\t\n\t\t\t-- Tracking / extra data\n\t\t\tsecurity_token VARCHAR(255) NULL,\n\t\t\tcustom_input VARCHAR(255) NULL,\n\t\t\tcustom_data TEXT NULL,\n\t\t\n\t\t\t-- Status & timestamps\n\t\t\tstatus VARCHAR(20) NULL,\n\t\t\tnotification_date DATETIME NULL,\n\t\t\tdate_created DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,\n\t\t\n\t\t\tPRIMARY KEY (id),\n\t\t\tINDEX (product_id),\n\t\t\tINDEX (email),\n\t\t\tINDEX (status),\n\t\t\tCONSTRAINT email_product_unique UNIQUE (email, product_id)\n\t\t) DEFAULT CHARACTER SET utf8mb4 COLLATE...; PHP message: WordPress database error Can't create table 'wp_hfdso.dptvndp_price_alerts_meta' (errno: 150) for query CREATE TABLE dptvndp_price_alerts_meta (\n\t\t\tid BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT,\n\t\t\tsubscribe_id BIGINT(20) UNSIGNED NOT NULL,\n\t\t\tmeta_key VARCHAR(100) NOT NULL,\n\t\t\tmeta_value TEXT NOT NULL,\n\t\t\tPRIMARY KEY (id),\n\t\t\tINDEX (subscribe_id),\n\t\t\tFOREIGN KEY (subscribe_id) REFERENCES dptvndp_price_alerts_subscriptions(id) ON DELETE CASCADE\n\t\t) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci made by activate_plugin, do_action('activate_price-alerts/price-alerts.php'), WP_Hook->do_action, WP_Hook->apply_filters, activate_devnet_price_alerts, Devnet\\PriceAlerts\\Includes\\Activator::activate, Devnet\\PriceAlerts\\Includes\\Activator::setup_db_tables, Devnet\\PriceAlerts\\Includes\\Activator::setup_price_alerts_meta_db_table, dbDelta', referer: https://xxx.de/wp-admin/plugins.php?plugin_status=all&paged=1&s Thanks for reporting this! The issue might be related with how MySQL is configured on your server. Some setups don’t allow a DATETIME column to use DEFAULT CURRENT_TIMESTAMP . Because of that, the first table wasn’t created and the second one (with the foreign key) failed too. If you’re comfortable editing code, find a file located: /price-alerts/includes/activator.php and change this line date_created DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP to date_created TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP Then deactivate and activate the plugin again to re-run table creation. We’ll include this fix in the next release so it works on all setups. Thanks again! Now it works 🙂 Thank you very much Great to hear it’s working now 🙂 The new version is already released. Thanks for letting me know!

Comments

5 shown
Marin Matosevic 2025-09-20T15:20:00+00:00

That’s an unusual error, the plugin should automatically create its database tables during activation. Could you please try deactivating the plugin and then activating it again? This will trigger the table creation process.

uponity 2025-09-20T15:31:00+00:00

Thank you. I tried id. But not working. I find another Error in the Plugin Activation Process. Maybe it helps: AH01071: Got error 'PHP message: WordPress database error Invalid default value for 'date_created' for query CREATE TABLE dptvndp_price_alerts_subscriptions (\n\t\t\tid BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT,\n\t\t\t\n\t\t\t-- Product info\n\t\t\tproduct_id BIGINT(20) UNSIGNED NOT NULL,\n\t\t\tproduct_type VARCHAR(20) NULL,\n\t\t\tproduct_price DECIMAL(10,2) NOT NULL,\n\t\t\tcurrency VARCHAR(3) NULL,\n\t\t\ttarget_price DECIMAL(10,2) NULL,\n\t\t\n\t\t\t-- User info\n\t\t\tname VARCHAR(120) NULL,\n\t\t\temail VARCHAR(120) NOT NULL,\n\t\t\topt_in TINYINT(1) UNSIGNED NULL,\n\t\t\tmarketing TINYINT(1) UNSIGNED NULL,\n\t\t\n\t\t\t-- Tracking / extra data\n\t\t\tsecurity_token VARCHAR(255) NULL,\n\t\t\tcustom_input VARCHAR(255) NULL,\n\t\t\tcustom_data TEXT NULL,\n\t\t\n\t\t\t-- Status & timestamps\n\t\t\tstatus VARCHAR(20) NULL,\n\t\t\tnotification_date DATETIME NULL,\n\t\t\tdate_created DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,\n\t\t\n\t\t\tPRIMARY KEY (id),\n\t\t\tINDEX (product_id),\n\t\t\tINDEX (email),\n\t\t\tINDEX (status),\n\t\t\tCONSTRAINT email_product_unique UNIQUE (email, product_id)\n\t\t) DEFAULT CHARACTER SET utf8mb4 COLLATE...; PHP message: WordPress database error Can't create table 'wp_hfdso.dptvndp_price_alerts_meta' (errno: 150) for query CREATE TABLE dptvndp_price_alerts_meta (\n\t\t\tid BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT,\n\t\t\tsubscribe_id BIGINT(20) UNSIGNED NOT NULL,\n\t\t\tmeta_key VARCHAR(100) NOT NULL,\n\t\t\tmeta_value TEXT NOT NULL,\n\t\t\tPRIMARY KEY (id),\n\t\t\tINDEX (subscribe_id),\n\t\t\tFOREIGN KEY (subscribe_id) REFERENCES dptvndp_price_alerts_subscriptions(id) ON DELETE CASCADE\n\t\t) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci made by activate_plugin, do_action('activate_price-alerts/price-alerts.php'), WP_Hook->do_action, WP_Hook->apply_filters, activate_devnet_price_alerts, Devnet\\PriceAlerts\\Includes\\Activator::activate, Devnet\\PriceAlerts\\Includes\\Activator::setup_db_tables, Devnet\\PriceAlerts\\Includes\\Activator::setup_price_alerts_meta_db_table, dbDelta', referer: https://xxx.de/wp-admin/plugins.php?plugin_status=all&paged=1&s

Marin Matosevic 2025-09-20T16:14:00+00:00

Thanks for reporting this! The issue might be related with how MySQL is configured on your server. Some setups don’t allow a DATETIME column to use DEFAULT CURRENT_TIMESTAMP . Because of that, the first table wasn’t created and the second one (with the foreign key) failed too. If you’re comfortable editing code, find a file located: /price-alerts/includes/activator.php and change this line date_created DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP to date_created TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP Then deactivate and activate the plugin again to re-run table creation. We’ll include this fix in the next release so it works on all setups. Thanks again!

uponity 2025-09-21T07:01:00+00:00

Now it works 🙂 Thank you very much

Marin Matosevic 2025-09-22T06:36:00+00:00

Great to hear it’s working now 🙂 The new version is already released. Thanks for letting me know!