Home › Forums › Quform WordPress › Database error disrupts MySQL replication
- This topic has 5 replies, 2 voices, and was last updated 6 years ago by
Ally.
- AuthorPosts
- March 27, 2019 at 7:04 pm #28891
michael_baxter
ParticipantI have Quforms installed on several websites, and one of them is an enterprise system with MySQL replication configured. Quforms is breaking MySQL replication with repeated MySQL errors. These errors are present in every system where Quforms is installed.
WordPress database error Duplicate entry 'Pzbu2fBqAcfAXvsfdtiXkDSfrFI8t1pF9DiYsMHs' for key 'id' for query INSERT INTO
prd_quform_sessions
(id
,payload
,last_activity
) VALUES ( ...Please update your system to prevent these issues, or tell me how to update MySQL to prevent these issues. Quforms is a great product, and I don’t want to quit using it, but I cannot leave the Enterprise at risk of data loss because this one plugin breaks MySQL replication.
I am attaching a portion of our most recent log file, in case you find this useful for troubleshooting.
Attachments:
You must be logged in to view attached files.March 29, 2019 at 11:39 am #28910Ally
Support StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
April 1, 2019 at 11:51 pm #28930michael_baxter
ParticipantI had already attempted the suggested update on one of my servers, with no luck. As of this morning, it was still throwing warnings, and I have rebooted and cleared the cache since applying the update.
So, to ensure I hadn’t missed something I added variants. In all, here are the entries that I added:
- quform_sessions (recommended)
- quform_session
- quform_sessions_
- quform_session_
I’m not sure which of these worked, but one of these entries helped. I copied these settings to several of my sites, and they all appear to have stopped throwing the PHP warning reported earlier.
NOTE: I had to purge all W3TC caches for this to work, but it worked almost immediately after that.If you can review which variants might have worked and confirm that it appears to be the additional of “quform_session_” or “quform_sessions_”. It would be really helpful to update the page you linked to.
Thanks for the continued support!
April 2, 2019 at 2:15 pm #28933Ally
Support StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
April 2, 2019 at 7:56 pm #28940michael_baxter
ParticipantAs a follow-up… I double-checked my log files this morning. Much to my dismay, the most important installation still has that error occurring every few minutes.
There are two major differences between other installations and this one:
- This server is a “Networked” or “Multisite” environment.
- This server is running on Microsoft IIS, not Apache/Linux.
I cannot figure out why your suggestion worked in all other environments, but not the most important one. Is there any chance that you could investigate, or recommend a course of investigation?
April 5, 2019 at 5:38 am #28954Ally
Support StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
- AuthorPosts
- You must be logged in to reply to this topic.