bcit-ci / CodeIgniter

Open Source PHP Framework (originally from EllisLab)
https://codeigniter.com/
MIT License
18.27k stars 7.61k forks source link

syntax error, unexpected '_592_000' (T_STRING), expecting ',' or ')' in #6138

Closed CorruptKubCzh closed 2 years ago

CorruptKubCzh commented 2 years ago

在 centos 7 中出现了 yntax error, unexpected '_592_000' (T_STRING), expecting ',' or ')' in /var/www/html/ 这个错误

darkterminal commented 2 years ago

can you give the complete error?

CorruptKubCzh commented 2 years ago

我只在我的error_log 看到了这个错误 [php7:error] [pid 15453] [client 87.200.19.209:53654] PHP Parse error: syntax error, unexpected '_592_000' (T_STRING), expecting ',' or ')' in /var/www/html/telegram-bot/app/Config/Constants.php on line 41

,浏览器上是 下图这样的 image

darkterminal commented 2 years ago

Which version CodeIgniter you used? I think you in wrong thread, in CodeIgniter3 using application folder and CodeIgniter4 using app. Or try visit this link for more info Codeigniter blank page and error 500 in apache log?

kenjis commented 2 years ago

It seems you are using CI4 and your PHP version is too old. Use PHP 7.4 or later.