The error:
[26-Mar-2022 03:30:24 UTC] WordPress database error Duplicate column name 'url' for query ALTER TABLE wpqu_loginizer_logs ADD <code>url</code> VARCHAR(255) NOT NULL DEFAULT '' AFTER <code>ip</code>; made by require('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), do_action('plugins_loaded'), WP_Hook->do_action, WP_Hook->apply_filters, loginizer_load_plugin, loginizer_update_check
[26-Mar-2022 17:56:04 UTC] WordPress database error Duplicate column name 'url' for query ALTER TABLE wp_loginizer_logs ADD<code>url</code>VARCHAR(255) NOT NULL DEFAULT '' AFTER<code>ip</code>; made by require('wp-blog-header.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), do_action('plugins_loaded'), WP_Hook->do_action, WP_Hook->apply_filters, loginizer_load_plugin, loginizer_update_check
How do I fix this?
]]>wp_yoast_seo_links
for 8 different columns.I found a lot of these entries in my apache’s error.log:
[Thu Jul 28 10:19:09.222952 2016] [:error] [pid XXXXX] [client XXX.XXX.XXX.XXX:XXXXX] WordPress database error Duplicate column name ‘wsi_close_on_esc_function’ for query ALTER TABLE wp_wsi_splashimage ADD COLUMN wsi_close_on_esc_function BOOLEAN NULL; made by require_once(‘wp-load.php’), require_once(‘wp-config.php’), require_once(‘wp-settings.php’), do_action(‘plugins_loaded’), WsiBack->update_db_check, MainManager->wsi_install_db, referer: https://mysite.com/wp-admin/post.php?post=1103&action=edit
Why does the plugin have to alter a table when someone is editing a post?
Thank you
https://www.ads-software.com/plugins/wsi/
]]>I work at a hosting company and we like and recommend Wordfence. However, Wordfence has a bug with how it mucks with the wfBlocks table that yields the below error.
The error is:
[ERROR] Slave SQL: Error ‘Duplicate column name ‘permanent” on query. Default database: ‘wp_<databasename>’. Query: ‘alter table wp_wfBlocks add column permanent tinyint UNSIGNED default 0’, Internal MariaDB error code: 1060
Error code 1060 is: ER_DUP_FIELDNAME
(This is different than https://www.ads-software.com/support/topic/duplicate-column-name-permanent#post-7086071)
Our hosted database is a three server MariaDB Galera cluster running the latest stable version 10.0.19. One server receives all the write requests. (It’s a master-master-master cluster, but having a single master handling writes lessens the risk of a conflict.)
My guess as to what is happening is that Wordfence sends multiple “alter table” commands to the master, which it in turn sends to the other, the other servers may process them in a different order and when they reconcile, the conflict occurs.
This error only occurs with Wordfence. The client’s other plugins don’t seem to matter – some run W3TC, WP SuperCache, no caching. It runs the gambit.
It’s not a frequent error, but it is a possibly dangerous one.
https://www.ads-software.com/plugins/wordfence/
]]>Error message
MysqlError: Duplicate column name 'id'
Sample stack trace
…ery called at /data/home/mysite.com/httpdocs/wp-content/
db.php (777)
…/mysite.com/httpdocs/wp-content/plugins/wordfence/lib/
wfDB.php (30)
in wfDB::queryWrite called at ? (?)
…/mysite.com/httpdocs/wp-content/plugins/wordfence/lib/
wfDB.php (50)
…mysite.com/httpdocs/wp-content/plugins/wordfence/lib/
wordfenceClass.php (332)
…mysite.com/httpdocs/wp-content/plugins/wordfence/lib/
wordfenceClass.php (432)
…mysite.com/httpdocs/wp-content/plugins/wordfence/
wordfence.php (25)
…_once called at /data/home/mysite.com/httpdocs/
wp-settings.php (215)
…re_once called at /data/home/mysite.com/httpdocs/
wp-config.php (123)
…uire_once called at /data/home/mysite.com/httpdocs/
wp-load.php (37)
…ce called at /data/home/mysite.com/httpdocs/
wp-blog-header.php (12)
in require called at /data/home/mysite.com/httpdocs/index.php (17)
Anyone else seeing this error? Is this something that I can fix? Or is it something in Wordfence?
https://www.ads-software.com/plugins/wordfence/
]]>The plugin generated 957 characters of unexpected output during activation. If you notice “headers already sent” messages, problems with syndication feeds or other issues, try deactivating or removing this plugin.
Also get these errors:
WordPress database error: [Duplicate column name 'field_order']
ALTER TABLE <code>wp_cf7dbplugin_submits</code> ADD COLUMN <code>field_order</code> INTEGER
WordPress database error: [Duplicate column name 'file']
ALTER TABLE <code>wp_cf7dbplugin_submits</code> ADD COLUMN <code>file</code> LONGBLOB
WordPress database error: [Duplicate key name 'submit_time_idx']
ALTER TABLE <code>wp_cf7dbplugin_submits</code> ADD INDEX <code>submit_time_idx</code> ( <code>submit_time</code> )
WordPress database error: [Duplicate key name 'form_name_idx']
ALTER TABLE <code>wp_cf7dbplugin_submits</code> ADD INDEX <code>form_name_idx</code> ( <code>form_name</code> )
https://www.ads-software.com/extend/plugins/contact-form-7-to-database-extension/
]]>WordPress database error Duplicate column name ‘meta_robots’ for query ALTER TABLE wp_posts ADD COLUMN meta_robots varchar(20) made by require, require_once, require_once, require_once, do_action, call_user_func_array, wp_meta_robots_plugin->meta_robots_addcolumn
How can I find out what is causing this? Where can I view and edit my database columns?
]]>