Why the server gives a 500 error?


Warning: count(): Parameter must be an array or an object that implements Countable in /home/styllloz/public_html/qa-theme/donut-theme/qa-donut-layer.php on line 274
0 like 0 dislike
12 views
Hello!

With composer installed laravel on your server. If you try to go on / the server gives a 500 error. Here are the latest logs:

[Fri May 04 16:04:44.016150 2018] [:error] [pid 42611] [client ###:162.1:16272] PHP Parse error: syntax error, unexpected '?' in /var/www/shop-l/vendor/symfony/http-foundation/Response.php on line 491


Here's the code on line 491 Response.php:

public function getCharset(): ?string
Please tell me what could be wrong
by | 12 views

1 Answer

0 like 0 dislike
Well, the discussion found that after installing php latest version of apache has not been configured to use it.
by

Related questions

0 like 0 dislike
4 answers
0 like 0 dislike
7 answers
asked Mar 24, 2019 by EVEN
0 like 0 dislike
1 answer
0 like 0 dislike
3 answers
110,608 questions
257,187 answers
0 comments
40,796 users