“Warning: trim() expects parameter 1 to be string, array given in /###/####/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/slideshow.php on line 442”
What is the Problem?
Thankyou
Markus Lissner
Do you use the “avf_slideshow_title” filter to change the title somehow? If yes please make sure that the return value is a string and not an array.
If not open up wp-contentthemesenfoldconfig-templatebuilderavia-shortcodesslideshow.php and try to replace
if(trim($title) != "") $title = "<h2 class='avia-caption-title'>".trim(apply_filters('avf_slideshow_title', $title))."</h2>";
with
if(trim($title) != "" && is_string($title)) $title = "<h2 class='avia-caption-title'>".trim(apply_filters('avf_slideshow_title', $title))."</h2>";
if(trim($title) != "" && is_array($title)) $title = "<h2 class='avia-caption-title'>".implode(",", apply_filters('avf_slideshow_title', $title))."</h2>";
I checked the Slidshow:
One picture had as Caption Text:
[av_slide_full id='84' title='' caption_pos='caption_bottom' link='' link_target='']
I dont know why
Now it works fine
Thank you very much – the best Support ever
Markus Lissner
Glad Peter could help :)
Let us know if you have any other questions or issues.
Regards,
Devin