• Resolved Janoes4

    (@janoes4)


    When the plugin is fetching at the back end it just keeps on searching without ending. When I go to the front end it gives the following error: Fatal error: Uncaught Error:

    Call to undefined function is_cart() in /home/wilyogaa/public_html/wp-content/plugins/wp-asset-clean-up/templates/meta-box-loaded.php:78 Stack trace: #0 /home/wilyogaa/public_html/wp-content/plugins/wp-asset-clean-up/templates/settings-frontend.php(65): require_once() #1 /home/wilyogaa/public_html/wp-content/plugins/wp-asset-clean-up/classes/Main.php(1027): include(‘/home/wilyogaa/…’) #2 /home/wilyogaa/public_html/wp-content/plugins/wp-asset-clean-up/classes/Main.php(995): WpAssetCleanUp\Main->parseTemplate(‘settings-fronte…’, Array, true) #3 /home/wilyogaa/public_html/wp-includes/class-wp-hook.php(286): WpAssetCleanUp\Main->printScriptsStyles(”) #4 /home/wilyogaa/public_html/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array) #5 /home/wilyogaa/public_html/wp-includes/plugin.php(465): WP_Hook->do_action(Array) #6 /home/wilyogaa/public_html/wp-includes/general-template.php(2684): do_action(‘wp_footer’) #7 /home/wilyogaa/public_html/wp-content/themes/Avada/footer.php(115 in /home/wilyogaa/public_html/wp-content/plugins/wp-asset-clean-up/templates/meta-box-loaded.php on line 78

    Anyone who knows how to fix this?

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

    (@gabelivan)

    @janoes4 the plugin checks if the page is a WooCommerce one based on is_woocommerce() and is_cart(). Now, it looks like is_cart() is not defined while is_woocommerce() is, which is kinda odd because this never happened before and needs to be investigated, perhaps WooCommerce plugin got a recent update that changed something triggering this error.

    Anyway, I’ve updated tag 1.3.2.2 and you shouldn’t see the error anymore if you re-download the plugin. Please do so and let me know if it works now!

    • This reply was modified 6 years ago by Gabe Livan.
    Thread Starter Janoes4

    (@janoes4)

    Thanks, I’m gonna download it in a minute and let you know.

    The strange thing is that I don’t have woocommerce installed on this website

    Plugin Author Gabe Livan

    (@gabelivan)

    @janoes4 somehow, is_woocommerce() returned true, but I’ve updated the code to not rely on that anymore. It could be a 3rd party function that was named like that accidentally and other plugins (Asset CleanUp in this case) would not “know” this.

    Thread Starter Janoes4

    (@janoes4)

    It looks like it works. Thanks so much for fixing this so quickly!

    Thread Starter Janoes4

    (@janoes4)

    Off course. Just left you a 5 star review. Well deserved!

    Plugin Author Gabe Livan

    (@gabelivan)

    @janoes4 thanks, if you believe that new features should be added to the plugin, feel free to open a topic about it just like it has been done by other users ??

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Plugin doesn’t fetch in frond end or back end’ is closed to new replies.