500 error after installing October CMS, hosting TimeWeb. It seems to me that htaccess should be changed, but tips that I found did not help.

Update

Error_log

 [error] PHP Parse error: syntax error, unexpected '[' in /home/k/*****/*****/public_html/vendor/laravel/framework/src/Illuminate/Foundation/helpers.php on line 50 

Code

 function app($make = null, $parameters = []) { if (is_null($make)) return Container::getInstance(); return Container::getInstance()->make($make, $parameters); } 
  • Look at the error in error_log and, if you don’t figure it out, add this information to the question - tutankhamun
  • Worth PHP 5.4, without this, the installation would not have passed. - Kirill
  • Show the output of a file with the following contents: <?php echo phpversion(); - tutankhamun
  • Thank you so much. Indeed, the hoster in the control panel said one thing, but in fact gave out the old version. - Kirill
  • If you are given an exhaustive answer, mark it as correct (a daw opposite the selected answer). - Nicolas Chabanovsky

1 answer 1

Most likely the version of PHP is too old. Literals [] have appeared since PHP 5.4. Contact technical support timeweb to find out the version of PHP and ask to update or change the host.

By the way, it directly states that you need PHP> = 5.4. This is from the category of "this does not happen." In the line you cited, only in one place are square brackets and I see no reason for complaints to them. But in the synthetic test, which I spent on version 5.3, this is exactly the same error.


Reply from comments by @tutankhamun .