How to debug the PHP error "Parse error: syntax error, unexpected T_CLASS"

37 Views Asked by At

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?

0

There are 0 best solutions below