Thread Starter
grex22
(@grex22)
Actually, a small update to this — I thought logging was working, but it appears to have only logged activity for the first 5 minutes or so of the scan, and then nothing after that. The scan took a half hour or so.. Very confusing!
Hi,
Logging indicates that it’s finding images, but there’s nothing in the table when I reload the dashboard.
That is just logging, it’s not the final results; for the final results, Media Cleaner needs absolutely to go through the entire process.
I thought logging was working, but it appears to have only logged activity for the first 5 minutes or so of the scan, and then nothing after that.
So it looks like it broke or timed out in the middle before the end of the process. Did you check your PHP Error Logs? Have you got any error on the screen?
Thread Starter
grex22
(@grex22)
Thanks for the reply! You’re always super helpful on these boards, so I appreciate that — I’ve got the Pro version, so ultimately I was able to run a full scan via WP CLI. After that, the results of CLI scan showed up in the results table in the GUI.
However, back to the original question, I did see errors in the scan. It said it had completed, but with ~1,000 errors or so. I thought the errors weren’t fatal, as the scan kept finishing, but perhaps the table doesn’t get populated if there are any errors during scan?
However, back to the original question, I did see errors in the scan.
Try to check what are the errors, it’s really, reaaaally important 🙂 I have a few users with issues related to Elementor. But it could be any other plugin too.
I thought the errors weren’t fatal, as the scan kept finishing, but perhaps the table doesn’t get populated if there are any errors during scan?
The plugin runs asynchronous queries, if one of them fail, it might be either a warning or a fatal error, but in the last case, it’s quite bad as it will impact the results by a lot. In your case, with so many errors, I wouldn’t trust the results at all, unfortunately 🙁
The good news is that I am sure we can fix this.
Thread Starter
grex22
(@grex22)
Gotcha! Thanks Jordy — So PHP error log would be the best place to check for errors? I don’t see much populated in the Media Cleaner logs, as it seems the errors I encountered may’ve prevented those from getting logged as well. Likely some funky PHP errors, as this is a pretty complex site…
I’ll dig into that shortly and see what I can see!
Follow-up question. As I’m using the Pro version (partially for CLI, partially for the ACF and Page Builder support), is there anything I need to ‘check’ in the settings to enable those ACF/Builder scans? Or are they enabled by default in the pro version?
Gotcha! Thanks Jordy — So PHP error log would be the best place to check for errors?
Definitely 🙂 First thing to look at when there is an error, or a crash.
I don’t see much populated in the Media Cleaner logs, as it seems the errors I encountered may’ve prevented those from getting logged as well.
Errors are usually not from Media Cleaner, I make sure my plugins don’t generate any errors, warnings and even notices. But yeah, other developers aren’t very careful and in some cases they have warnings, which breaks things, and asynchronous requests. It’s important to find the error that occurs during the scan.
Follow-up question. As I’m using the Pro version (partially for CLI, partially for the ACF and Page Builder support), is there anything I need to ‘check’ in the settings to enable those ACF/Builder scans?
No need! All the files linked to extra support are automatically loaded depending on the plugins you have installed and enabled 🙂
You are very welcome! Don’t hesitate to let me know if you have any feedback, feature requests. And of course, don’t hesitate to leave a little review neither 🥰 Have a nice week ahead!