0

I try to host in ovh and I have this error:

Parse error: syntax error, unexpected T_CLASS, expecting T_STRING or T_VARIABLE or '$' in /home/plandetrw/pavegalet/public/index.php on line 49

I think it's error php but I don't know how I can change php version because when I go in 'hosting plan ' and after in domain in configuration don't have for change php version because my client have multisite (few websites). How I can resolve this error? My version php it's 7.3 in my project.

When it's in local I don't have an error, only when I host. How I can resolve this?

halfer
  • 19,824
  • 17
  • 99
  • 186
jevaf73
  • 13
  • 1
  • 6
  • We would need to see the code in `index.php` in order to help. Basically, you have invalid PHP in there. If you can run/test it locally, that might help you too - while you can develop on a remote host, it is easier/faster to do it locally. – halfer Oct 16 '20 at 18:37
  • @halfer in local it's worked – jevaf73 Oct 16 '20 at 18:42
  • Possibly OVH is running with the wrong version of PHP - do a `` remotely and see if you get what you expect. – halfer Oct 16 '20 at 18:43

0 Answers0