Scan marked used files as not used
-
Hi, I am using DIVI and unfortunately on the scan the plugin marked most of my images as “not found in content” although they are all used and linked to. Are there issues with DIVI Pagebuilder?
-
Hi @kvrmedia,
I am sorry, but as normally indicated by Media Cleaner (in the Dashboard), Divi is only handled by the Pro Version – it requires a lot more technical checks.
Hey Jordy, ok. I found that hint already, got the pro version and scanned again (media and contenet – took a while). This time seems like it has worked fine. Now I get an server error message when trying to delete the files. I autoretried, plugin froze and after having scanned the whole night scan result was gone after I hit the stop button. I am sure when its working its a great plugin. But gives me somewhat of a headache right now… Seems like now I have to do another scan.
Now I get an server error message when trying to delete the files.
What kind of error did you get? If you have that chance, check your PHP Error Logs to know exactly what happens.
Media Cleaner doesn’t have known bugs as of today, but since it’s a very intense process that uses more or less everything you have in WP, sometimes the hosting services cut the requests, times them out, etc (and there is no way around it, except talking with them ; on my side, I try to propose to re-try, but it’s all I can do).
You absolutely need to run the process until the end ๐
Hi Jordy, there are various error messages also throughout the scan (PHP message: Media Cleaner: Could not find attached file for Media ID 59816′, referer) but the one that happened when it froze must have been this one: AH01797: client denied by server configuration: /kunden/*******/webseiten/karmasurfretreat/.git
I know, its a shared hosting and probably on the lower end in terms of server performance. I already ran into major issues (server time out (error 524)) when trying to import the database backup with phpmyadmin. I set the max_filesize to 512, the php_memory to 256 (maybe thats not enough??) – any other suggestions on minimum requirements in terms of settings?-
This reply was modified 2 years, 9 months ago by
kvrmedia.
or it was this one:
Got error ‘PHP message: PHP Warning: Attempt to read property “id” on null in /kunden/*****/webseiten/karmasurfretreat/wp-content/plugins/media-cleaner-pro/classes/core.php on line 723
PHP message: PHP Fatal error: Uncaught Error: Attempt to assign property “id” on null in /kunden/*****/webseiten/karmasurfretreat/wp-content/plugins/media-cleaner-pro/classes/core.php:723\nStack trace:\n#0 /kunden/*****/webseiten/karmasurfretreat/wp-content/plugins/media-cleaner-pro/classes/core.php(735): Meow_WPMC_Core->get_issue()\n#1 /kunden/*****/webseiten/karmasurfretreat/wp-content/plugins/media-cleaner-pro/classes/rest.php(553): Meow_WPMC_Core->delete()\n#2 /kunden/*****/webseiten/karmasurfretreat/wp-includes/rest-api/class-wp-rest-server.php(1181): Meow_WPMC_Rest->rest_delete()\n#3 /kunden/*****/webseiten/karmasurfretreat/wp-includes/rest-api/class-wp-rest-server.php(1028): WP_REST_Server->respond_to_request()\n#4 /kunden/*****/webseiten/karmasurfretreat/wp-includes/rest-api/class-wp-rest-server.php(442): WP_REST_Server->dispatch()\n#5 /kunden/*****/webseiten/karmasurfretreat/wp-includes/rest-api.php(410): WP_REST_Server->servโฆ’, referer https://www.karmasurfretreat.com/wp-admin/upload.php?page=wpmc_dashboardThose errors (actually warnings) are extremely weird; they should not happen. Looks like the DB has some issues; some entries should be there, but they aren’t.
Something I realized is that you might be using some performance plugin. Do you? If yes, absolutely disable it, especially with Media Cleaner. You really need fresh results, and you need to have proper execution of each action.
I am using autoptimize and wprocket. You mean disable it during the scan (~2hrs) or sufficient to disable when trying to clean?
This website is online 13 years with some relaunch and lots of installing and deinstallings plugins – so yes. chances are the db is corrupt at some point.
This time, when trying to clean the files I only chose 100, but at 20% server times out/closes connection.
Will try with less now. Its just that the plugin found over a 1000 files not associated…;-)
Before I could try deleting less at a time, I had to get out of the 100-one. So I skipped every 20% until it was done. Plugin told me that the process finished but had 5 errors. Unfortunately the list with the scan-results is empty again. So here we go for another 2hrs of scan. ๐
I have written an article about why not using WP Rocket, here: https://meowapps.com/do-not-use-wp-rocket/. I don’t like to do this, but it has to be said and done ๐ We are so many developers to wonder why so many people are using performance plugins. Way too many troubles, unfortunately.
Absolutely disable those plugins, and reset all your caches, your own browser included (because those plugins also force caching on your local – which leads to more issues).
Run the whole process again, on a non-cached website, to get proper results. I hope it will go well ๐
Also: don’t skip anything. The whole install needs to be analyzed! It’s really important. Of course, once the results are here, you can delete the results little by little, that’s totally okay.
This was the last error:
[Sat Jun 24 15:36:25 2023] [error] [client 93.108.60.19:0] AH01071: Got error ‘PHP message: PHP Warning: Attempt to read property “id” on null in /kunden/*****/webseiten/karmasurfretreat/wp-content/plugins/media-cleaner-pro/classes/core.php on line 723PHP message: PHP Fatal error: Uncaught Error: Attempt to assign property “id” on null in /kunden/*****/webseiten/karmasurfretreat/wp-content/plugins/media-cleaner-pro/classes/core.php:723\nStack trace:\n#0 /kunden/*****/webseiten/karmasurfretreat/wp-content/plugins/media-cleaner-pro/classes/core.php(735): Meow_WPMC_Core->get_issue()\n#1 /kunden/*****/webseiten/karmasurfretreat/wp-content/plugins/media-cleaner-pro/classes/rest.php(553): Meow_WPMC_Core->delete()\n#2 /kunden/*****/webseiten/karmasurfretreat/wp-includes/rest-api/class-wp-rest-server.php(1181): Meow_WPMC_Rest->rest_delete()\n#3 /kunden/*****/webseiten/karmasurfretreat/wp-includes/rest-api/class-wp-rest-server.php(1028): WP_REST_Server->respond_to_request()\n#4 /kunden/*****/webseiten/karmasurfretreat/wp-includes/rest-api/class-wp-rest-server.php(442): WP_REST_Server->dispatch()\n#5 /*****/webseiten/karmasurfretreat/wp-includes/rest-api.php(410): WP_REST_Server->servโฆ’, referer http://www.karmasurfretreat.com/ wp-admin/upload.php?page=wpmc_dashboardOk, wil try with everything disabled on next run. Fingers crossed.
Thank you for your patience and help. ๐
“https://meowapps.com/do-not-use-wp-rocket/.ย “…I feel ya, but its just that i ran a page speed test with everything deactivated and scored 7 (!) and since I kind of find my way through running on a tight budget and not being a skilled developer, activating 3 plugins does, apart from the complications (and there is also more issues with the DIVI builder), a pretty good job in getting the scores (95) that give me more google love. But again, I can totally see and understand your frustration helping people with little developer knowledge playing with tools they dont understand and expect you to solve everything with the blink of an eye. ๐ Patience though, AI will probably change a lot and make us all good developers pretty soon. ๐
This time (with wprocket, autoptimize and apcu manager deactivated) I chose to only delete the first 50 items. This time there was no prompt of server error, but when process was finished the scanned list was again empty and “trash” did not show any items (neither did “references” nor “issues”).
Last instance of error log:
[Sat Jun 24 17:36:05 2023] [error] [client 93.108.60.19:0] AH01071: Got error ‘PHP message: Media Cleaner: Could not find attached file for Media ID 58068PHP message: Media Cleaner: Could not find attached file for Media ID 58069PHP message: Media Cleaner: Could not find attached file for Media ID 58070PHP message: Media Cleaner: Could not find attached file for Media ID 58071PHP message: Media Cleaner: Could not find attached file for Media ID 58072PHP message: Media Cleaner: Could not find attached file for Media ID 58073PHP message: Media Cleaner: Could not find attached file for Media ID 58074PHP message: Media Cleaner: Could not find attached file for Media ID 58075PHP message: Media Cleaner: Could not find attached file for Media ID 58076PHP message: Media Cleaner: Could not find attached file for Media ID 58077PHP message: Media Cleaner: Could not find attached file for Media ID 58078PHP message: Media Cleaner: Could not find attached file for Media ID 58080PHP message: Media Cleaner: Could not find attached file for Media ID 58082PHP message: Media Cleaner: Could not find attached file for Media ID 58084PHP message: Media Cleaner: Could not find attached file for Media ID 58086PHP message: Media Cleaner: Could not find attached file for Media ID 58088PHP message: Media Cleaner: Could not find attached file for Media ID 58090PHP message: Media Cleaner: Could not find attached file for Media ID 58092PHP message: Media Cleaner: Could not find attached file for Media ID 58248PHP message: Media Cleaner: Could not find attached file for Media ID 58249PHP message: Media Cleaner: Could not find attached file for Media ID 59611PHP message: Media Cleaner: Could not find attached file for Media ID 59612PHP message: Media Cleaner: Could not find attached file for Media ID 59665PHP message: Media Cleaner: Could not find attached file for Media ID 59666PHP message: Media Cleaner: Could not find attached file for Media ID 59693PHP message: Media Cleaner: Could not find attached file for Media ID 59694PHP message: Media Cleaner: Could not find attached file for Media ID 59813PHP message: Media Cleaner: Could not find attached file for Media ID 59814PHP message: Media Cleaner: Could not find attached file for Media ID 59815PHP message: Media Cleaner: Could not find attached file for Media ID 59816’, referer https://www.karmasurfretr—aso
Any advice for the 4th run?
๐Wait, maybe they are not found, because they actually dont exist anymore, because I actually did delete some files in one of the first runs (non-pro-version).
Just why do they show up in the scan then – because of activated perfomance plugins back then?Maybe trying the file system scan is the way to go then?
-
This reply was modified 2 years, 9 months ago by
The topic ‘Scan marked used files as not used’ is closed to new replies.