PHP 8.1 error ltrim()
-
Hi,
since my update to PHP 8.1, I am getting this error in my log:
ltrim(): Passing null to parameter #1 ($string) of type string is deprecatedAccording to Query Monitor, this is coming from Premium Addons. Here is the full stacktrace:
wp-includes/formatting.php:4494
ltrim()
wp-includes/formatting.php:4494
esc_url()
wp-content/plugins/premium-addons-for-elementor/includes/class-premium-template-tags.php:815
PremiumAddons\Includes\Premium_Template_Tags->get_post_thumbnail()
wp-content/plugins/premium-addons-for-elementor/includes/class-premium-template-tags.php:1068
PremiumAddons\Includes\Premium_Template_Tags->get_post_layout()
wp-content/plugins/premium-addons-for-elementor/includes/class-premium-template-tags.php:1170
PremiumAddons\Includes\Premium_Template_Tags->render_posts()
wp-content/plugins/premium-addons-for-elementor/widgets/premium-blog.php:3181
PremiumAddons\Widgets\Premium_Blog->render()
wp-content/plugins/elementor/includes/base/controls-stack.php:2265
Elementor\Controls_Stack->render_by_mode()
wp-content/plugins/elementor/includes/base/widget-base.php:609
Elementor\Widget_Base->render_content()
wp-content/plugins/elementor/includes/base/widget-base.php:750
Elementor\Widget_Base->print_content()
wp-content/plugins/elementor/includes/base/element-base.php:464
Elementor\Element_Base->print_element()
wp-content/plugins/elementor/includes/base/element-base.php:1375
Elementor\Element_Base->print_content()
wp-content/plugins/elementor/includes/base/element-base.php:464
Elementor\Element_Base->print_element()
wp-content/plugins/elementor/includes/base/element-base.php:1375
Elementor\Element_Base->print_content()
wp-content/plugins/elementor/includes/base/element-base.php:464
Elementor\Element_Base->print_element()
wp-content/plugins/elementor/includes/base/element-base.php:1375
Elementor\Element_Base->print_content()
wp-content/plugins/elementor/includes/base/element-base.php:464
Elementor\Element_Base->print_element()
wp-content/plugins/elementor/includes/base/element-base.php:1375
Elementor\Element_Base->print_content()
wp-content/plugins/elementor/includes/base/element-base.php:464
Elementor\Element_Base->print_element()
wp-content/plugins/elementor/core/base/document.php:1739
Elementor\C\B\Document->print_elements()
wp-content/plugins/elementor/core/base/document.php:1134
Elementor\C\B\Document->print_elements_with_wrapper()
wp-content/plugins/elementor/includes/frontend.php:1179
Elementor\Frontend->get_builder_content()
wp-content/plugins/elementor-pro/modules/posts/skins/skin-content-base.php:265
ElementorPro\M\T\W\Post_Content->render_post_content()
wp-content/plugins/elementor-pro/modules/theme-builder/widgets/post-content.php:111
ElementorPro\M\T\W\Post_Content->render()
wp-content/plugins/elementor/includes/base/controls-stack.php:2265
Elementor\Controls_Stack->render_by_mode()
wp-content/plugins/elementor/includes/base/widget-base.php:609
Elementor\Widget_Base->render_content()
wp-content/plugins/elementor/includes/base/widget-base.php:750
Elementor\Widget_Base->print_content()
wp-content/plugins/elementor/includes/base/element-base.php:464
Elementor\Element_Base->print_element()
wp-content/plugins/elementor/includes/base/element-base.php:1375
Elementor\Element_Base->print_content()
wp-content/plugins/elementor/includes/base/element-base.php:464
Elementor\Element_Base->print_element()
wp-content/plugins/elementor/includes/base/element-base.php:1375
Elementor\Element_Base->print_content()
wp-content/plugins/elementor/includes/base/element-base.php:464
Elementor\Element_Base->print_element()
wp-content/plugins/elementor/core/base/document.php:1739
Elementor\C\B\Document->print_elements()
wp-content/plugins/elementor-pro/modules/theme-builder/documents/theme-document.php:418
ElementorPro\M\T\D\Theme_Document->print_elements_with_wrapper()
wp-content/plugins/elementor/includes/frontend.php:1179
Elementor\Frontend->get_builder_content()
wp-content/plugins/elementor/core/base/document.php:1183
Elementor\C\B\Document->get_content()
wp-content/plugins/elementor/modules/library/documents/library-document.php:76
Elementor\M\L\D\Library_Document->get_content()
wp-content/plugins/elementor-pro/modules/theme-builder/documents/theme-document.php:158
ElementorPro\M\T\D\Theme_Document->get_content()
wp-content/plugins/elementor-pro/modules/theme-builder/documents/theme-document.php:173
ElementorPro\M\T\D\Theme_Document->print_content()
wp-content/plugins/elementor-pro/modules/theme-builder/documents/single-base.php:93
ElementorPro\M\T\D\Single_Base->print_content()
wp-content/plugins/elementor-pro/modules/theme-builder/classes/locations-manager.php:364
ElementorPro\M\T\C\Locations_Manager->do_location()
wp-content/plugins/elementor-pro/modules/theme-builder/api.php:13
elementor_theme_do_location()
wp-content/themes/hello-elementor/index.php:20Can you please look into this? Thanks!
Best regards,
Christoph
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
The topic ‘PHP 8.1 error ltrim()’ is closed to new replies.