Closed pinalgirkar closed 10 months ago
Hii,
@nicolaasuni any updates regarding this??
The latest version of TCExam requires at least PHP 8.0.
The following page shows the PHP supported versions. https://www.php.net/supported-versions.php
PHP 8.0 has just reached EOL, so I recommend at least PHP 8.1.
Describe the bug I was manually installing TCExam 16.1.0 on a CentOS 7 server with server configuration Apache 2.2, PHP 5.5, and MySQL 5.5. However after complete installation when I visit the URL [[http://example.com/tcexam160/public/code/index.php]] then It gives the internal server error. So, I checked in the apache error logs and this is the error msg
PHP Parse error: syntax error, unexpected '{' in {{PATH_TO_DIRECTORY}}/shared/code/tce_functions_errmsg.php on line 70, referer: http://example.com/tcexam_160/install/install.php
This error is thrown as in this file tce_functions_errmsg.php match statement has been used which is introduced in PHP 8.0. Does the PHP version has been changed to PHP 8.0??
To Reproduce Steps to reproduce the behavior:
Expected behavior The login page should load
Logs Apache error logs PHP Parse error: syntax error, unexpected '{' in {{PATH_TO_DIRECTORY}}/shared/code/tce_functions_errmsg.php on line 70, referer: http://example.com/tcexam_160/install/install.php
Environment:
Additional context Please change the document if that's the only issue.