Skip to main content
Topic: Erros when upload to server. (Read 1966 times) previous topic - next topic

Erros when upload to server.

My site works perfectly in localhost, but when I upload to a online server, this show:

Code: [Select]
Parse error: syntax error, unexpected ')', expecting T_PAAMAYIM_NEKUDOTAYIM in /public_html/index.php on line 17

index.php line 17:
Code: [Select]
if(!empty(DEFAULT_TIMEZONE)){
date_default_timezone_set(DEFAULT_TIMEZONE);
}
I fix the first error commenting the line, like this:
Code: [Select]
/*if(!empty(DEFAULT_TIMEZONE)){
date_default_timezone_set(DEFAULT_TIMEZONE);
}*/

But after fix it, a new error is displayed:
Code: [Select]
Parse error: syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM in /public_html/index.php on line 82

Index.php line 82:
Code: [Select]
$csrf_token = $csrf :: $token; 

How to solve this? Thank's.



Re: Erros when upload to server.

Reply #2
This is issue with the PHP version. Please make sure you are using PHP 5.5 and above. Better with PHP7