• Resolved atomonelone

    (@atomonelone)


    Since installing RankMath my error log has been bombarded by this:
    I’m guessing it har something to do with RankMath breadcrumbs and Elementor?

    Please help!

    2023-01-18T00:45:48+00:00 CRITICAL Uncaught TypeError: ltrim(): Argument #1 ($string) must be of type string, WP_Error given in /wp-includes/formatting.php:4379
    Stack trace:
    
    0 /wp-includes/formatting.php(4379): ltrim(Object(WP_Error))
    
    1 /wp-content/plugins/seo-by-rank-math/includes/frontend/class-breadcrumbs.php(145): esc_url(Object(WP_Error))
    
    2 /wp-content/plugins/seo-by-rank-math/includes/frontend/class-shortcodes.php(68): RankMath\Frontend\Breadcrumbs->get_breadcrumb(Array)
    
    3 /wp-includes/shortcodes.php(355): RankMath\Frontend\Shortcodes->breadcrumb('', '', 'rank_math_bread…')
    
    4 [internal function]: do_shortcode_tag(Array)
    
    5 /wp-includes/shortcodes.php(227): preg_replace_callback('/\[(\[?)(rank_m…', 'do_shortcode_ta…', '[rank_math_brea…')
    
    6 /wp-content/plugins/elementor/includes/widgets/shortcode.php(130): do_shortcode('[rank_math_brea…')
    
    7 /wp-content/plugins/elementor/includes/base/controls-stack.php(2268): Elementor\Widget_Shortcode->render()
    
    8 /wp-content/plugins/elementor/includes/base/widget-base.php(609): Elementor\Controls_Stack->render_by_mode()
    
    9 /wp-content/plugins/elementor-pro/modules/global-widget/widgets/global-widget.php(111): Elementor\Widget_Base->render_content()
    
    10 /wp-content/plugins/elementor/includes/base/widget-base.php(750): ElementorPro\Modules\GlobalWidget\Widgets\Global_Widget->render_content()
    
    11 /wp-content/plugins/elementor/includes/base/element-base.php(449): Elementor\Widget_Base->print_content()
    
    12 /wp-content/plugins/elementor/includes/base/element-base.php(1354): Elementor\Element_Base->print_element()
    
    13 /wp-content/plugins/elementor/includes/base/element-base.php(449): Elementor\Element_Base->print_content()
    
    14 /wp-content/plugins/elementor/core/base/document.php(1669): Elementor\Element_Base->print_element()
    
    15 /wp-content/plugins/elementor-pro/modules/theme-builder/documents/theme-document.php(418): Elementor\Core\Base\Document->print_elements(Array)
    
    16 /wp-content/plugins/elementor/includes/frontend.php(1153): ElementorPro\Modules\ThemeBuilder\Documents\Theme_Document->print_elements_with_wrapper(Array)
    
    17 /wp-content/plugins/elementor/core/base/document.php(1144): Elementor\Frontend->get_builder_content(108, false)
    
    18 /wp-content/plugins/elementor/modules/library/documents/library-document.php(76): Elementor\Core\Base\Document->get_content(false)
    
    19 /wp-content/plugins/elementor-pro/modules/theme-builder/documents/theme-document.php(158): Elementor\Modules\Library\Documents\Library_Document->get_content(false)
    
    20 /wp-content/plugins/elementor-pro/modules/theme-builder/documents/theme-document.php(173): ElementorPro\Modules\ThemeBuilder\Documents\Theme_Document->get_content()
    
    21 /wp-content/plugins/elementor-pro/modules/theme-builder/documents/single-base.php(93): ElementorPro\Modules\ThemeBuilder\Documents\Theme_Document->print_content()
    
    22 /wp-content/plugins/elementor-pro/modules/woocommerce/documents/product.php(133): ElementorPro\Modules\ThemeBuilder\Documents\Single_Base->print_content()
    
    23 /wp-content/plugins/elementor-pro/modules/theme-builder/classes/locations-manager.php(315): ElementorPro\Modules\Woocommerce\Documents\Product->print_content()
    
    24 /wp-content/plugins/elementor-pro/modules/theme-builder/classes/locations-manager.php(191): ElementorPro\Modules\ThemeBuilder\Classes\Locations_Manager->do_location('single')
    
    25 [internal function]: ElementorPro\Modules\ThemeBuilder\Classes\Locations_Manager->ElementorPro\Modules\ThemeBuilder\Classes{closure}()
    
    26 /wp-content/plugins/elementor/modules/page-templates/module.php(207): call_user_func(Object(Closure))
    
    27 /wp-content/plugins/elementor/modules/page-templates/templates/header-footer.php(19): Elementor\Modules\PageTemplates\Module->print_content()
    
    28 /wp-includes/template-loader.php(106): include('/customers/a/b/…')
    
    29 /wp-blog-header.php(19): require_once('/customers/a/b/…')
    
    30 /index.php(17): require('/customers/a/b/…')
    
    31 {main}
    
    thrown i /wp-includes/formatting.php on row 4379
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Rank Math Support

    (@rankmathteam)

    Hello @atomonelone,

    Thank you for contacting support.

    Could you please share a screenshot of the settings you have in the breadcrumbs section from our plugin under WordPress Dashboard > Rank Math > General Settings > Breadcrumbs?

    Looking forward to hearing back from you.

    Thread Starter atomonelone

    (@atomonelone)

    These are the Breadcrumb settings.

    All products in the “Uncategorized” category is broken and wont display. So the problem has something to do with that since all other products are fine.

    Plugin Support Rank Math Support

    (@rankmathteam)

    Hello @atomonelone,

    Do you have the URLs of the product categories with any prefix like “product-category”? We ask this because if you don’t, the slugs for the product category called “Uncategorized” and the same category for posts would likely be the same and could cause a conflict here.

    Hope this helps solve your issues.

    Don’t hesitate to get in touch if you have any other questions.

    Thread Starter atomonelone

    (@atomonelone)

    Hi!

    Thanks for the reply.

    Yes I do have a prefix. my product categories are structured like this /product-category/category/ so it’s definetly not a conflict.

    Plugin Support Rank Math Support

    (@rankmathteam)

    Hello @atomonelone,

    Please share the URL of the affected category so we can check and assist you further.

    Looking forward to helping you.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Critical Uncaught TypError: ltrim’ is closed to new replies.