Support » Plugin: WooCommerce » Fatal error after update 3.6.2.

  • Resolved begood88

    (@begood88)


    Good afternoon everyone
    Help with the problem. After upgrading the plugin to a version, it gives an error on all pages of the site 3.6.2.

    Fatal error: Class ‘ActionScheduler_AdminView_Deprecated’ not found in *************************/www/wp-content/plugins/woocommerce/includes/libraries/action-scheduler/classes/ActionScheduler_AdminView.php on line 7

Viewing 13 replies - 1 through 13 (of 13 total)
  • 
    ### WordPress Environment ###
    
    WC Version: 3.5.7
    Log Directory Writable: ✔
    WP Version: 5.1.1
    WP Multisite: –
    WP Memory Limit: 1 GB
    WP Debug Mode: –
    WP Cron: ✔
    Language: ru_RU
    External object cache: ✔
    
    ### Server Environment ###
    
    Server Info: Apache
    PHP Version: 7.2.17
    PHP Post Max Size: 50 MB
    PHP Time Limit: 30
    PHP Max Input Vars: 1000
    cURL Version: 7.53.1
    NSS/3.28.1
    
    SUHOSIN Installed: –
    MySQL Version: 5.7.16-10-log
    Max Upload Size: 50 MB
    Default Timezone is UTC: ✔
    fsockopen/cURL: ✔
    SoapClient: ✔
    DOMDocument: ✔
    GZip: ✔
    Multibyte String: ✔
    Remote Post: ✔
    Remote Get: ✔
    
    ### Database ###
    
    WC Database Version: 3.5.7
    WC Database Prefix: wp_
    
    ### Security ###
    
    Secure connection (HTTPS): ✔
    Hide errors from visitors: ✔
    
    ### Active Plugins (27) ###
    
    Code Snippets: от Shea Bunge – 2.13.3
    Cyr to Lat enhanced: от Sol
    Sergey Biryukov
    Nikolay Karev
    Dmitri Gogelia – 3.5
    
    Google XML Sitemaps: от Arne Brachhold – 4.1.0
    HTTP / HTTPS Remover: от CONDACORE – 2.1
    Instagram Feed: от Smash Balloon – 1.12
    Kadence Blocks Pro: от Kadence Themes – 1.1.7
    Kadence Blocks - Gutenberg Page Builder Toolkit: от Kadence Themes – 1.5.1
    Kadence reCAPTCHA: от Kadence Themes – 1.0.5 – Не тестировалось с активной версией WooCommerce
    Kadence Slider: от Kadence Themes – 2.3.0
    Kadence Woocommerce Extras: от Kadence Themes – 1.5.2
    Kadence WooCommerce Email Designer: от Kadence Themes – 1.1.8
    Max Mega Menu - Pro Addon: от megamenu.com – 1.7.1
    Max Mega Menu: от megamenu.com – 2.6
    Minimum Order Amount for Woocommerce: от Dario Curasì – 1.5.0
    Regenerate Thumbnails: от Alex Mills (Viper007Bond) – 3.1.0
    Saphali Woocommerce Russian: от Saphali – 1.8.5
    WooCommerce Simple LiqPay: от Alex Shandor – 1.7 – Не тестировалось с активной версией WooCommerce
    Thumbnail Cleaner: от Kolja Nolte – 1.4.2
    W3 Total Cache: от Frederick Townes – 0.9.7.3
    WooCommerce Blocks: от Automattic – 2.0.1
    Advanced Order Export For WooCommerce: от AlgolPlus – 2.1.1
    Product Feed PRO for WooCommerce: от AdTribes.io – 5.2.7
    Woo Variations table: от Alaa Rihan – 1.3.10 – Не тестировалось с активной версией WooCommerce
    WooCommerce - Store Exporter: от Visser Labs – 2.0.2 – Не тестировалось с активной версией WooCommerce
    WooCommerce: от Automattic – 3.5.7 – 3.6.2 доступно
    WP show more: от JAMOS Web Service – 1.0.7
    WP Sitemap Page: от Tony Archambeau – 1.6.1
    
    ### Settings ###
    
    API Enabled: –
    Force SSL: ✔
    Currency: UAH (грн.)
    Currency Position: right_space
    Thousand Separator: ,
    Decimal Separator: .
    Number of Decimals: 2
    Taxonomies: Product Types: external (external)
    grouped (grouped)
    simple (simple)
    variable (variable)
    
    Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog)
    exclude-from-catalog (exclude-from-catalog-2)
    exclude-from-search (exclude-from-search)
    featured (featured)
    outofstock (outofstock)
    outofstock (outofstock-2)
    rated-1 (rated-1)
    rated-2 (rated-2)
    rated-2 (rated-2-2)
    rated-3 (rated-3)
    rated-3 (rated-3-2)
    rated-4 (rated-4)
    rated-4 (rated-4-2)
    rated-5 (rated-5)
    
    ### WC Pages ###
    
    Ссылка магазина: #27 - /shop/
    Корзина: #28 - /cart/
    Оформление заказа: #29 - /checkout/
    Мой аккаунт: #30 - /my-account/
    Правила и условия: #515 - /dogovor-kupli-prodazhi/
    
    ### Theme ###
    
    Name: Virtue - Premium
    Version: 4.9.9
    Author URL: //www.kadencethemes.com/
    Child Theme: ❌ – Если вы хотите оформить WooCommerce родительской темой
    которую создал кто-то другой
    мы рекомендуем воспользоваться дочерней темой. См. "Как создать дочернюю тему"
    
    WooCommerce Support: ✔
    
    ### Templates ###
    
    Overrides: virtue_premium/woocommerce/archive-product.php
    virtue_premium/woocommerce/content-product.php
    virtue_premium/woocommerce/content-product_cat.php
    virtue_premium/woocommerce/content-single-product.php
    virtue_premium/woocommerce/loop/loop-end.php
    virtue_premium/woocommerce/loop/loop-start.php
    virtue_premium/woocommerce/loop/rating.php
    virtue_premium/woocommerce/loop/sale-flash.php
    virtue_premium/product-searchform.php
    virtue_premium/woocommerce/single-product/add-to-cart/external.php
    virtue_premium/woocommerce/single-product/add-to-cart/grouped.php
    virtue_premium/woocommerce/single-product/add-to-cart/simple.php
    virtue_premium/woocommerce/single-product/add-to-cart/variable.php
    virtue_premium/woocommerce/single-product/product-image.php
    virtue_premium/woocommerce/single-product/product-thumbnails.php
    virtue_premium/woocommerce/single-product/related.php
    virtue_premium/woocommerce/single-product/sale-flash.php
    virtue_premium/woocommerce/single-product/up-sells.php
    virtue_premium/woocommerce/single-product.php
    virtue_premium/woocommerce/taxonomy-product_cat.php
    virtue_premium/woocommerce/taxonomy-product_tag.php
    
    

    Hi There,

    Sounds like the update was not successful and it’s missing some files. Please try to reinstall the plugin and see if it fixes the issue.

    Thanks for the answer, unfortunately I tried many times, to update all the plugins in different order, it gives the same error after updating woocommerce

    Please double check /wp-content/plugins/woocommerce/includes/libraries/action-scheduler/deprecated/ActionScheduler_AdminView_Deprecated.php file exist and accessible.

    Try to narrow down the issue by switching to a different theme and deactivating other plugins.

    I guess this will have to investigate by accessing the site, you may check with an expert.

    thanks for the answer! Before updating this file “ActionScheduler_AdminView_Deprecated.php” is not in the folder, after it is installed. Files have access. I unfortunately do not know which way to look, roll back the backup to the previous version 3.5.7. and everything works well.
    I understand that experts will be able to do everything, but first I would like to know if this is a problem from the side of woocommerce and just wait for a new update, perhaps from the developer of the visual theme.

    Plugin Support AW

    (@slash1andy)

    Automattic Happiness Engineer

    Hey there!

    I would recommend completely reinstalling WooCommerce by using FTP, to be sure that you have all the files, since the error seems to be indicating a missing file.

    So you upload the extracted .zip file to your site via FTP to the wp-content/plugins folder **replacing** the old one.

    Hopefully that helps! Have a great one!

    Thank you all for the answers and help!
    I did everything as you said, everything works, thanks!

    WC()->cart->get_cart() function is not working in custom plugin after the upgrade woocommerce version 3.6.2. Anyone can help?

    Thanks

    I am getting that error. Call to a member function get_cart() on null

    Hello,

    I ran into the same issue.

    Working code when using woocommerce version 3.5.7.
    After updating woocommerce to version 3.6.2 (including database update). Note that other plugins were not updated.

    The debug log shows:
    PHP Fatal error: Uncaught Error: Call to a member function add_to_cart() on null

    The original call is:
    $item_key = WC()->cart->add_to_cart($product_id, $quantity, null, null, $cart_item_data);

    Looks like the update is not backwards compatible or introduced a bug.

    Thanks for your help/tips!

    I think the following topic explains the issue:

    wc-cart is null in custom rest api

    After updating woocommerce to 3.6.2, once added i can not remove a product from cart.Intially it’s showing rtemoved but again it’s coming back when refresh the page.I am not using any caching plugin aslo i tried deactivate all plugins as well changing the theme, but no result,
    When i am trying remove cart the following ajax is called:
    http://www.domainname.com/cart/?removed_item=1
    Immediately there is another ajax call which again bring the image back and not removing from the cart
    http://www.domainname.com/cart/?wc-ajax=get_refreshed_fragments
    Please help me.

    Hi,

    as per latest update 3.6.3 (removed entirely and copied extracted zip) still same error of WC()->cart is null in custom functions. None of the tips above helped. Even using global $woocommerce did not return cart. Tried WC()->frontend_includes() and still no access. Checked what is included and there is no access in that for actual WC().

    This is the fix that I’ve found in code for CoCart

    
    if ( version_compare( WC_VERSION, '3.6.0', '>=' ) && WC()->is_rest_api_request() == 'wc/' ) {
            require_once( WC_ABSPATH . 'includes/wc-cart-functions.php' );
            require_once( WC_ABSPATH . 'includes/wc-notice-functions.php' );
            if ( null === WC()->session ) {
                $session_class = apply_filters( 'woocommerce_session_handler', 'WC_Session_Handler' );
                // Prefix session class with global namespace if not already namespaced
                if ( false === strpos( $session_class, '\\' ) ) {
                    $session_class = '\\' . $session_class;
                }
                WC()->session = new $session_class();
                WC()->session->init();
            }
    
            if ( null === WC()->customer ) {
                if ( is_user_logged_in() ) {
                    WC()->customer = new WC_Customer( get_current_user_id() );
                } else {
                    WC()->customer = new WC_Customer( get_current_user_id(), true );
                }
            }
    
            if ( null === WC()->cart ) {
                WC()->cart = new WC_Cart();
            }
        }
    
Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Fatal error after update 3.6.2.’ is closed to new replies.