@silkeh thanks for letting me know about it! The error strongly suggests that the file /wp-content/plugins/wp-asset-clean-up/classes/OptimiseAssets/MinifyCss.php is missing, otherwise, everything suggests that the error should not trigger at all.
Everything is fine on my end when I tested it. Can you delete the re-install the plugin, please? All the current settings will be preserved, no worries 😉
Thread Starter
SilkeH
(@silkeh)
Thanks for the quick response.
I already tried deleting and reinstalling and unfortunately didn’t help
Thread Starter
SilkeH
(@silkeh)
Shortly after reactivating I got Multiplr iterations of the following errors in the WP_DEBUG error log
[13-Sep-2020 15:27:13 UTC] PHP Warning: include_once(/home/*/public_html/wp-content/plugins/wp-asset-clean-up/wpacu.php): failed to open stream: No such file or directory in /home/*/public_html/wp-settings.php on line 377
[13-Sep-2020 15:27:13 UTC] PHP Warning: include_once(): Failed opening '/home/*/public_html/wp-content/plugins/wp-asset-clean-up/wpacu.php' for inclusion (include_path='.:/opt/alt/php74/usr/share/pear') in /home/*/public_html/wp-settings.php on line 377
[13-Sep-2020 15:27:08 UTC] PHP Warning: strpos(): Empty needle in /home/*/public_html/wp-includes/plugin.php on line 687
[13-Sep-2020 15:27:17 UTC] PHP Fatal error: Uncaught Error: Class 'WpAssetCleanUp\Plugin' not found in /home/*/public_html/wp-content/plugins/wp-asset-clean-up/classes/CleanUp.php:28
Stack trace:
#0 /home/*/public_html/wp-includes/class-wp-hook.php(287): WpAssetCleanUp\CleanUp->doClean('')
#1 /home/*/public_html/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(NULL, Array)
#2 /home/*/public_html/wp-includes/plugin.php(478): WP_Hook->do_action(Array)
#3 /home/*/public_html/wp-settings.php(546): do_action('init')
#4 /home/*/public_html/wp-config.php(78): require_once('/home/***...')
#5 /home/*/public_html/wp-load.php(37): require_once('/home/***...')
#6 /home/*/public_html/wp-blog-header.php(13): require_once('/home/***...')
#7 /home/poiaustralia/public_html/index.php(17): require('/home/***...')
#8 {main}
thrown in /home/*/public_html/wp-content/plugins/wp-asset-clean-up/classes/CleanUp.php on line 28
@silkeh I strongly believe that the following error is unrelated to Asset CleanUp as it’s from a WordPress core file:
[13-Sep-2020 15:27:08 UTC] PHP Warning: strpos(): Empty needle in /home/*/public_html/wp-includes/plugin.php on line 687
Moreover, one of the errors suggests that the plugin files either do not exist or there’s a problem with the hosting setup:
[13-Sep-2020 15:27:13 UTC] PHP Warning: include_once(/home/*/public_html/wp-content/plugins/wp-asset-clean-up/wpacu.php): failed to open stream: No such file or directory in /home/*/public_html/wp-settings.php on line 377
Please go to “Dashboard” – “Updates” (/wp-admin/update-core.php) and click on “Re-install Now”. Any corrupted or missing files will be replaced/copied where they belong. Also, try to upload the plugin (unzip the file) via SFTP to “/wp-content/plugins/wp-asset-clean-up/“. Let me know how it goes 😉
Thread Starter
SilkeH
(@silkeh)
so I tried reinstalling wordpress and loading asset cleanup via ftp as you suggested twice and the same errors reappeared both times…
[13-Sep-2020 15:27:08 UTC] PHP Warning: strpos(): Empty needle in /home/*/public_html/wp-includes/plugin.php on line 687
this error appears 1000’s of times within a minute which i suspect is using the server cpu
[15-Sep-2020 19:18:09 UTC] PHP Warning: require_once(/home/*/public_html/wp-content/plugins/wp-asset-clean-up/early-triggers.php): failed to open stream: No such file or directory in /home/*/public_html/wp-content/plugins/wp-asset-clean-up/wpacu.php on line 31
[15-Sep-2020 19:18:09 UTC] PHP Fatal error: require_once(): Failed opening required '/home/*/public_html/wp-content/plugins/wp-asset-clean-up/early-triggers.php' (include_path='.:/opt/alt/php74/usr/share/pear') in /home/*/public_html/wp-content/plugins/wp-asset-clean-up/wpacu.php on line 31
[15-Sep-2020 19:18:13 UTC] PHP Warning: include_once(/home/*/public_html/wp-content/plugins/wp-asset-clean-up/wpacu.php): failed to open stream: No such file or directory in /home/*/public_html/wp-settings.php on line 377
[15-Sep-2020 19:18:13 UTC] PHP Warning: include_once(): Failed opening '/home/*/public_html/wp-content/plugins/wp-asset-clean-up/wpacu.php' for inclusion (include_path='.:/opt/alt/php74/usr/share/pear') in /home/*/public_html/wp-settings.php on line 377
this is less frequent
Thanks again for any help
@silkeh based on the errors you mentioned, I strongly believe you haven’t uploaded all the plugin’s files via SFTP, as there are apparently missing ones or there’s something funny from your hosting setup. Also, the first error from /wp-includes/plugin.php is from the WordPress core, not related to Asset CleanUp.