HomePage Forums Themeforest Organey – Organic Food WooCommerce WordPress Theme Error When Updating Functions.php

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #9306
    Avatarsocraticsolutions
    Support Expired

    When I try to modify functions.php of the child theme, I get the following error, even when I haven’t actually made any changes – any idea why? Here’s the message:

    Your PHP code changes were rolled back due to an error on line 4379 of file wp-includes/formatting.php. Please fix and try saving again.

    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()
    #1 wp-content/themes/organey/includes/elementor/widgets/product-category.php(302): esc_url()
    #2 wp-content/plugins/elementor/includes/base/controls-stack.php(2268): Organey_Elementor_Products_Categories->render()
    #3 wp-content/plugins/elementor/includes/base/widget-base.php(609): Elementor\Controls_Stack->render_by_mode()
    #4 wp-content/plugins/elementor/includes/base/widget-base.php(750): Elementor\Widget_Base->render_content()
    #5 wp-content/plugins/elementor/includes/base/element-base.php(449): Elementor\Widget_Base->print_content()
    #6 wp-content/plugins/elementor/includes/base/element-base.php(1354): Elementor\Element_Base->print_element()
    #7 wp-content/plugins/elementor/includes/base/element-base.php(449): Elementor\Element_Base->print_content()
    #8 wp-content/plugins/elementor/includes/base/element-base.php(1354): Elementor\Element_Base->print_element()
    #9 wp-content/plugins/elementor/includes/base/element-base.php(449): Elementor\Element_Base->print_content()
    #10 wp-content/plugins/elementor/core/base/document.php(1669): Elementor\Element_Base->print_element()
    #11 wp-content/plugins/elementor/core/base/document.php(1095): Elementor\Core\Base\Document->print_elements()
    #12 wp-content/plugins/elementor/includes/frontend.php(1179): Elementor\Core\Base\Document->print_elements_with_wrapper()
    #13 wp-content/plugins/elementor/includes/frontend.php(1074): Elementor\Frontend->get_builder_content()
    #14 wp-includes/class-wp-hook.php(308): Elementor\Frontend->apply_builder_in_content()
    #15 wp-includes/plugin.php(205): WP_Hook->apply_filters()
    #16 wp-includes/post-template.php(255): apply_filters()
    #17 wp-content/plugins/elementor/modules/page-templates/module.php(190): the_content()
    #18 [internal function]: Elementor\Modules\PageTemplates\Module->print_callback()
    #19 wp-content/plugins/elementor/modules/page-templates/module.php(207): call_user_func()
    #20 wp-content/plugins/elementor/modules/page-templates/templates/header-footer.php(19): Elementor\Modules\PageTemplates\Module->print_content()
    #21 wp-includes/template-loader.php(106): include(‘/home/722614.cl…’)
    #22 wp-blog-header.php(19): require_once(‘/home/722614.cl…’)
    #23 index.php(17): require(‘/home/722614.cl…’)
    #24 {main}
    thrown

    #9317

    Hello,

    I fixed this issue, please recheck your site.

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

You must be logged in to reply to this topic.