• Resolved Purnendu

    (@impurnendu)


    Getting error-

    Notice: Function get_cart was called incorrectly. Get basket should not be called before the wp_loaded action. Backtrace: require('wp-blog-header.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), do_action('init'), WP_Hook->do_action, WP_Hook->apply_filters, digits_login, do_action('login_head'), WP_Hook->do_action, WP_Hook->apply_filters, wp_resource_hints, apply_filters('wp_resource_hints'), WP_Hook->apply_filters, Automattic\WooCommerce\Blocks\AssetsController->add_resource_hints, WC_Cart->get_cart_contents_count, WC_Cart->get_cart, WC_Cart_Session->get_cart_from_session, do_action('woocommerce_cart_loaded_from_session'), WP_Hook->do_action, WP_Hook->apply_filters, WC_Cart_Session->set_session, WC_Cart_Session->get_cart_for_session, WC_Cart->get_cart, wc_doing_it_wrong Please see Debugging in WordPress for more information.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi @impurnendu

    Please be informed that this support forum is for questions and issues specifically for the WooCommerce core features.

    Do you remember making any changes before the issue started such as updating or installing plugin(s)? Please let us have some more details about the problem.

    In order for us to get a better idea of your setup, could you please share a copy of your site’s System Status? You can find it via WooCommerce > Status. Select “Get system report” and then “Copy for support”. Once you’ve done that, paste it here in your response.

    Thread Starter Purnendu

    (@impurnendu)

    
    ### WordPress Environment ###
    
    WordPress address (URL): https://******
    Site address (URL): https://******
    WC Version: 6.9.4
    REST API Version: ? 6.9.4
    WC Blocks Version: ? 8.3.3
    Action Scheduler Version: ? 3.5.2
    Log Directory Writable: ?
    WP Version: 6.0.2
    WP Multisite: –
    WP Memory Limit: 1 GB
    WP Debug Mode: ?
    WP Cron: –
    Language: en_GB
    External object cache: –
    
    ### Server Environment ###
    
    Server Info: LiteSpeed
    PHP Version: 8.0.23
    PHP Post Max Size: 512 MB
    PHP Time Limit: 3000
    PHP Max Input Vars: 10000
    cURL Version: 7.71.0
    OpenSSL/1.1.1p
    
    SUHOSIN Installed: –
    MySQL Version: 8.0.30
    Max Upload Size: 32 MB
    Default Timezone is UTC: ?
    fsockopen/cURL: ?
    SoapClient: ?
    DOMDocument: ?
    GZip: ?
    Multibyte String: ?
    Remote Post: ?
    Remote Get: ?
    
    ### Database ###
    
    WC Database Version: 6.9.4
    WC Database Prefix: edk_
    Total Database Size: 46.70MB
    Database Data Size: 36.34MB
    Database Index Size: 10.36MB
    edk_woocommerce_sessions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    edk_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    edk_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    edk_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    edk_woocommerce_order_items: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    edk_woocommerce_order_itemmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    edk_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    edk_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    edk_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    edk_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    edk_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    edk_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    edk_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    edk_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    edk_actionscheduler_actions: Data: 2.03MB + Index: 1.30MB + Engine InnoDB
    edk_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    edk_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    edk_actionscheduler_logs: Data: 1.27MB + Index: 0.45MB + Engine InnoDB
    edk_blc_filters: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    edk_blc_instances: Data: 0.36MB + Index: 0.16MB + Engine InnoDB
    edk_blc_links: Data: 4.52MB + Index: 0.38MB + Engine InnoDB
    edk_blc_synch: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    edk_bv_activities_store: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    edk_bv_fw_requests: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    edk_bv_ip_store: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    edk_bv_lp_requests: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    edk_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    edk_comments: Data: 0.02MB + Index: 0.09MB + Engine InnoDB
    edk_digits_blocked_ip: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    edk_digits_mobile_otp: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    edk_digits_requests_log: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    edk_e_events: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    edk_e_submissions: Data: 0.02MB + Index: 0.27MB + Engine InnoDB
    edk_e_submissions_actions_log: Data: 0.02MB + Index: 0.11MB + Engine InnoDB
    edk_e_submissions_values: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    edk_gf_draft_submissions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    edk_gf_entry: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    edk_gf_entry_meta: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    edk_gf_entry_notes: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    edk_gf_form: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    edk_gf_form_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    edk_gf_form_revisions: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    edk_gf_form_view: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    edk_jet_post_types: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    edk_jet_taxonomies: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    edk_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    edk_login_redirects: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    edk_mylisting_events: Data: 0.02MB + Index: 0.08MB + Engine InnoDB
    edk_mylisting_locations: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    edk_mylisting_relations: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    edk_mylisting_visits: Data: 0.02MB + Index: 0.08MB + Engine InnoDB
    edk_mylisting_workhours: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    edk_options: Data: 3.50MB + Index: 0.25MB + Engine InnoDB
    edk_pn_notification_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    edk_pn_user_notifications: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    edk_postmeta: Data: 6.52MB + Index: 4.03MB + Engine InnoDB
    edk_posts: Data: 3.52MB + Index: 0.27MB + Engine InnoDB
    edk_queue_failures: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    edk_queue_jobs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    edk_rank_math_404_logs: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    edk_rank_math_analytics_adsense: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    edk_rank_math_analytics_ga: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    edk_rank_math_analytics_gsc: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    edk_rank_math_analytics_inspections: Data: 0.47MB + Index: 0.14MB + Engine InnoDB
    edk_rank_math_analytics_keyword_manager: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    edk_rank_math_analytics_objects: Data: 0.11MB + Index: 0.05MB + Engine InnoDB
    edk_rank_math_internal_links: Data: 0.22MB + Index: 0.08MB + Engine InnoDB
    edk_rank_math_internal_meta: Data: 0.05MB + Index: 0.00MB + Engine InnoDB
    edk_rank_math_redirections: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    edk_rank_math_redirections_cache: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    edk_signups: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    edk_term_relationships: Data: 0.06MB + Index: 0.02MB + Engine InnoDB
    edk_term_taxonomy: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    edk_termmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    edk_terms: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    edk_upn_notifications: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    edk_upn_user_devices: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    edk_usermeta: Data: 0.17MB + Index: 0.06MB + Engine InnoDB
    edk_users: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    edk_wc_admin_note_actions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    edk_wc_admin_notes: Data: 0.05MB + Index: 0.00MB + Engine InnoDB
    edk_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    edk_wc_customer_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    edk_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    edk_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    edk_wc_order_product_lookup: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    edk_wc_order_stats: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    edk_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    edk_wc_product_attributes_lookup: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    edk_wc_product_download_directories: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    edk_wc_product_meta_lookup: Data: 0.02MB + Index: 0.09MB + Engine InnoDB
    edk_wc_rate_limits: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    edk_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    edk_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    edk_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    edk_webpushr_abandoned_cart: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    edk_wfblockediplog: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    edk_wfblocks7: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    edk_wfconfig: Data: 1.52MB + Index: 0.00MB + Engine InnoDB
    edk_wfcrawlers: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    edk_wffilechanges: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    edk_wffilemods: Data: 1.52MB + Index: 0.00MB + Engine InnoDB
    edk_wfhits: Data: 1.52MB + Index: 0.16MB + Engine InnoDB
    edk_wfhoover: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    edk_wfissues: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    edk_wfknownfilelist: Data: 6.52MB + Index: 0.00MB + Engine InnoDB
    edk_wflivetraffichuman: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    edk_wflocs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    edk_wflogins: Data: 0.17MB + Index: 0.06MB + Engine InnoDB
    edk_wfls_2fa_secrets: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    edk_wfls_settings: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    edk_wfnotifications: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    edk_wfpendingissues: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    edk_wfreversecache: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    edk_wfsnipcache: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    edk_wfstatus: Data: 0.13MB + Index: 0.09MB + Engine InnoDB
    edk_wftrafficrates: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    edk_wpr_rocket_cache: Data: 0.09MB + Index: 0.11MB + Engine InnoDB
    edk_wpr_rucss_used_css: Data: 0.02MB + Index: 0.08MB + Engine InnoDB
    edk_wprus_logs: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    edk_wprus_nonce: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    edk_wpsmtp_logs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    
    ### Post Type Counts ###
    
    app-page: 2
    attachment: 320
    bp-email: 20
    bp-member-type: 2
    buddyblogpro_form: 1
    case27_listing_type: 10
    edk-app: 2
    elementor_font: 1
    elementor_library: 23
    forum: 1
    itsec-dash-card: 6
    itsec-dashboard: 1
    jet-engine: 1
    jet-engine-booking: 3
    jet-form-builder: 1
    jet-menu: 2
    job_listing: 2
    language_switcher: 2
    mobile-app: 2
    nav_menu_item: 64
    oembed_cache: 35
    page: 52
    post: 331
    product: 8
    revision: 18
    test: 1
    tools_and_docs: 1
    tools-docs: 1
    topic: 1
    user_request: 1
    wp_global_styles: 8
    wpuf_forms: 2
    wpuf_input: 5
    
    ### Security ###
    
    Secure connection (HTTPS): ?
    Hide errors from visitors: ?Error messages should not be shown to visitors.
    
    ### Active Plugins (20) ###
    
    Broken Link Checker: by WPMU DEV – 1.11.18
    Default featured image: by Jan Willem Oostendorp – 1.7.2.1
    DIGITS: WordPress Mobile Number Signup and Login: by UnitedOver – 7.9.3.4
    Easy WP SMTP: by wpecommerce
    alexanderfoxc – 1.4.7
    
    Elementor Pro: by Elementor.com – 3.7.7
    Elementor: by Elementor.com – 3.7.7
    Freesoul Deactivate Plugins: by Jose Mortellaro – 1.9.2.2
    WPCode - Insert Headers, Footers, and Code Snippets: by WPCode – 2.0.2
    JetEngine: by Crocoblock – 3.0.4
    MalCare WordPress Security Plugin - Malware Scanner, Cleaner, Security Firewall: by MalCare Security – 4.82
    Image optimisation service by Optimole: by Optimole – 3.4.6
    LoginWP (Formerly Peter's Login Redirect): by LoginWP Team – 3.0.3.0
    Rank Math SEO PRO: by Rank Math – 3.0.20
    Rank Math SEO: by Rank Math – 1.0.98.2
    User Role Editor: by Vladimir Garagulya – 4.63.1
    WooCommerce: by Automattic – 6.9.4
    WP Hide & Security Enhancer PRO: by Nsp Code – 3.8.1
    WP Remote Users Sync: by Alexandre Froger – 1.2.11
    WP Rocket: by WP Media – 3.12.1.1
    WP-Sweep: by Lester 'GaMerZ' Chan – 1.1.5
    
    ### Inactive Plugins (4) ###
    
    Razorpay for WooCommerce: by Team Razorpay – 4.3.1
    Web Stories: by Google – 1.25.1
    WooCommerce Stripe Gateway: by WooCommerce – 6.7.0
    Wordfence Security: by Wordfence – 7.6.2
    
    ### Dropin Plugins (1) ###
    
    advanced-cache.php: advanced-cache.php
    
    ### Must Use Plugins (2) ###
    
    freesoul deactivate plugins [fdp]: by Jose Mortellaro – 1.9.2.2
    wp-hide-loader.php: by  –
    
    ### Settings ###
    
    API Enabled: –
    Force SSL: –
    Currency: INR (?)
    Currency Position: left
    Thousand Separator: ,
    Decimal Separator: .
    Number of Decimals: 2
    Taxonomies: Product Types: external (external)
    grouped (grouped)
    job_package (job_package)
    promotion_package (promotion_package)
    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: –
    Enforce Approved Product Download Directories: –
    
    ### WC Pages ###
    
    Shop base: #99021 - /shop/
    Basket: #99020 - /cart/
    Checkout: #99019 - /checkout/
    My account: #99018 - /my-account/
    Terms and conditions: ? Page not set
    
    ### Theme ###
    
    Name: My Listing Child
    Version: 1.1
    Author URL: 
    Child Theme: ?
    Parent Theme Name: My Listing
    Parent Theme Version: 2.9.4
    Parent Theme Author URL: https://27collective.net/
    WooCommerce Support: ?
    
    ### Templates ###
    
    Archive Template: Your theme has a woocommerce.php file. You will not be able to override the woocommerce/archive-product.php custom template since woocommerce.php has priority over archive-product.php. This is intended to prevent display issues.
    Overrides: –
    
    ### Admin ###
    
    Enabled Features: activity-panels
    analytics
    coupons
    customer-effort-score-tracks
    experimental-products-task
    experimental-import-products-task
    experimental-fashion-sample-products
    experimental-product-tour
    shipping-smart-defaults
    shipping-setting-tour
    homescreen
    marketing
    mobile-app-banner
    navigation
    onboarding
    onboarding-tasks
    remote-inbox-notifications
    remote-free-extensions
    payment-gateway-suggestions
    shipping-label-banner
    subscriptions
    store-alerts
    transient-notices
    wc-pay-promotion
    wc-pay-welcome-page
    
    Disabled Features: minified-js
    new-product-management-experience
    settings
    
    Daily Cron: ? Next scheduled: 2022-09-27 16:31:10 +05:30
    Options: ?
    Notes: 35
    Onboarding: completed
    
    ### Action Scheduler ###
    
    Canceled: 21
    Oldest: 2022-09-27 22:32:19 +0530
    Newest: 2022-09-27 22:32:19 +0530
    
    Complete: 3,728
    Oldest: 2022-09-24 22:51:31 +0530
    Newest: 2022-09-27 20:46:51 +0530
    
    In-progress: 1
    Oldest: –
    Newest: –
    
    Pending: 473
    Oldest: 2022-09-28 11:49:49 +0530
    Newest: 2022-09-28 20:47:17 +0530
    
    ### Status report information ###
    
    Generated at: 2022-09-28 14:16:02 +05:30
    

    Hi @impurnendu

    Thanks for sending the System Status Report.

    Can you please provide further details on where you are seeing the error message above so that we could check this further?

    If a screenshot would be helpful, please use https://snipboard.io or https://skitch.com/. You can share the direct link to the image as a response to this topic.

    Furthermore, if you could also provide the fatal error logs (if any) under WooCommerce > Status > Logs.

    Thread Starter Purnendu

    (@impurnendu)

    2022-09-07T19:26:55+00:00 CRITICAL Uncaught Error: Call to undefined function wc_get_screen_ids() in /home/****/public_html/wp-content/plugins/woocommerce/includes/admin/class-wc-admin-notices.php:223
    Stack trace:
    #0 /home/****/public_html/wp-includes/class-wp-hook.php(307): WC_Admin_Notices::add_notices()
    #1 /home/****/public_html/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters()
    #2 /home/****/public_html/wp-includes/plugin.php(476): WP_Hook->do_action()
    #3 /home/****/public_html/wp-admin/admin-header.php(132): do_action()
    #4 /home/****/public_html/wp-admin/admin.php(239): require_once('/home/edukareon...')
    #5 /home/****/public_html/wp-admin/themes.php(10): require_once('/home/edukareon...')
    #6 {main}
      thrown in /home/****/public_html/wp-content/plugins/woocommerce/includes/admin/class-wc-admin-notices.php on line 223

    The error in on “Digits Login/Signup Plugin” login page! Here is the screenshot- https://snipboard.io/xgyao4.jpg

    Mirko P.

    (@rainfallnixfig)

    Hello @impurnendu 👋

    Thanks for the screenshot.

    Checking your site’s system status I see you have WordPress debugging enabled. Do you see any errors in wp-content/debug.log? You can open this file in a text editor and go from there. Here’s more information on debugging in WordPress:

    Debugging in WordPress

    However, the best way to check what’s causing this is to temporarily switch your theme to Storefront and disable all plugins except for WooCommerce.

    If that resolves the issue, then re-enable the theme first and your other plugins one-by-one until you find the one that’s causing the issue.

    For a full guide on conflict testing, please see:

    https://docs.woocommerce.com/document/woocommerce-self-service-guide/

    Cheers.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Notice: Function get_cart was called incorrectly’ is closed to new replies.