>>> Many have this error to be honest but also Asset Cleanup. What to do?
The error you are mentioning is from Elementor plugin and it’s not triggered by Asset CleanUp. Is there anything wrong in particular with the plugin? Asset CleanUp has been tested with PHP 8 and it works fine. If you are using the latest PHP version (8.2.1 at the time of writing this), then Asset CleanUp is not yet compatible with it (at least, no tests have been made to confirm that everything is working fine or not).
Hello Gabe, thanks for responding.
This I get on php 8 the lowest version. All the page styling seems to be impacted. If I deactivate the manage in the front end setting from asset cleanup, it is looking normal again.
Fatal error: Uncaught Error: json_decode(): Argument #1 ($json) must be of type string, array given
in /var/www/vhosts/my_website/wp-content/plugins/wp-asset-clean-up/classes/Main.php on line 791
Oproepstack:
json_decode()
wp-content/plugins/wp-asset-clean-up/classes/Main.php:791
WpAssetCleanUp\Main::filterStyles()
wp-content/plugins/wp-asset-clean-up/classes/Main.php:734
WpAssetCleanUp\Main::onPrintFooterScriptsStyles()
wp-includes/class-wp-hook.php:308
WP_Hook::apply_filters()
wp-includes/class-wp-hook.php:332
WP_Hook::do_action()
wp-includes/plugin.php:517
do_action()
wp-includes/script-loader.php:2163
wp_print_footer_scripts()
wp-includes/class-wp-hook.php:308
WP_Hook::apply_filters()
wp-includes/class-wp-hook.php:332
WP_Hook::do_action()
wp-includes/plugin.php:517
do_action()
wp-includes/general-template.php:3059
wp_footer()
wp-includes/theme-compat/footer.php:38
require_once()
wp-includes/template.php:783
load_template()
wp-includes/template.php:718
locate_template()
wp-content/plugins/elementor-pro/modules/theme-builder/classes/theme-support.php:127
ElementorPro\M\T\C\Theme_Support::get_footer()
wp-includes/class-wp-hook.php:310
WP_Hook::apply_filters()
wp-includes/class-wp-hook.php:332
WP_Hook::do_action()
wp-includes/plugin.php:517
do_action()
wp-includes/general-template.php:82
get_footer()
wp-content/plugins/elementor/modules/page-templates/templates/header-footer.php:30
include()
wp-includes/template-loader.php:106
require_once()
wp-blog-header.php:19
require()
index.php:17
-
This reply was modified 1 year, 9 months ago by elementador.
@elementador a fix was added for this issue to the development version. Please install it (replace the version you’re currently using) using the guidance from this post: https://www.assetcleanup.com/docs/how-to-get-the-development-version-of-asset-cleanup/
Looking forward to your reply! It should fix the issue.
Fixed indeed, nice one and thanks!