Database table not created on activation
-
I added this plugin on a pretty new pristine WordPress site (RHEL 9, PHP 8.1.27, Apache w/PHP-FPM, MySQL 8), but when I activated it and went to manage, I got the red block message, “Database table cannot be found! Reactivate or reinstall the plugin to create the table.”. Deactivating/reactivating does not help. With debug enabled, I get the following:
WordPress database error Failed to generate invisible primary key. Auto-increment column already exists. for query CREATE TABLE wpb_quotes_llama (
quote_id mediumint( 9 ) NOT NULL AUTO_INCREMENT,
quote TEXT NOT NULL,
title_name VARCHAR( 255 ),
first_name VARCHAR( 255 ),
last_name VARCHAR( 255 ),
source VARCHAR( 255 ),
img_url VARCHAR( 255 ),
author_icon VARCHAR( 255 ),
source_icon VARCHAR( 255 ),
category VARCHAR( 255 ),
UNIQUE KEY quote_id ( quote_id )
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci; made by activate_plugin, do_action(‘activate_quotes-llama/class-quotesllama.php’), WP_Hook->do_action, WP_Hook->apply_filters, QuotesLlama->plugin_db_setup, maybe_create_tableI don’t see anything specifically wrong, but I think the AUTO_INCREMENT might be interfering with UNIQUE KEY?
- You must be logged in to reply to this topic.