I was working on another PHP version. But when i upload the site to client server due to Different PHP version i am getting these errors
Warning: Illegal string offset 'name' in /homepages/3/d227794433/htdocs/flyefg/wp-content/plugins/gameplan-shortcodes/shortcodes/testimonial.php on line 53
Warning: Illegal string offset 'position' in /homepages/3/d227794433/htdocs/flyefg/wp-content/plugins/gameplan-shortcodes/shortcodes/testimonial.php on line 53
Warning: Illegal string offset 'company' in /homepages/3/d227794433/htdocs/flyefg/wp-content/plugins/gameplan-shortcodes/shortcodes/testimonial.php on line 53
Warning: Illegal string offset 'name' in /homepages/3/d227794433/htdocs/flyefg/wp-content/plugins/gameplan-shortcodes/shortcodes/testimonial.php on line 53
Warning: Illegal string offset 'position' in /homepages/3/d227794433/htdocs/flyefg/wp-content/plugins/gameplan-shortcodes/shortcodes/testimonial.php on line 53
Warning: Illegal string offset 'company' in /homepages/3/d227794433/htdocs/flyefg/wp-content/plugins/gameplan-shortcodes/shortcodes/testimonial.php on line 53
Warning: Illegal string offset 'name' in /homepages/3/d227794433/htdocs/flyefg/wp-content/plugins/gameplan-shortcodes/shortcodes/testimonial.php on line 53
Warning: Illegal string offset 'position' in /homepages/3/d227794433/htdocs/flyefg/wp-content/plugins/gameplan-shortcodes/shortcodes/testimonial.php on line 53
Warning: Illegal string offset 'company' in /homepages/3/d227794433/htdocs/flyefg/wp-content/plugins/gameplan-shortcodes/shortcodes/testimonial.php on line 53
Code on Line 53 is
$output .= '<div class="name">'.$atts['name'].($atts['position']?', '.$atts['position']:'').($atts['company']?' - '.$atts['company']:'').'</div>';
Whole code is (Line 35-62)
function parse_testimonial_item($atts, $content, $id){
$position = isset($atts['position']) ? $atts['position'] : '';
$name = isset($atts['name']) ? $atts['name'] : '';
$company = isset($atts['company']) ? $atts['company'] : '';
wp_enqueue_script( 'jquery-isotope');
global $testimonial_slides;
$output = '';
if($testimonial_slides > 1){
if(function_exists( 'head_slide' )){
$output .= head_slide($testimonial_slides, '', '', array('page'=>true));
}
}
$output .= '<div class="testimonial style-1">';
$output .= '<div class="tt-content icon-quote-right">';
$output .= strip_tags($content);
$output .= '<div class="tt-tooltip"><!----></div>';
$output .= '</div>';
$output .= '<div class="name">'.$atts['name'].($atts['position']?', '.$atts['position']:'').($atts['company']?' - '.$atts['company']:'').'</div>';
$output .= '</div>';
if($testimonial_slides > 1){
if(function_exists( 'footer_slide' )){
$output .= footer_slide(array('page'=>true));
}
}
return $output;
}
Thank you