• Resolved roli83

    (@roli83)


    Hi all

    Like in the Post HERE, we have the same error.

    The Error shows up, if we search for something without an exact match. If we search something with an exact match, the searchfield works normal.

    Sadly we can’t update our WordPress to the latest, because we use the latest official version from synology (5.8.3.).

    Everything else works normal, expect the search-field.

    Any ideas how to fix that? or how can i disable the searchfield for the moment?

    Here are the Logs:

    Error:

    `2022-06-19T12:47:41+00:00 CRITICAL Uncaught Error: Call to undefined function Automattic\WooCommerce\Blocks\Templates\wp_is_block_theme() in /volume1/web/wordpress/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/Templates/ProductSearchResultsTemplate.php:36
    Stack trace:
    #0 /volume1/web/wordpress/wp-includes/class-wp-hook.php(303): Automattic\WooCommerce\Blocks\Templates\ProductSearchResultsTemplate->update_search_template_hierarchy(Array)
    #1 /volume1/web/wordpress/wp-includes/plugin.php(189): WP_Hook->apply_filters(Array, Array)
    #2 /volume1/web/wordpress/wp-includes/template.php(62): apply_filters(‘search_template…’, Array)
    #3 /volume1/web/wordpress/wp-includes/template.php(511): get_query_template(‘search’)
    #4 /volume1/web/wordpress/wp-includes/template-loader.php(81): get_search_template()
    #5 /volume1/web/wordpress/wp-blog-header.php(19): require_once(‘/volume1/web/wo…’)
    #6 /volume1/web/wordpress/index.php(17): require(‘/volume1/web/wo…’)
    #7 {main}
    thrown in /volume1/web/wordpress/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/Templates/ProductSearchResultsTemplate.php in Zeile 36`

    Systemstatus:

    `
    ### WordPress Environment ###

    WordPress address (URL): https://www.perleti.ch
    Site address (URL): https://www.perleti.ch
    WC Version: 6.6.0
    REST API Version: ? 6.6.0
    WC Blocks Version: ? 7.6.0
    Action Scheduler Version: ? 3.4.0
    Log Directory Writable: ?
    WP Version: ? 5.8.3 – Es ist eine neuere Version von WordPress verfügbar (6.0)
    WP Multisite: –
    WP Memory Limit: 512 MB
    WP Debug Mode: –
    WP Cron: ?
    Language: de_CH_informal
    External object cache: –

    ### Server Environment ###

    Server Info: Apache/2.4.43 (Unix)
    PHP Version: 7.4.9
    PHP Post Max Size: 32 MB
    PHP Time Limit: 240
    PHP Max Input Vars: 1000
    cURL Version: 7.54.0
    OpenSSL/1.0.2u

    SUHOSIN Installed: –
    MySQL Version: 5.5.5-10.3.29-MariaDB
    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.6.0
    WC Database Prefix: wp_
    Datenbank-Gesamtgr?sse: 15.61MB
    Datenbank-Datengr?sse: 11.40MB
    Datenbank-Indexgr?sse: 4.21MB
    wp_woocommerce_sessions: Daten: 0.48MB + Index: 0.02MB + Engine InnoDB
    wp_woocommerce_api_keys: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_woocommerce_attribute_taxonomies: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_woocommerce_downloadable_product_permissions: Daten: 0.02MB + Index: 0.06MB + Engine InnoDB
    wp_woocommerce_order_items: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_woocommerce_order_itemmeta: Daten: 0.06MB + Index: 0.03MB + Engine InnoDB
    wp_woocommerce_tax_rates: Daten: 0.02MB + Index: 0.06MB + Engine InnoDB
    wp_woocommerce_tax_rate_locations: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_woocommerce_shipping_zones: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_woocommerce_shipping_zone_locations: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_woocommerce_shipping_zone_methods: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_woocommerce_payment_tokens: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_woocommerce_payment_tokenmeta: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_woocommerce_log: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB
    ahc_browsers: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB
    ahc_countries: Daten: 0.05MB + Index: 0.00MB + Engine InnoDB
    ahc_daily_visitors_stats: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB
    ahc_hits: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB
    ahc_keywords: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB
    ahc_online_users: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB
    ahc_recent_visitors: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB
    ahc_refering_sites: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB
    ahc_searching_visits: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB
    ahc_search_engines: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB
    ahc_search_engine_crawlers: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB
    ahc_settings: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB
    ahc_title_traffic: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB
    ahc_visitors: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB
    ahc_visits_time: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_abj404_logsv2: Daten: 0.01MB + Index: 0.02MB + Engine MyISAM
    wp_abj404_logs_hits: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_abj404_lookup: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_abj404_permalink_cache: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_abj404_redirects: Daten: 0.02MB + Index: 0.11MB + Engine InnoDB
    wp_abj404_spelling_cache: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_actionscheduler_actions: Daten: 0.13MB + Index: 0.16MB + Engine InnoDB
    wp_actionscheduler_claims: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_actionscheduler_groups: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_actionscheduler_logs: Daten: 0.13MB + Index: 0.11MB + Engine InnoDB
    wp_commentmeta: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_comments: Daten: 0.02MB + Index: 0.09MB + Engine InnoDB
    wp_ewwwio_images: Daten: 0.14MB + Index: 0.09MB + Engine InnoDB
    wp_ewwwio_queue: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_fbv: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_fbv_attachment_folder: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_links: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_options: Daten: 4.02MB + Index: 0.13MB + Engine InnoDB
    wp_postmeta: Daten: 2.41MB + Index: 0.53MB + Engine InnoDB
    wp_posts: Daten: 1.52MB + Index: 0.13MB + Engine InnoDB
    wp_redirection_404: Daten: 0.05MB + Index: 0.05MB + Engine InnoDB
    wp_redirection_groups: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_redirection_items: Daten: 0.02MB + Index: 0.09MB + Engine InnoDB
    wp_redirection_logs: Daten: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_statistics_exclusions: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_statistics_historical: Daten: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_statistics_pages: Daten: 0.14MB + Index: 0.38MB + Engine InnoDB
    wp_statistics_search: Daten: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_statistics_useronline: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_statistics_visit: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_statistics_visitor: Daten: 0.36MB + Index: 0.61MB + Engine InnoDB
    wp_statistics_visitor_relationships: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_termmeta: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_terms: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_term_relationships: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_term_taxonomy: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_usermeta: Daten: 0.08MB + Index: 0.03MB + Engine InnoDB
    wp_users: Daten: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_wc_admin_notes: Daten: 0.05MB + Index: 0.00MB + Engine InnoDB
    wp_wc_admin_note_actions: Daten: 0.05MB + Index: 0.02MB + Engine InnoDB
    wp_wc_category_lookup: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wc_customer_lookup: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_wc_download_log: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_wc_order_coupon_lookup: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_wc_order_product_lookup: Daten: 0.02MB + Index: 0.06MB + Engine InnoDB
    wp_wc_order_stats: Daten: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_wc_order_tax_lookup: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_wc_product_attributes_lookup: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wc_product_download_directories: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wc_product_meta_lookup: Daten: 0.02MB + Index: 0.09MB + Engine InnoDB
    wp_wc_rate_limits: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wc_reserved_stock: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wc_tax_rate_classes: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wc_webhooks: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wpforms_tasks_meta: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wpmailsmtp_debug_events: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wpmailsmtp_tasks_meta: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_xsg_sitemap_meta: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_yoast_indexable: Daten: 0.19MB + Index: 0.09MB + Engine InnoDB
    wp_yoast_indexable_hierarchy: Daten: 0.05MB + Index: 0.05MB + Engine InnoDB
    wp_yoast_migrations: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_yoast_primary_term: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_yoast_seo_links: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB

    ### Post Type Counts ###

    attachment: 352
    page: 8
    post: 1
    product: 186
    product_variation: 53
    revision: 120
    shop_coupon: 1
    shop_order: 14

    ### Security ###

    Secure connection (HTTPS): ?
    Hide errors from visitors: ?

    ### Active Plugins (12) ###

    Akismet Anti-Spam: von Automattic – 4.2.4
    BackWPup: von Inpsyde GmbH – 3.10.0
    EWWW Image Optimizer: von Exactly WWW – 6.6.0
    Redirection: von John Godley – 5.2.3
    Simple Social Icons: von StudioPress – 3.1.0
    WooCommerce Payments: von Automattic – 4.3.0
    WooCommerce: von Automattic – 6.6.0
    Yoast SEO: von Team Yoast – 19.1
    WP Mail SMTP: von WPForms – 3.4.0
    WP Snow – Best Snow Effect Plugin: von Ironikus – 1.0.2
    WP Statistics: von VeronaLabs – 13.2.4
    WPForms Lite: von WPForms – 1.7.4.2

    ### Inactive Plugins (0) ###

    ### Must Use Plugins (1) ###

    Disable XML-RPC Pingback: von Samuel Aguilera – 1.1

    ### 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: –
    Enforce Approved Product Download Directories: –

    ### WC Pages ###

    Shop-Basis: #6 – /onlineshop/
    Warenkorb: #7 – /warenkorb/
    Kasse: #8 – /kasse/
    Mein Konto: #9 – /mein-konto/
    Allgemeine Gesch?ftsbedingungen: #10 – /ueber-mich/agb/

    ### Theme ###

    Name: Boutique
    Version: 2.0.17
    Author URL: https://woocommerce.com
    Child Theme: ?
    Parent Theme Name: Storefront
    Parent Theme Version: 4.1.0
    Parent Theme Author URL: https://woocommerce.com/
    WooCommerce Support: ?

    ### Templates ###

    Overrides: –

    ### Admin ###

    Enabled Features: activity-panels
    analytics
    coupons
    customer-effort-score-tracks
    experimental-products-task
    experimental-import-products-task
    experimental-fashion-sample-products
    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
    wc-pay-subscriptions-page

    Disabled Features: minified-js
    settings

    Daily Cron: ? Next scheduled: 2022-06-21 12:38:55 +02:00
    Options: ?
    Notes: 43
    Onboarding: completed

    ### WooCommerce Payments ###

    Version: 4.3.0
    Connected to WPCOM: No
    Blog ID: –
    Account ID: –

    ### Action Scheduler ###

    Abgeschlossen: 375
    Oldest: 2022-05-21 17:56:36 +0200
    Newest: 2022-06-21 12:59:51 +0200

    Ausstehend: 6
    Oldest: 2022-06-21 19:33:13 +0200
    Newest: 2022-06-28 00:35:12 +0200

    ### Status report information ###

    Generated at: 2022-06-21 13:13:49 +02:00
    `

    Thanks for your help
    Roland

    • This topic was modified 2 years, 8 months ago by roli83.
    • This topic was modified 2 years, 8 months ago by roli83.

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hey @roli83

    how can i disable the searchfield for the moment?

    Since you cannot update your WordPress at the moment as suggested on this thread , you can disable the search field in your site by adding this CSS code by going to Appearance > Customize > Additional CSS

    
    .site-search form { 
        display: none;
    }

    You could also use the Storefront Powerpack extension. – check to see if it is something you can consider and create a presales ticket with us if you have any questions about it.

    Thread Starter roli83

    (@roli83)

    Hi Daniel

    Thanks for your answer.
    I tried it and it works well.. sadly only on the desktop-version.
    On mobile-version the symbol of the magnifying glass still shows up but, after adding the CSS-code, its a dead button.

    So i decided to let the searchfield online for the moment. Maybe it will be fixed in a future-version of woocommerce or synology brings up the new version of WordPress.

    Thanks anyway for your help ??

    Hello,

    Just to add, while waiting for the new version of WordPress to be available, you could also add the code below to temporarily hide the search in the footer bar as well:

    .storefront-handheld-footer-bar .search {display:none;}

    Thread Starter roli83

    (@roli83)

    A few minuts ago, i got the update for woocommerce to version 6.6.1.
    This fixed the searchfield an everything works like it’s excepted (github – issue).

    Thanks to all for helping me and thanks to devs for fixing this.
    ??

    Mirko P.

    (@rainfallnixfig)

    Glad to hear it – thanks for letting us know.
    ?
    I’ll mark this thread as resolved now. If you have any further questions, I recommend creating a new thread.

    Have a nice day ahead!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Search error after 6.0 update 2nd’ is closed to new replies.