Hey guys I am getting an error on the classified
Fatal error: [] operator not supported for strings in /home/mywebsite/public_html/classifieds/index.php on line 176
so this is the lines in the bb codes
// Strip out BB codes
$find[] = '#\[.*/?\]#siU'; $replace[] = '';
$comcomment = preg_replace($find, $replace, $comcomment);
$cache['comments']['cat'][$numfound] = $thumbcat;
$cache['comments']['comment'][$numfound] = ( strlen($comcomment) > 100 ? substr($comcomment,0,100)."..." : $comcomment );
$filenoext = get_filename( $thumbimg );
$theext = get_ext( $thumbimg );
$image_file_path = "{$Globals['datafull']}/{$thumbcat}/thumbs/{$thumbimg}";
list( $thumbw, $thumbh ) = @getimagesize( $image_file_path );
$cache['comments']['thumblink'][$numfound] = get_imagethumb( $thumbimg, $thumbcat, $thumbuid, 1, 0, 1, $thumbw, $thumbh );
if ( $Globals['spider'] == "yes" ) $cache['comments']['link'][$numfound] = "{$Globals['maindir']}/showproduct.php/product/{$cache['comments']['lcphoto'][$numfound]}/cat/{$cache['comments']['cat'][$numfound]}";
else $cache['comments']['link'][$numfound] = "{$Globals['maindir']}/showproduct.php?product={$cache['comments']['lcphoto'][$numfound]}&cat={$cache['comments']['cat'][$numfound]}";
$numfound++;
if ( $numfound == $Globals['numcompal'] ) break;
}
}
if ( $Globals['ratingspal'] == "yes" ) {
WhenI remove line 176 it showes my site and the products loaded in it but I get more errors.
Is there something wrong with this?
I have the classifieds 2.5 and 3.6.1
VB last week it worked no problem and now it is giving me these errors.