• Resolved elementador

    (@elementador)


    PHP 7 is outdated and when I update to 8+ versions I get this error in my debug view: Deprecated: Function ElementorPro\Modules\Forms\Module::add_form_action is deprecated since version 3.5.0!

    I use Elementor Pro. Have deactivated all plugins and one by one tested with activation. Many have this error to be honest but also Asset Cleanup. What to do?

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Gabe Livan

    (@gabelivan)

    >>> 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).

    Thread Starter elementador

    (@elementador)

    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:

    1. json_decode()
      wp-content/plugins/wp-asset-clean-up/classes/Main.php:791
    2. WpAssetCleanUp\Main::filterStyles()
      wp-content/plugins/wp-asset-clean-up/classes/Main.php:734
    3. WpAssetCleanUp\Main::onPrintFooterScriptsStyles()
      wp-includes/class-wp-hook.php:308
    4. WP_Hook::apply_filters()
      wp-includes/class-wp-hook.php:332
    5. WP_Hook::do_action()
      wp-includes/plugin.php:517
    6. do_action()
      wp-includes/script-loader.php:2163
    7. wp_print_footer_scripts()
      wp-includes/class-wp-hook.php:308
    8. WP_Hook::apply_filters()
      wp-includes/class-wp-hook.php:332
    9. WP_Hook::do_action()
      wp-includes/plugin.php:517
    10. do_action()
      wp-includes/general-template.php:3059
    11. wp_footer()
      wp-includes/theme-compat/footer.php:38
    12. require_once()
      wp-includes/template.php:783
    13. load_template()
      wp-includes/template.php:718
    14. locate_template()
      wp-content/plugins/elementor-pro/modules/theme-builder/classes/theme-support.php:127
    15. ElementorPro\M\T\C\Theme_Support::get_footer()
      wp-includes/class-wp-hook.php:310
    16. WP_Hook::apply_filters()
      wp-includes/class-wp-hook.php:332
    17. WP_Hook::do_action()
      wp-includes/plugin.php:517
    18. do_action()
      wp-includes/general-template.php:82
    19. get_footer()
      wp-content/plugins/elementor/modules/page-templates/templates/header-footer.php:30
    20. include()
      wp-includes/template-loader.php:106
    21. require_once()
      wp-blog-header.php:19
    22. require()
      index.php:17


    • This reply was modified 1 year, 9 months ago by elementador.
    Plugin Author Gabe Livan

    (@gabelivan)

    @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.

    Thread Starter elementador

    (@elementador)

    Fixed indeed, nice one and thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Deprecated: PHP 8+ and Elementor’ is closed to new replies.