Delete Duplicate Post Stop Working Due to SQL Syntax Error
-
Hi,
I’m running the current version of your plugin and just started to get SQL syntax errors. In short, the plugin finds duplicates but does not delete them due to the syntax error. PHP version is 5.5.34
I can send you information on the error and server info. Please let me Know.
Best, Murray Owen
-
Hello Murray
The new version 4 should fix this, please let me know if it does not.
Hi Lars,
I’ve updated and re-tested the plugin but it’s not working at all now. My test was to leave the pluging running for a couple of days on my site rocketnews.com and set to delete duplicates every hour. I get lots of duplicates through rss feeds. However after a couple days, I have over a 1000 duplicates and the pluging didn’t detect or delete anything (the log is blank). I’ve gone back to using Fix Duplicates to clean out the past two days, but the downside of Fix Duplicates is that it requires manual triggers to find and then duplicate. The appeal of your plugin is that you can set it and leave it (it use to work…). Let me know. Thanks. Murray.
Hi mowen
That is strange, I have been testing the plugin on many sites, could you please confirm that you have chosen the correct post type to look for in the plugin settings page?
I will try to figure out the problem, but not quite sure right now what is the matter. Nothing is happening in the log on the plugin settings page?
Oh, I also just noticed your PHP version. You really should consider an upgrade, WordPress itself requires minimum PHP 5.6 https://ww.wp.xz.cn/about/requirements/
I do not think this is related to the bug, but you should look in to it anyways, as PHP 5.5 is no longer updated with security updates, etc.
Hi Lars,
I just upgrade WP to 4.6 and I notice an recent update for your plugin as well. Update both and now it’s detection duplicates and deletes them on my request. I’ll be testing the auto deletion over the next day. But it all looks like its working again. And I will upgrade to php 5.6 too. Thanks!!
Murray.
Hi mowen
Glad to hear that 🙂 Please let me know if you encounter a bug again, I hope the cron job runs properly now.
Hi Lars,
I’m not sure the cron jbb is running properly. I believe it is suppose to run once per hour. This morning, I check my duplicates and I have duplicates ranging from 5:30 am to 7:30am (total of 18 duplicate titles or 39 individual entries).
I’m looking at the cron events (cron events plugin) and I can’t see a cron job that relates your plugin. Can you let me know what it is? Or is there a way to manually add it?
I just check the log and the last time the cron job ran was:
2016-08-22 21:35:24 Cron job running.
It looks like it stopped running. The duplicate post accumulation was on 2016-08-23, the next morning so far.
Murray.
I’ve let it run another day. It stopped working at about 3 am this morning according to the log (cron job stopped running every 1/2 hour). It stop after deleting 6 duplicates.
Also, I have the notify me by email on deletes but I am not getting emails. Initially, I was when I first reinstalled it. The emails on delete events has stopped. So I’ve disabled email (the option) and saved. On that save event, it seem to wake up the cron job as it’s showing in the log.
Here’s the last few lines of the log of the events above:
2016-08-24 03:57:43 A total of 6 duplicate posts were deleted.
2016-08-24 03:57:43 Deleted post ‘WHY IT MATTERS: Supreme Court’ (id: 1828437) and related post meta data.
2016-08-24 03:57:44 A total of 6 duplicate posts were deleted.
2016-08-24 09:08:24 Cron job running. (this is after I resaved settings without email, but it did not delete any of the new duplicates…)I hope this helps. Best Murray.
Hummm… the cron job is running now (ddp_cron) and deleting the posts. I think the question is why does it stop running?
Hi mowen
Thank you for your detailed feedback, I hope to take a look and find/fix the bug very soon.
Hi Lars,
I’ve had two successful days of the cron job not stopping. The changes I made were to run the cron every 30 minutes and to deselect the email notification.
The log shows successful deletion of duplicates and the con continuing to run.
It seems to be working now.
Best, Murray.
Hi Murray
I am happy to hear you got it working, but I want to see if I can figure out why the other schedules does not trigger properly.
Hi Lars, The cron job ran fine for a couple of days but just stopped again (in this case on last Friday). If I delete the duplicate posts that are showing, then the cron job starts working again. However, it seem to randomly stop and is missing from my cron jobs (I view them in WP Cron). I have to check it at least once a day to make sure it’s still running.
Thanks for you help. Murray.
The topic ‘Delete Duplicate Post Stop Working Due to SQL Syntax Error’ is closed to new replies.