Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #26324

    Hi Guys,

    Im getting this error on the top above my slideshows in the portfolio section:

    Warning: trim() expects parameter 1 to be string, array given in /home/gekkosho/public_html/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/slideshow.php on line 443

    #130021

    Please try following fix – open up wp-contentthemesenfoldconfig-templatebuilderavia-shortcodesslideshow.php and replace

    if(trim($content) != "") $content 	= "<div class='avia-caption-content'>".wpautop(ShortcodeHelper::avia_remove_autop(trim($content)))."</div>";

    with

    if(!is_string($content)) $content = (string)$content;
    if(trim($content) != "") $content = "<div class='avia-caption-content'>".wpautop(ShortcodeHelper::avia_remove_autop(trim($content)))."</div>";

    #130022

    This worked, thank you!

    #130023

    Hi!

    Great – maybe this thread will help you too: https://kriesi.at/support/topic/warning-message-2

    Best regards,

    Peter

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Warning: trim() expects parameter ERROR MESSAGE’ is closed to new replies.