Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

osTicket v1.10 (stable) and Maintenance Release v1.9.15 are now available! Go get it now

Fresh install : unexpected T_FUNCTION in .... /include/class.format.php on line 218

Hi Everybody,
I am doing a installation on the latest and greatest version 1.8 . I installed and tested on my localhost ( Ubuntu ) and all went well, and tested out great !!

Now I am trying get the installation done on the Live website but am getting : Parse error: syntax error, unexpected T_FUNCTION in ..... (string to the includes folder) ....../include/class.format.php on line 218 during the ..... /Setup/install.php/ stage

The live website :
PHP Version: 5.2.17 (Zend: 2.2.0) [TABLE="class: wysiwyg_table_wysiwyg_table_wysiwyg_table_"]
[TR="class: wysiwyg_table_wysiwyg_table_wysiwyg_table_cke_show_border"]
[TD="class: wysiwyg_table_wysiwyg_table_wysiwyg_table_e, bgcolor: #CCCCFF"]cURL support[/TD]
[TD="class: wysiwyg_table_wysiwyg_table_wysiwyg_table_v, bgcolor: #CCCCCC"]enabled[/TD]
[/TR]
[/TABLE]
It also has a "https" certificate

This seems to be the code:

// Make showing offsite images optional
$text = preg_replace_callback('/image]*)(src="http[^"]+")([^>]*)\/>/',
function($match) { ... .... ... .... .... .... ... .... .... ... ... ... .... ... .... ... ... ... ( Line 218 )
// Drop embedded classes -- they don't refer to ours
$match = preg_replace('/class="[^"]*"/', '', $match);
return sprintf('
',
$match[1], $match[2], $match[3]);
},
$text);

if ($inline_images)
return self::viewableImages($text);

return $text;
}


Anybody got any Ideas ??

Andy
This discussion has been closed.