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
- This topic has 11 replies, 2 voices, and was last updated 1 year, 3 months ago by
Aizaz Imtiaz Awan.
-
AuthorPosts
-
November 3, 2023 at 4:00 pm #509686
ChingizParticipantHello,
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
November 4, 2023 at 9:44 am #509810
Aizaz Imtiaz AwanKeymasterHello,
Now check back your site after completely clearing the browser cache.
Best Regards.
November 4, 2023 at 10:41 am #509825
ChingizParticipantNovember 4, 2023 at 2:31 pm #509874
ChingizParticipantPlease check the widgets of the “Elementor” constructor and not the standard WordPress
November 4, 2023 at 2:34 pm #509881
Aizaz Imtiaz AwanKeymasterHello,
Can you please share the small video for better understanding where the issue is situated?
Best Regards.
November 4, 2023 at 2:43 pm #509886
ChingizParticipantYes, of course
Here’s the video
https://disk.yandex.ru/i/fWPanIyIGnzp3g
-
This reply was modified 1 year, 4 months ago by
Chingiz.
November 4, 2023 at 2:46 pm #509890
Aizaz Imtiaz AwanKeymasterHello,
Did you forget to attach or send the link to the video?
Best Regards.
November 4, 2023 at 2:49 pm #509891
ChingizParticipantAnd this link is not working? I attached the video there
November 4, 2023 at 3:36 pm #509902
ChingizParticipantDid you get the video? I can redo the video or redo the link to the video if needed
November 4, 2023 at 3:39 pm #509904
Aizaz Imtiaz AwanKeymasterHello,
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.
November 4, 2023 at 3:57 pm #509905
ChingizParticipantThe 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.
November 6, 2023 at 9:21 am #510074
Aizaz Imtiaz AwanKeymasterSounds 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. -
This reply was modified 1 year, 4 months ago by
-
AuthorPosts
Tagged: Elementor widgets, product category widget
The topic ‘Error in the widget for displaying product categories for Elementor’ is closed to new replies.
- You must be logged in to create new topics. Login / Register