Archived topic
Parse error: syntax error, unexpected 'var' (T_VAR)
3 replies · Started by Muhammad on January 9, 2019
One of my pages is showing error 500. I went to check with my hosting company and I was told that there was an issue with the theme.
Now my page is indicating "Parse error: syntax error, unexpected 'var' (T_VAR) in /home/lovingfr/public_html/wp-content/themes/generatepress/page.php"
How do I fix this?
Hi there,
Can you try #1 here to eliminate any plugin conflicts first?
https://docs.generatepress.com/article/debugging-tips/
Let me know :)
Hey Leo, I've checked everything based on the link you gave me. I've concluded that the error is within generate press.
Can you guide me on how to fix this?
My hosting told me that it's got something to do with /home/lovingfr/public_html/wp-content/themes/generatepress/page.php on line 65
Hi there,
There is no line 65 in page.php: https://github.com/tomusborne/generatepress/blob/2.2.1/page.php#L64
It's possible that the file has been modified? You can try replacing it with the file I just linked to.