Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi there

    Exactly the same problem here. As soon as the Plugin was updated to version 5 (via wordpress autoupdate) we’ve received the following error:

    Fatal error: Uncaught Error: Call to a member function switch_to_locale() on null in /home/httpd/vhosts/**************.ch/**************/wp-includes/l10n.php:1679 Stack trace: 
    #0 /home/httpd/vhosts/**************/**************/wp-admin/includes/misc.php(132): switch_to_locale('de_DE') 
    #1 /home/httpd/vhosts/**************/**************/wp-content/plugins/shortpixel-image-optimiser/class/Tools.php(285): insert_with_markers('/home/httpd/vho...', 'ShortPixelWebp', Array) 
    #2 /home/httpd/vhosts/**************/**************/wp-content/plugins/shortpixel-image-optimiser/class/Helper/InstallHelper.php(44): ShortPixelTools::alterHtaccess(false, false) 
    #3 /home/httpd/vhosts/**************/**************/wp-content/plugins/shortpixel-image-optimiser/class/Helper/InstallHelper.php(18): ShortPixel\Helper\InstallHelper::deactivatePlugin() 
    #4 /home/httpd/vhosts/**************/**************/wp-content/plugins/shortpixel-image-optimiser/shortpixel-plugin.php(683): ShortPixe in /home/httpd/vhosts/**************/**************/wp-includes/l10n.php on line 1679

    Thanks for looking into this!

    Thread Starter jnieder

    (@jnieder)

    Hi @rainfallnixfig, thanks for your feedback!
    I’ve tried that and I can also recreate the same behaviour, even if I try it with a fresh installation of WooCommerce and Storefront.

    Here’s a Screenshot of the shipping settings:
    https://snipboard.io/vGjmBf.jpg
    https://snipboard.io/j0ab7f.jpg
    https://snipboard.io/yXo9zU.jpg

    And those are the steps to reproduce the issue:

    1. Set up a shop running on Woocommerce 5.2.3
    2. Set up the shipping options and shipping Zones as seen in the Screenshot above
    3. Create a user, that has a billing and a shipping address, but both whithout setting a country/region
    4. Login as the newly created customer and add a product to the cart.
    5. Go to the cart Page. There you can see that the default shipping zone is selected
    6. Update to Woocommerce 5.3.1 or higher
    7. Repeat steps 3. – 5.
    8. this time, there is no shipping zone set on the cart page.

    Many Thanks in advance for your help!

    An here’s the Status Report of the above woocommerce setup:

    
    ### WordPress Environment ###
    
    WordPress address (URL): https://woocommerce.diktum.website
    Site address (URL): https://woocommerce.diktum.website
    WC Version: 5.3.1
    REST API Version: ? 5.3.1
    WC Blocks Version: ? 4.9.1
    Action Scheduler Version: ? 3.1.6
    WC Admin Version: ? 2.2.6
    Log Directory Writable: ?
    WP Version: 5.8
    WP Multisite: –
    WP Memory Limit: 256 MB
    WP Debug Mode: –
    WP Cron: ?
    Language: en_US
    External object cache: –
    
    ### Server Environment ###
    
    Server Info: Apache
    PHP Version: 7.4.21
    PHP Post Max Size: 256 MB
    PHP Time Limit: 60
    PHP Max Input Vars: 200000
    cURL Version: 7.76.1
    NSS/3.53.1
    
    SUHOSIN Installed: –
    MySQL Version: 5.5.5-10.3.28-MariaDB
    Max Upload Size: 256 MB
    Default Timezone is UTC: ?
    fsockopen/cURL: ?
    SoapClient: ?
    DOMDocument: ?
    GZip: ?
    Multibyte String: ?
    Remote Post: ?
    Remote Get: ?
    
    ### Database ###
    
    WC Database Version: 5.3.1
    WC Database Prefix: wp_
    Total Database Size: 4.76MB
    Database Data Size: 3.35MB
    Database Index Size: 1.41MB
    wp_woocommerce_sessions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wp_woocommerce_order_items: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_woocommerce_order_itemmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wp_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_actionscheduler_actions: Data: 0.02MB + Index: 0.11MB + Engine InnoDB
    wp_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_actionscheduler_logs: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_comments: Data: 0.02MB + Index: 0.09MB + Engine InnoDB
    wp_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_options: Data: 2.48MB + Index: 0.06MB + Engine InnoDB
    wp_postmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_posts: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wp_termmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_terms: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_term_relationships: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_term_taxonomy: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_usermeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_users: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_wc_admin_notes: Data: 0.05MB + Index: 0.00MB + Engine InnoDB
    wp_wc_admin_note_actions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wc_customer_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_wc_order_product_lookup: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wp_wc_order_stats: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_wc_product_meta_lookup: Data: 0.02MB + Index: 0.09MB + Engine InnoDB
    wp_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    
    ### Post Type Counts ###
    
    attachment: 2
    page: 6
    post: 2
    product: 1
    
    ### Security ###
    
    Secure connection (HTTPS): ?
    Hide errors from visitors: ?
    
    ### Active Plugins (1) ###
    
    WooCommerce: by Automattic – 5.3.1 (update to version 5.5.2 is available)
    
    ### Inactive Plugins (2) ###
    
    Akismet Anti-Spam: by Automattic – 4.1.10
    Hello Dolly: by Matt Mullenweg – 1.7.2
    
    ### Settings ###
    
    API Enabled: –
    Force SSL: –
    Currency: CHF (CHF)
    Currency Position: left_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-search (exclude-from-search)
    featured (featured)
    outofstock (outofstock)
    rated-1 (rated-1)
    rated-2 (rated-2)
    rated-3 (rated-3)
    rated-4 (rated-4)
    rated-5 (rated-5)
    
    Connected to WooCommerce.com: –
    
    ### WC Pages ###
    
    Shop base: #7 - /shop/
    Cart: #8 - /warenkorb/
    Checkout: #9 - /kasse/
    My account: #10 - /mein-konto/
    Terms and conditions: ? Page not set
    
    ### Theme ###
    
    Name: Storefront
    Version: 3.7.0
    Author URL: https://woocommerce.com/
    Child Theme: ? – If you are modifying WooCommerce on a parent theme that you did not build personally we recommend using a child theme. See: How to create a child theme
    WooCommerce Support: ?
    
    ### Templates ###
    
    Overrides: –
    
    ### Action Scheduler ###
    
    Complete: 1
    Oldest: 2021-08-09 12:12:13 +0200
    Newest: 2021-08-09 12:12:13 +0200
    
    ### Status report information ###
    
    Generated at: 2021-08-10 08:46:40 +02:00
    
Viewing 2 replies - 1 through 2 (of 2 total)