• The problem is that every time I open a website in the Safari browser on an iPhone, and I click on WooCommerce products, it’s fine. However, when I try to go back, the page automatically refreshes and goes to the top. This means I have to scroll down every time I click on the products. This problem only occurs on iPhones using Safari or Chrome browsers. It works correctly on Android phones. Please help me resolve this issue.

    Here is the link to check the issue: https://zafarandsonssanitary.com/shop/

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hey there, @hassan024! Thanks for contacting us. I’m happy to help you.

    This problem only occurs on iPhones using Safari or Chrome browsers

    Can you please confirm if this is happening on Chrome on computers?

    I just checked your website on Chrome on my computer and was not able to replicate the issue there.

    The browser console suggests there’s an issue with the back/forward cache.

    Do you have any caching plugins on your site?

    I’d like to understand your site properly. Please share with us the necessary information below for us to investigate the issue further:

    System Status Report which you can find via WooCommerce > Status > Get system report > Copy for support.
    Fatal error logs (if any) under WooCommerce > Status > Logs. Then you can use the selector to search for Fatal Errors.
    You could copy and paste your reply here or paste it via https://gist.github.com/ and send the link here.

    Looking forward to your reply.

    Have a wonderful day!

    Thread Starter hassan024

    (@hassan024)

    No, it's not happening on Chrome on computers; it's only happening when opening the website on an iPhone. Currently, I'm using the WP-Optimize plugin for caching.



    System Status Report

    WordPress Environment<br><br>WordPress address (URL): https://zafarandsonssanitary.com<br>Site address (URL): https://zafarandsonssanitary.com<br>WC Version: 8.9.3<br>REST API Version: ? 8.9.3<br>Action Scheduler Version: ? 3.7.4<br>Log Directory Writable: ?<br>WP Version: 6.5.4<br>WP Multisite: –<br>WP Memory Limit: 2 GB<br>WP Debug Mode: –<br>WP Cron: ?<br>Language: en_US<br>External object cache: – Server Environment<br><br>Server Info: LiteSpeed<br>PHP Version: 8.0.30<br>PHP Post Max Size: 2 GB<br>PHP Time Limit: 120<br>PHP Max Input Vars: 5000<br>cURL Version: 7.87.0<br>OpenSSL/1.1.1w<br><br>SUHOSIN Installed: –<br>MySQL Version: 10.11.7-MariaDB-cll-lve<br>Max Upload Size: 2 GB<br>Default Timezone is UTC: ?<br>fsockopen/cURL: ?<br>SoapClient: ?<br>DOMDocument: ?<br>GZip: ?<br>Multibyte String: ?<br>Remote Post: ?<br>Remote Get: ? Database<br><br>WC Database Version: 8.8.3<br>WC Database Prefix: wp_<br>Total Database Size: 93.73MB<br>Database Data Size: 84.93MB<br>Database Index Size: 8.80MB<br>wp_woocommerce_sessions: Data: 0.05MB + Index: 0.02MB + Engine InnoDB<br>wp_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>wp_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB<br>wp_woocommerce_order_items: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_woocommerce_order_itemmeta: Data: 0.06MB + Index: 0.06MB + Engine InnoDB<br>wp_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB<br>wp_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>wp_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.05MB + Engine InnoDB<br>wp_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>wp_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_actionscheduler_actions: Data: 0.38MB + Index: 0.44MB + Engine InnoDB<br>wp_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_actionscheduler_logs: Data: 0.28MB + Index: 0.22MB + Engine InnoDB<br>wp_aioseo_cache: Data: 0.20MB + Index: 0.03MB + Engine InnoDB<br>wp_aioseo_notifications: Data: 0.23MB + Index: 0.06MB + Engine InnoDB<br>wp_aioseo_posts: Data: 3.52MB + Index: 0.08MB + Engine InnoDB<br>wp_bv_airlift_config: Data: 6.52MB + Index: 0.00MB + Engine InnoDB<br>wp_bv_airlift_stats: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_bv_dynamic_sync: Data: 0.05MB + Index: 0.00MB + Engine InnoDB<br>wp_commentmeta: Data: 0.11MB + Index: 0.16MB + Engine InnoDB<br>wp_comments: Data: 0.34MB + Index: 0.30MB + Engine InnoDB<br>wp_depicter_documents: Data: 1.50MB + Index: 0.03MB + Engine InnoDB<br>wp_depicter_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_depicter_options: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_dgwt_wcas_stats: Data: 0.08MB + Index: 0.00MB + Engine InnoDB<br>wp_e_events: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_e_submissions: Data: 0.02MB + Index: 0.27MB + Engine InnoDB<br>wp_e_submissions_actions_log: Data: 0.02MB + Index: 0.11MB + Engine InnoDB<br>wp_e_submissions_values: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>wp_frmt_form_entry: Data: 0.02MB + Index: 0.05MB + Engine InnoDB<br>wp_frmt_form_entry_meta: Data: 0.02MB + Index: 0.05MB + Engine InnoDB<br>wp_frmt_form_reports: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_frmt_form_views: Data: 0.02MB + Index: 0.06MB + Engine InnoDB<br>wp_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_litespeed_url: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>wp_litespeed_url_file: Data: 0.02MB + Index: 0.08MB + Engine InnoDB<br>wp_options: Data: 3.27MB + Index: 0.34MB + Engine InnoDB<br>wp_postmeta: Data: 35.42MB + Index: 3.81MB + Engine InnoDB<br>wp_posts: Data: 30.47MB + Index: 0.70MB + Engine InnoDB<br>wp_termmeta: Data: 0.05MB + Index: 0.03MB + Engine InnoDB<br>wp_terms: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>wp_term_relationships: Data: 0.09MB + Index: 0.06MB + Engine InnoDB<br>wp_term_taxonomy: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>wp_tinvwl_analytics: Data: 0.14MB + Index: 0.11MB + Engine InnoDB<br>wp_tinvwl_items: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_tinvwl_lists: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_tm_taskmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>wp_tm_tasks: Data: 0.03MB + Index: 0.02MB + Engine InnoDB<br>wp_usermeta: Data: 0.22MB + Index: 0.03MB + Engine InnoDB<br>wp_users: Data: 0.02MB + Index: 0.05MB + Engine InnoDB<br>wp_wcpdf_invoice_number: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_wcpdf_packing_slip_number: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_wc_admin_notes: Data: 0.09MB + Index: 0.00MB + Engine InnoDB<br>wp_wc_admin_note_actions: Data: 0.06MB + Index: 0.02MB + Engine InnoDB<br>wp_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_wc_customer_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>wp_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>wp_wc_orders: Data: 0.02MB + Index: 0.11MB + Engine InnoDB<br>wp_wc_orders_meta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>wp_wc_order_addresses: Data: 0.02MB + Index: 0.06MB + Engine InnoDB<br>wp_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>wp_wc_order_operational_data: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>wp_wc_order_product_lookup: Data: 0.02MB + Index: 0.06MB + Engine InnoDB<br>wp_wc_order_stats: Data: 0.02MB + Index: 0.05MB + Engine InnoDB<br>wp_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>wp_wc_product_attributes_lookup: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_wc_product_download_directories: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_wc_product_meta_lookup: Data: 0.08MB + Index: 0.13MB + Engine InnoDB<br>wp_wc_rate_limits: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_wpforms_tasks_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_yoast_indexable: Data: 0.47MB + Index: 0.20MB + Engine InnoDB<br>wp_yoast_indexable_hierarchy: Data: 0.05MB + Index: 0.05MB + Engine InnoDB<br>wp_yoast_migrations: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_yoast_primary_term: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>wp_yoast_seo_links: Data: 0.05MB + Index: 0.03MB + Engine InnoDB Post Type Counts<br><br>attachment: 2159<br>custom_css: 1<br>elementor_library: 5<br>forminator_forms: 1<br>nav_menu_item: 11<br>page: 13<br>post: 2<br>product: 429<br>product_variation: 237<br>revision: 747<br>shop_order: 42<br>wa-order-numbers: 1<br>wafs: 2<br>whatsapp-accounts: 1<br>wp_global_styles: 1<br>wpcf7_contact_form: 2 Security<br><br>Secure connection (HTTPS): ?<br>Hide errors from visitors: ? Active Plugins (19)<br><br>FiboSearch - AJAX Search for WooCommerce: by FiboSearch Team – 1.28.0<br>All-in-One WP Migration: by ServMask – 7.83<br>Classic Widgets: by WordPress Contributors – 0.3<br>Contact Form 7: by Takayuki Miyoshi – 5.9.5<br>Depicter: by Depicter Slider and Popup by Averta – 3.0.2<br>Elementor: by Elementor.com – 3.21.8<br>Facebook for WooCommerce: by Facebook – 3.2.3<br>OneClick Chat to Order: by Walter Pinem – 1.0.6<br>Order Minimum/Maximum Amount for WooCommerce: by WPFactory – 4.4.4<br>TI WooCommerce Wishlist: by TemplateInvaders – 2.8.2<br>Variation Price Display Range for WooCommerce: by WPXtension – 1.3.13<br>Checkout Field Editor for WooCommerce: by ThemeHigh – 2.0.2<br>Premmerce Permalink Manager for WooCommerce: by Premmerce – 2.3.11<br>Variation Swatches for WooCommerce: by Emran Ahmed – 2.1.0<br>WooCommerce Advanced Free Shipping: by Jeroen Sormani – 1.1.7<br>PDF Invoices & Packing Slips for WooCommerce: by WP Overnight – 3.8.3<br>WooCommerce: by Automattic – 8.9.3<br>Yoast SEO: by Team Yoast – 22.8<br>WP-Optimize - Clean, Compress, Cache: by David Anderson<br>Ruhani Rabin<br>Team Updraft – 3.3.2 Inactive Plugins (2)<br><br>LiteSpeed Cache: by LiteSpeed Technologies – 6.2.0.1<br>Under Construction: by WebFactory Ltd – 4.00 Dropin Plugins ()<br><br>advanced-cache.php: advanced-cache.php Settings<br><br>API Enabled: –<br>Force SSL: –<br>Currency: PKR (?)<br>Currency Position: left_space<br>Thousand Separator: ,<br>Decimal Separator: .<br>Number of Decimals: 0<br>Taxonomies: Product Types: external (external)<br>grouped (grouped)<br>simple (simple)<br>variable (variable)<br><br>Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog)<br>exclude-from-search (exclude-from-search)<br>featured (featured)<br>outofstock (outofstock)<br>rated-1 (rated-1)<br>rated-2 (rated-2)<br>rated-3 (rated-3)<br>rated-4 (rated-4)<br>rated-5 (rated-5)<br><br>Connected to WooCommerce.com: –<br>Enforce Approved Product Download Directories: ?<br>HPOS feature enabled: –<br>Order datastore: WC_Order_Data_Store_CPT<br>HPOS data sync enabled: – Logging<br><br>Enabled: ?<br>Handler: Automattic\WooCommerce\Internal\Admin\Logging\LogHandlerFileV2<br>Retention period: 30 days<br>Level threshold: –<br>Log directory size: 62 KB WC Pages<br><br>Shop base: #11 - /shop/<br>Cart: #12 - /cart/<br>Checkout: #13 - /checkout-2/<br>My account: #14 - /my-account/<br>Terms and conditions: ? Page not set Theme<br><br>Name: Woostify<br>Version: 2.3.2<br>Author URL: https://woostify.com/about<br>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<br>WooCommerce Support: ? Templates<br><br>Overrides: woostify/woocommerce/single-product/stock.php Admin<br><br>Enabled Features: activity-panels<br>analytics<br>product-block-editor<br>coupons<br>core-profiler<br>customize-store<br>customer-effort-score-tracks<br>import-products-task<br>experimental-fashion-sample-products<br>shipping-smart-defaults<br>shipping-setting-tour<br>homescreen<br>marketing<br>mobile-app-banner<br>navigation<br>onboarding<br>onboarding-tasks<br>product-variation-management<br>product-virtual-downloadable<br>product-external-affiliate<br>product-grouped<br>product-linked<br>product-pre-publish-modal<br>product-custom-fields<br>remote-inbox-notifications<br>remote-free-extensions<br>payment-gateway-suggestions<br>shipping-label-banner<br>subscriptions<br>store-alerts<br>transient-notices<br>woo-mobile-welcome<br>wc-pay-promotion<br>wc-pay-welcome-page<br><br>Disabled Features: minified-js<br>new-product-management-experience<br>settings<br>async-product-editor-category-field<br>launch-your-store<br><br>Daily Cron: ? Next scheduled: 2024-06-13 16:07:16 +05:00<br>Options: ?<br>Notes: 147<br>Onboarding: completed TI WooCommerce Wishlist Templates<br><br>Overrides: – Action Scheduler<br><br>Complete: 1,007<br>Oldest: 2024-05-12 22:27:51 +0500<br>Newest: 2024-06-12 22:21:29 +0500<br><br>Failed: 73<br>Oldest: 2023-02-19 20:18:56 +0500<br>Newest: 2024-04-02 18:00:11 +0500<br><br>Pending: 3<br>Oldest: 2024-06-13 04:39:21 +0500<br>Newest: 2024-06-13 18:19:21 +0500 Status report information<br><br>Generated at: 2024-06-12 22:21:48 +05:00<br>

    Fatal Error Logs

    2024-06-10T11:29:28+00:00 Critical Uncaught Error: Call to a member function get_cart_subtotal() on null in /home/u132364106/domains/zafarandsonssanitary.com/public_html/wp-content/themes/woostify/inc/woostify-template-functions.php:2120
    Additional context
    {
    "error": {
    "type": 1,
    "file": "\/home\/u132364106\/domains\/zafarandsonssanitary.com\/public_html\/wp-content\/themes\/woostify\/inc\/woostify-template-functions.php",
    "line": 2120
    },
    "backtrace": [
    "",
    "#0 \/home\/u132364106\/domains\/zafarandsonssanitary.com\/public_html\/wp-includes\/class-wp-hook.php(324): woostify_header_action()",
    "#1 \/home\/u132364106\/domains\/zafarandsonssanitary.com\/public_html\/wp-includes\/class-wp-hook.php(348): WP_Hook->apply_filters()",
    "#2 \/home\/u132364106\/domains\/zafarandsonssanitary.com\/public_html\/wp-includes\/plugin.php(517): WP_Hook->do_action()",
    "#3 \/home\/u132364106\/domains\/zafarandsonssanitary.com\/public_html\/wp-content\/themes\/woostify\/inc\/woostify-template-functions.php(2375): do_action()",
    "#4 \/home\/u132364106\/domains\/zafarandsonssanitary.com\/public_html\/wp-includes\/class-wp-hook.php(324): woostify_site_header()",
    "#5 \/home\/u132364106\/domains\/zafarandsonssanitary.com\/public_html\/wp-includes\/class-wp-hook.php(348): WP_Hook->apply_filters()",
    "#6 \/home\/u132364106\/domains\/zafarandsonssanitary.com\/public_html\/wp-includes\/plugin.php(517): WP_Hook->do_action()",
    "#7 \/home\/u132364106\/domains\/zafarandsonssanitary.com\/public_html\/wp-content\/themes\/woostify\/template-parts\/header.php(8): do_action()",
    "#8 \/home\/u132364106\/domains\/zafarandsonssanitary.com\/public_html\/wp-includes\/template.php(812): require('\/home\/u13236410…')",
    "#9 \/home\/u132364106\/domains\/zafarandsonssanitary.com\/public_html\/wp-includes\/template.php(745): load_template()",
    "#10 \/home\/u132364106\/domains\/zafarandsonssanitary.com\/public_html\/wp-includes\/general-template.php(206): locate_template()",
    "#11 \/home\/u132364106\/domains\/zafarandsonssanitary.com\/public_html\/wp-content\/themes\/woostify\/inc\/woostify-template-builder.php(18): get_template_part()",
    "#12 \/home\/u132364106\/domains\/zafarandsonssanitary.com\/public_html\/wp-includes\/class-wp-hook.php(324): woostify_template_header()",
    "#13 \/home\/u132364106\/domains\/zafarandsonssanitary.com\/public_html\/wp-includes\/class-wp-hook.php(348): WP_Hook->apply_filters()",
    "#14 \/home\/u132364106\/domains\/zafarandsonssanitary.com\/public_html\/wp-includes\/plugin.php(517): WP_Hook->do_action()",
    "#15 \/home\/u132364106\/domains\/zafarandsonssanitary.com\/public_html\/wp-content\/themes\/woostify\/header.php(18): do_action()",
    "#16 \/home\/u132364106\/domains\/zafarandsonssanitary.com\/public_html\/wp-includes\/template.php(810): require_once('\/home\/u13236410…')",
    "#17 \/home\/u132364106\/domains\/zafarandsonssanitary.com\/public_html\/wp-includes\/template.php(745): load_template()",
    "#18 \/home\/u132364106\/domains\/zafarandsonssanitary.com\/public_html\/wp-includes\/general-template.php(48): locate_template()",
    "#19 \/home\/u132364106\/domains\/zafarandsonssanitary.com\/public_html\/wp-content\/plugins\/woocommerce\/templates\/single-product.php(22): get_header()",
    "#20 \/home\/u132364106\/domains\/zafarandsonssanitary.com\/public_html\/wp-includes\/template-loader.php(106): include('\/home\/u13236410…')",
    "#21 \/home\/u132364106\/domains\/zafarandsonssanitary.com\/public_html\/wp-blog-header.php(19): require_once('\/home\/u13236410…')",
    "#22 \/home\/u132364106\/domains\/zafarandsonssanitary.com\/public_html\/index.php(17): require('\/home\/u13236410…')",
    "#23 {main}",
    "thrown"
    ]
    }
    Plugin Support ckadenge (woo-hc)

    (@ckadenge)

    Hi there @hassan024,

    Thanks for sharing the system status report and the error messages.

    Looking at the error message, it suggests that there’s an issue with the Woostify theme you’re using on your WooCommerce site. Specifically, it’s trying to call the get_cart_subtotal() function on something that isn’t defined or is null.

    Could you try switching to a default theme like Storefront or Twenty Twenty-Four and see if the issue experienced on mobile persists?

    Please be sure to make a backup of your site before proceeding.

    Let us know how this goes.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.