• Resolved seniordeemos

    (@seniordeemos)


    i have ShopEngine enabled along with Woocommerce, however yesterday and out of the blue I ran into this critical error

    [18-May-2024 19:47:12 UTC] PHP Fatal error:  Uncaught TypeError: explode(): Argument #2 ($string) must be of type string, array given in /home/otooryco/public_html/wp-content/plugins/woocommerce/includes/data-stores/class-wc-product-data-store-cpt.php:371
    Stack trace:
    #0 /home/otooryco/public_html/wp-content/plugins/woocommerce/includes/data-stores/class-wc-product-data-store-cpt.php(371): explode(',', Array)
    #1 /home/otooryco/public_html/wp-content/plugins/woocommerce/includes/data-stores/class-wc-product-data-store-cpt.php(189): WC_Product_Data_Store_CPT->read_product_data(Object(WC_Product_Simple))
    #2 /home/otooryco/public_html/wp-content/plugins/woocommerce/includes/class-wc-data-store.php(159): WC_Product_Data_Store_CPT->read(Object(WC_Product_Simple))
    #3 /home/otooryco/public_html/wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-product.php(138): WC_Data_Store->read(Object(WC_Product_Simple))
    #4 /home/otooryco/public_html/wp-content/plugins/woocommerce/includes/class-wc-product-simple.php(24): WC_Product->__construct(3135)
    #5 /home/otooryco/public_html/wp-content/plugins/woocommerce/includes/class-wc-product-factory.php(46): WC_Product_Simple->__construct(3135, Array)
    #6 /home/otooryco/public_html/wp-content/plugins/woocommerce/includes/wc-product-functions.php(73): WC_Product_Factory->get_product(3135, Array)
    #7 [internal function]: wc_get_product(Object(WP_Post))
    #8 /home/otooryco/public_html/wp-content/plugins/woocommerce/includes/data-stores/class-wc-product-data-store-cpt.php(2077): array_map('wc_get_product', Array)
    #9 /home/otooryco/public_html/wp-content/plugins/woocommerce/includes/class-wc-data-store.php(224): WC_Product_Data_Store_CPT->query(Array)
    #10 /home/otooryco/public_html/wp-content/plugins/woocommerce/includes/class-wc-product-query.php(76): WC_Data_Store->__call('query', Array)
    #11 /home/otooryco/public_html/wp-content/plugins/woocommerce/includes/wc-product-functions.php(49): WC_Product_Query->get_products()
    #12 /home/otooryco/public_html/wp-content/plugins/shopengine/widgets/lazy-cache.php(24): wc_get_products(Array)
    #13 /home/otooryco/public_html/wp-content/plugins/shopengine/widgets/products.php(64): ShopEngine\Widgets\Products->cache('wc_get_products', Array)
    #14 /home/otooryco/public_html/wp-content/plugins/shopengine/widgets/products.php(159): ShopEngine\Widgets\Products->get_a_product()
    #15 /home/otooryco/public_html/wp-content/plugins/shopengine/widgets/advanced-search/advanced-search.php(1305): ShopEngine\Widgets\Products->get_product(false)
    #16 /home/otooryco/public_html/wp-content/plugins/shopengine/base/widget.php(48): Elementor\ShopEngine_Advanced_Search->screen()
    #17 /home/otooryco/public_html/wp-content/plugins/elementor/includes/base/controls-stack.php(2315): ShopEngine\Base\Widget->render()
    #18 /home/otooryco/public_html/wp-content/plugins/elementor/includes/base/widget-base.php(634): Elementor\Controls_Stack->render_by_mode()
    #19 /home/otooryco/public_html/wp-content/plugins/elementor/includes/base/widget-base.php(775): Elementor\Widget_Base->render_content()
    #20 /home/otooryco/public_html/wp-content/plugins/elementor/includes/base/element-base.php(464): Elementor\Widget_Base->print_content()
    #21 /home/otooryco/public_html/wp-content/plugins/elementor/includes/base/element-base.php(1375): Elementor\Element_Base->print_element()
    #22 /home/otooryco/public_html/wp-content/plugins/elementor/includes/base/element-base.php(464): Elementor\Element_Base->print_content()
    #23 /home/otooryco/public_html/wp-content/plugins/elementor/includes/base/element-base.php(1375): Elementor\Element_Base->print_element()
    #24 /home/otooryco/public_html/wp-content/plugins/elementor/includes/base/element-base.php(464): Elementor\Element_Base->print_content()
    #25 /home/otooryco/public_html/wp-content/plugins/elementor/core/base/document.php(1795): Elementor\Element_Base->print_element()
    #26 /home/otooryco/public_html/wp-content/plugins/elementor/core/base/document.php(1183): Elementor\Core\Base\Document->print_elements(Array)
    #27 /home/otooryco/public_html/wp-content/plugins/elementor/includes/frontend.php(1157): Elementor\Core\Base\Document->print_elements_with_wrapper(Array)
    #28 /home/otooryco/public_html/wp-content/plugins/elementor/includes/frontend.php(1225): Elementor\Frontend->get_builder_content(2348, false)
    #29 /home/otooryco/public_html/wp-content/plugins/header-footer-elementor/inc/class-header-footer-elementor.php(625): Elementor\Frontend->get_builder_content_for_display(2348)
    #30 /home/otooryco/public_html/wp-includes/shortcodes.php(433): Header_Footer_Elementor->render_template(Array, '', 'hfe_template')
    #31 [internal function]: do_shortcode_tag(Array)
    #32 /home/otooryco/public_html/wp-includes/shortcodes.php(273): preg_replace_callback('/\\[(\\[?)(hfe_te...', 'do_shortcode_ta...', '[hfe_template i...')
    #33 /home/otooryco/public_html/wp-content/plugins/exclusive-addons-for-elementor/elements/modal-popup/modal-popup.php(1244): do_shortcode('[hfe_template i...')
    #34 /home/otooryco/public_html/wp-content/plugins/elementor/includes/base/controls-stack.php(2315): ExclusiveAddons\Elements\Modal_Popup->render()
    #35 /home/otooryco/public_html/wp-content/plugins/elementor/includes/base/widget-base.php(634): Elementor\Controls_Stack->render_by_mode()
    #36 /home/otooryco/public_html/wp-content/plugins/elementor/includes/base/widget-base.php(775): Elementor\Widget_Base->render_content()
    #37 /home/otooryco/public_html/wp-content/plugins/elementor/includes/base/element-base.php(464): Elementor\Widget_Base->print_content()
    #38 /home/otooryco/public_html/wp-content/plugins/elementor/includes/base/element-base.php(1375): Elementor\Element_Base->print_element()
    #39 /home/otooryco/public_html/wp-content/plugins/elementor/includes/base/element-base.php(464): Elementor\Element_Base->print_content()
    #40 /home/otooryco/public_html/wp-content/plugins/elementor/includes/base/element-base.php(1375): Elementor\Element_Base->print_element()
    #41 /home/otooryco/public_html/wp-content/plugins/elementor/includes/base/element-base.php(464): Elementor\Element_Base->print_content()
    #42 /home/otooryco/public_html/wp-content/plugins/elementor/includes/base/element-base.php(1375): Elementor\Element_Base->print_element()
    #43 /home/otooryco/public_html/wp-content/plugins/elementor/includes/base/element-base.php(464): Elementor\Element_Base->print_content()
    #44 /home/otooryco/public_html/wp-content/plugins/elementor/includes/base/element-base.php(1375): Elementor\Element_Base->print_element()
    #45 /home/otooryco/public_html/wp-content/plugins/elementor/includes/base/element-base.php(464): Elementor\Element_Base->print_content()
    #46 /home/otooryco/public_html/wp-content/plugins/elementor/core/base/document.php(1795): Elementor\Element_Base->print_element()
    #47 /home/otooryco/public_html/wp-content/plugins/elementor/core/base/document.php(1183): Elementor\Core\Base\Document->print_elements(Array)
    #48 /home/otooryco/public_html/wp-content/plugins/elementor/includes/frontend.php(1157): Elementor\Core\Base\Document->print_elements_with_wrapper(Array)
    #49 /home/otooryco/public_html/wp-content/plugins/elementor/includes/frontend.php(1225): Elementor\Frontend->get_builder_content('1566', false)
    #50 /home/otooryco/public_html/wp-content/plugins/header-footer-elementor/inc/class-header-footer-elementor.php(524): Elementor\Frontend->get_builder_content_for_display('1566')
    #51 /home/otooryco/public_html/wp-content/plugins/header-footer-elementor/inc/hfe-functions.php(88): Header_Footer_Elementor::get_header_content()
    #52 /home/otooryco/public_html/wp-includes/class-wp-hook.php(324): hfe_render_header('')
    #53 /home/otooryco/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters('', Array)
    #54 /home/otooryco/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
    #55 /home/otooryco/public_html/wp-content/plugins/header-footer-elementor/themes/default/hfe-header.php(23): do_action('hfe_header')
    #56 /home/otooryco/public_html/wp-content/plugins/header-footer-elementor/themes/default/class-hfe-default-compat.php(57): require('/home/otooryco/...')
    #57 /home/otooryco/public_html/wp-includes/class-wp-hook.php(326): HFE\Themes\HFE_Default_Compat->override_header(NULL)
    #58 /home/otooryco/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)
    #59 /home/otooryco/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
    #60 /home/otooryco/public_html/wp-includes/general-template.php(38): do_action('get_header', NULL, Array)
    #61 /home/otooryco/public_html/wp-content/themes/hello-elementor/index.php(15): get_header()
    #62 /home/otooryco/public_html/wp-includes/template-loader.php(106): include('/home/otooryco/...')
    #63 /home/otooryco/public_html/wp-blog-header.php(19): require_once('/home/otooryco/...')
    #64 /home/otooryco/public_html/index.php(17): require('/home/otooryco/...')

    if you check line 16, this is what is causing the issue, and i confirmed that by adding advanced search widget in other pages.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Reedwanul Haque

    (@reedwanul)

    Dear @seniordeemos ,

    Thanks for reaching out to us.

    In our development environment, ShopEngine Advanced Search widget is functioning correctly. First, ensure you are using PHP version 7.4 or higher and the latest versions of the ShopEngine, WooCommerce, and Elementor plugins. Based on the error, I recommend running a conflict test on your site to identify the root cause of the issue (please take a backup of your website before doing the below steps).

    • Please make sure to clear all the cache from your website including any plugin, browser, server, or CDN (eg. Cloudflare) also try disabling the Cache/Optimization plugin for some time if you are using one.
    • Switch your theme to a default theme like 2020 or Hello Elementor and check if the issue still persists. If that solves your issue, that means the issue is related to the theme you are using.
    • If switching to the default theme also doesn’t help, then please check if there are any conflicts between the installed plugins. To troubleshoot the issue, please deactivate other plugins except for WooCommerce, ShopEngine, and Elementor to check if the issue still persists. If that solves your problem, activate the plugins one by one, and continue checking the issue In this way you will be able to detect which one causes the problem.

    Let me know your findings after performing the conflict test. If the issue persists even after that, I will take a closer look at this issue and help you to find a solution as soon as possible. Your patience & cooperation in this matter are greatly appreciated.

    Best Regards,
    Reju

    Thread Starter seniordeemos

    (@seniordeemos)

    1- i have cleared the cache, and i am not using any CDNs.
    2- i am already at PHP version8.1.28 (Supports 64bit values).
    3- i have tried a troubleshooting plugin to activate each plugin indvidually, i have switched to other themes, but the issue is being triggered when i activate Hello Elementor With advanced search widget in any page, However i haven’t made any custom edits to the Theme, and it’s already up to date.

    Plugin Support Reedwanul Haque

    (@reedwanul)

    Dear @seniordeemos,

    I hope this message finds you well & am understand your concern. Please be informed that in our development environment, the ShopEngine Advanced Search is working fine with the Hello Elementor theme. To better assist you, could you please provide a visual example of the problem, such as a screencast video? This will help us understand the issue more clearly and provide a more effective solution. Additionally, please attach your system information from Dashboard > Elementor > System Info. Your patience and cooperation in this matter are greatly appreciated.

    Looking forward to your response.

    Regards,
    Reju

    Plugin Support Reedwanul Haque

    (@reedwanul)

    Dear @seniordeemos ,

    I hope this message finds you well. Since we haven’t received any response from you, we assume that the issue has been resolved. Therefore, I’m marking this thread as resolved.

    If you need any further assistance on this matter, feel free to create a new thread. We will be happy to assist you.

    Best Regards,
    Reju

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