Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

dru's avatar
Level 3

getting error 500 after recently installing laravel in shared host and have php 7.3

it is laravel 6.2 and recently installed it to a shared host and I'm getting the error:

Syntax error, unexpected '?' in illuminate/Foundation/helpers.php on line 500.

I also have php 7.3 so I'm not sure what might be going on. I doubt it could be the env file because it is trying to load the default welcome screen of laravel.

0 likes
2 replies
fylzero's avatar
fylzero
Best Answer
Level 67

Turn on debug temporarily in your prod env and refresh the page to see what is erring.

1 like
dru's avatar
Level 3

oops, didn't notice that since I uploaded the stuff with git, it didn't include the env file. that was the problem :(

Please or to participate in this conversation.