Site logo

Archived topic

Top of each page says Warning: ltrim() expects parameter 1 to be string, array g

6 replies · Started by Hugo on October 8, 2021

Viewing posts 1–7 of 7

Hi there at the top of my pages. Warning: ltrim() expects parameter 1 to be string, array given in.
If you checked the listed page below you'll see this error message.

Not sure how to go about fixing this?

Thanks.

Hi there,

i can't see the code on the URL you provided. Did you resolve the issue?

Yes I resolved the issue, thanks David.

Glad to hear that!

Thanks.

I'm getting this too. What was the answer?

Query Monitor tells me its GP-Premium plugin. Looks to be associated with an Advanced Custom Field loading though an Element...

wp-includes/formatting.php:4357
ltrim()
wp-includes/formatting.php:4357
esc_url()
wp-content/plugins/gp-premium/elements/class-block-elements.php:670
GeneratePress_Block_Elements->add_dynamic_link()
wp-content/plugins/gp-premium/elements/class-block-elements.php:990
GeneratePress_Block_Elements->render_blocks()
wp-includes/class-wp-hook.php:309
apply_filters('render_block')
wp-includes/class-wp-block.php:284
WP_Block->render()
wp-includes/class-wp-block.php:241
WP_Block->render()
wp-includes/class-wp-block.php:241
WP_Block->render()
wp-includes/class-wp-block.php:241
WP_Block->render()
wp-includes/class-wp-block.php:241
WP_Block->render()
wp-includes/blocks.php:883
render_block()
wp-includes/blocks.php:921
do_blocks()
wp-content/plugins/gp-premium/elements/class-elements-helper.php:151
GeneratePress_Elements_Helper::build_content()
wp-content/plugins/gp-premium/elements/class-block.php:404
GeneratePress_Block_Element->build_hook()
wp-includes/class-wp-hook.php:307
do_action('generate_inside_site_container')
wp-content/themes/generatepress/header.php:66
load_template('wp-content/themes/generatepress/header.php')
wp-includes/template.php:716
locate_template()
wp-includes/general-template.php:48
get_header()
wp-content/themes/generatepress/archive.php:12

This archived topic is closed to new replies.