Home Forums WoodMart support forum Error in the widget for displaying product categories for Elementor

Error in the widget for displaying product categories for Elementor

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #509686

    Chingiz
    Participant

    Hello,

    Faced with such a problem, when using the widget for displaying product categories, the page breaks and I get the following error in the logs:

    Uncaught TypeError: ltrim(): Argument #1 ($string) must be of type string, WP_Error given in /home/c/chguseynov/poleteli.ch-guseynov.ru/public_html/wp-includes/formatting.php:4477 Stack trace: #0 /home/c/chguseynov/poleteli.ch-guseynov.ru/public_html/wp-includes/formatting.php(4477): ltrim(Object(WP_Error)) #1 /home/c/chguseynov/poleteli.ch-guseynov.ru/public_html/wp-content/themes/woodmart/woocommerce/content-product-cat-default.php(26): esc_url(Object(WP_Error)) #2 /home/c/chguseynov/poleteli.ch-guseynov.ru/public_html/wp-content/plugins/woocommerce/includes/wc-core-functions.php(345): include('/home/c/chgusey...') #3 /home/c/chguseynov/poleteli.ch-guseynov.ru/public_html/wp-content/themes/woodmart/woocommerce/content-product-cat.php(100): wc_get_template('content-product...', Array) #4 /home/c/chguseynov/poleteli.ch-guseynov.ru/public_html/wp-content/plugins/woocommerce/includes/wc-core-functions.php(345): include('/home/c/chgusey...') #5 /home/c/chguseynov/poleteli.ch-guseynov.ru/public_html/wp-content/themes/woodmart/inc/integrations/elementor/elements/class-product-categories.php(1067): wc_get_template('content-product...', Array) #6 /home/c/chguseynov/poleteli.ch-guseynov.ru/public_html/wp-content/plugins/elementor/includes/base/controls-stack.php(2265): XTS\Elementor\Product_Categories->render() #7 /home/c/chguseynov/poleteli.ch-guseynov.ru/public_html/wp-content/plugins/elementor/includes/base/widget-base.php(609): Elementor\Controls_Stack->render_by_mode() #8 /home/c/chguseynov/poleteli.ch-guseynov.ru/public_html/wp-content/plugins/elementor/includes/base/widget-base.php(750): Elementor\Widget_Base->render_content() #9 /home/c/chguseynov/poleteli.ch-guseynov.ru/public_html/wp-content/plugins/elementor/includes/base/element-base.php(464): Elementor\Widget_Base->print_content() #10 /home/c/chguseynov/poleteli.ch-guseynov.ru/public_html/wp-content/plugins/elementor/includes/base/element-base.php(1375): Elementor\Element_Base->print_element() #11 /home/c/chguseynov/poleteli.ch-guseynov.ru/public_html/wp-content/plugins/elementor/includes/base/element-base.php(464): Elementor\Element_Base->print_content() #12 /home/c/chguseynov/poleteli.ch-guseynov.ru/public_html/wp-content/plugins/elementor/includes/base/element-base.php(1375): Elementor\Element_Base->print_element() #13 /home/c/chguseynov/poleteli.ch-guseynov.ru/public_html/wp-content/plugins/elementor/includes/base/element-base.php(464): Elementor\Element_Base->print_content() #14 /home/c/chguseynov/poleteli.ch-guseynov.ru/public_html/wp-content/plugins/elementor/core/base/document.php(1739): Elementor\Element_Base->print_element() #15 /home/c/chguseynov/poleteli.ch-guseynov.ru/public_html/wp-content/plugins/elementor/core/base/document.php(1134): Elementor\Core\Base\Document->print_elements(Array) #16 /home/c/chguseynov/poleteli.ch-guseynov.ru/public_html/wp-content/plugins/elementor/includes/frontend.php(1179): Elementor\Core\Base\Document->print_elements_with_wrapper(Array) #17 /home/c/chguseynov/poleteli.ch-guseynov.ru/public_html/wp-content/plugins/elementor/includes/frontend.php(1074): Elementor\Frontend->get_builder_content(6592) #18 [internal function]: Elementor\Frontend->apply_builder_in_content('[rev_slider ali...') #19 /home/c/chguseynov/poleteli.ch-guseynov.ru/public_html/wp-includes/class-wp-hook.php(310): call_user_func_array(Array, Array) #20 /home/c/chguseynov/poleteli.ch-guseynov.ru/public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters('[rev_slider ali...', Array) #21 /home/c/chguseynov/poleteli.ch-guseynov.ru/public_html/wp-content/themes/woodmart/inc/template-tags/template-tags.php(495): apply_filters('the_content', '[rev_slider ali...') #22 /home/c/chguseynov/poleteli.ch-guseynov.ru/public_html/wp-content/themes/woodmart/page.php(26): woodmart_get_the_content() #23 /home/c/chguseynov/poleteli.ch-guseynov.ru/public_html/wp-includes/template-loader.php(106): include('/home/c/chgusey...') #24 /home/c/chguseynov/poleteli.ch-guseynov.ru/public_html/wp-blog-header.php(19): require_once('/home/c/chgusey...') #25 /home/c/chguseynov/poleteli.ch-guseynov.ru/public_html/index.php(17): require('/home/c/chgusey...') #26 {main} thrown в /home/c/chguseynov/poleteli.ch-guseynov.ru/public_html/wp-includes/formatting.php на строке 4477

    #509810

    Hello,

    Now check back your site after completely clearing the browser cache.

    Best Regards.

    #509825

    Chingiz
    Participant

    Hello,

    Cleared the browser cache.
    I tried opening the site in another browser and even from my phone.
    Nothing has changed.

    • This reply was modified 1 year, 4 months ago by Chingiz.
    • This reply was modified 1 year, 4 months ago by Chingiz.
    #509874

    Chingiz
    Participant

    Please check the widgets of the “Elementor” constructor and not the standard WordPress

    #509881

    Hello,

    Can you please share the small video for better understanding where the issue is situated?

    Best Regards.

    #509886

    Chingiz
    Participant

    Yes, of course

    Here’s the video

    https://disk.yandex.ru/i/fWPanIyIGnzp3g

    • This reply was modified 1 year, 4 months ago by Chingiz.
    #509890

    Hello,

    Did you forget to attach or send the link to the video?

    Best Regards.

    #509891

    Chingiz
    Participant

    And this link is not working? I attached the video there

    https://disk.yandex.ru/i/fWPanIyIGnzp3g

    #509902

    Chingiz
    Participant

    Did you get the video? I can redo the video or redo the link to the video if needed

    #509904

    Hello,

    Please deactivate the third party not related to our theme and check the issue. If the issue remains, confirm the permission for plugins deactivation, and switch to the parent theme. As soon as we complete the testing of this plugin we will enable it all back, You would better make the full backup of your site.

    Best Regards.

    #509905

    Chingiz
    Participant

    The problem is solved. As it turned out, the conflict was caused by the Cyr-To-Lat plugin. For all categories, labels were created in Latin and for the default category “Without category”, the label was created in Cyrillic.

    Thanks for the tip! The problem was right under my nose, but Nika couldn’t find it.

    #510074

    Sounds Great! that your issue has been solved.

    I’m so happy to hear you are pleased with the Theme and Support. XTEMOS strives to deliver the best customer experience, and it makes our day to hear we have accomplished that.

    We count ourselves lucky to have you as a customer. You can always reach us at any time. We are always here to help you.

    Have a great day.

    Topic Closed.
    Best Regards.

Viewing 12 posts - 1 through 12 (of 12 total)

The topic ‘Error in the widget for displaying product categories for Elementor’ is closed to new replies.