• Resolved Peter Le

    (@vuhieple)


    Hi,

    My Wp log show this fatal error, as below:

    [15-Dec-2020 09:37:44 UTC] PHP Notice:  Undefined index: variation in /var/www/html/wp-content/plugins/woocommerce-ajax-add-to-cart-for-variable-products/woocommerce-ajax-add-to-cart-variable-products.php on line 129
    [15-Dec-2020 09:37:44 UTC] PHP Warning:  Invalid argument supplied for foreach() in /var/www/html/wp-content/plugins/woocommerce-ajax-add-to-cart-for-variable-products/woocommerce-ajax-add-to-cart-variable-products.php on line 137
    
    [15-Dec-2020 09:37:44 UTC] PHP Fatal error:  Uncaught Error: Using $this when not in object context in /var/www/html/wp-content/plugins/woocommerce-ajax-add-to-cart-for-variable-products/woocommerce-ajax-add-to-cart-variable-products.php:153
    Stack trace:
    #0 /var/www/html/wp-includes/class-wp-hook.php(287): woocommerce_add_to_cart_variable_rc_callback('')
    #1 /var/www/html/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters('', Array)
    #2 /var/www/html/wp-includes/plugin.php(484): WP_Hook->do_action(Array)
    #3 /var/www/html/wp-admin/admin-ajax.php(184): do_action('wp_ajax_woocomm...')
    #4 {main}
      thrown in /var/www/html/wp-content/plugins/woocommerce-ajax-add-to-cart-for-variable-products/woocommerce-ajax-add-to-cart-variable-products.php on line 153

    Wordpress 5.6 – Woocommerce Version 4.8.0

    Thanks,

Viewing 4 replies - 1 through 4 (of 4 total)
  • I also have this error in WooCommerce / Status / Logs.

    WordPress 5.5.3, Woocommerce Version 4.7.1

    2020-12-19T13:36:05+00:00 CRITICAL Uncaught Error: Using $this when not in object context in /home/site/public_html/wp-content/plugins/woocommerce-ajax-add-to-cart-for-variable-products/woocommerce-ajax-add-to-cart-variable-products.php:153
    Stack trace:
    #0 /home/site/public_html/wp-includes/class-wp-hook.php(287): woocommerce_add_to_cart_variable_rc_callback('')
    #1 /home/site/public_html/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters('', Array)
    #2 /home/site/public_html/wp-includes/plugin.php(478): WP_Hook->do_action(Array)
    #3 /home/site/public_html/wp-admin/admin-ajax.php(191): do_action('wp_ajax_nopriv_...')
    #4 {main}
      thrown in /home/site/public_html/wp-content/plugins/woocommerce-ajax-add-to-cart-for-variable-products/woocommerce-ajax-add-to-cart-variable-products.php on line 153
    Thread Starter Peter Le

    (@vuhieple)

    With Woo 4.8 and WordPress 5.6 on my site, the fatal error cause this plugin to stop working and make add to cart ajax call return Error 500.

    Plugin Author Rishi Mehta

    (@rcreators)

    Hello,

    Thanks for the report. I will look into it and get back to you.

    Regards,
    Rishi Mehta

    Plugin Author Rishi Mehta

    (@rcreators)

    Hello @vuhieple & @codeguru

    Both errors are solved in latest version 2.2. Please update plugin and it will work.

    Please add rating and review to plugin as well.

    Regards,
    Rishi Mehta

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Fatal Error – Newest Version with WP.5.6’ is closed to new replies.