The code where the error occurs is:
$css .= 'height:'.$gallery_height.'px;';
$css = '';
if($gallery_height){
$css .= $addon_id .' .sppb-gallery-parallax:after {';
$css .= 'height:'.$gallery_height.'px;';
$css .= '}';
$css .= '@media (min-width: 768px) and (max-width: 991px) {';
$css .= $addon_id .' .sppb-gallery-parallax:after {';
$css .= 'height:'.$gallery_height_sm.'px;';
$css .= '}';
$css .= '}';
$css .= '@media (max-width: 767px) {';
$css .= $addon_id .' .sppb-gallery-parallax:after {';
$css .= 'height:'.$gallery_height_xs.'px;';
$css .= '}';
$css .= '}';
}
return $css;
var_export()
all of the variables in your script? I don't know which of those variables is the object.