[Support request] Parse error: syntax error, unexpected 'var' (T_VAR)

Home Forums Support [Support request] Parse error: syntax error, unexpected 'var' (T_VAR)

Home Forums Support Parse error: syntax error, unexpected 'var' (T_VAR)

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #777645
    Muhammad

    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?

    #777714
    Leo
    Staff
    Customer Support

    Hi there,

    Can you try #1 here to eliminate any plugin conflicts first?
    https://docs.generatepress.com/article/debugging-tips/

    Let me know 🙂

    #777813
    Muhammad

    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

    #777833
    Tom
    Lead Developer
    Lead Developer

    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.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.