Empty Cart Button creating multiple database errors
-
Hi,
Your function, prowc_empty_cart_button_check_version(), is evaluating plugin version 1.3.3 to be less than version 1.3.0, leading it to run on every page load.
Since the first time it runs it creates all the database keys it’s going to create, every additional run throws duplicate entry database errors. Over one hundred on my client’s site on every page load.
Also, it seems the logic is flawed. It’s looking for options keys that start with “alg_wc_”, from when the plugin belonged to Algoritmika, and migrates them to “prowc_”. But Algoritmika had lots of plugins, not just Empty Cart Button, and when there’s more than just your plugin installed your function grabs options keys from all the other Algoritmika plugins and creates versions of them prefixed with “prowc_”. On my client’s site that’s 115 options keys created for non-existent plugins.
I’ve had to deactivate your plugin on my client’s site. I’ll keep an eye on your changelogs going forward.
The topic ‘Empty Cart Button creating multiple database errors’ is closed to new replies.