WordPress.org

Forums

[resolved] Parse error: syntax error, unexpected.....on line 160 (3 posts)

  1. orlandoderal
    Member
    Posted 2 years ago #

    I need help. I don't know if I have to start all over. I was working on my site and I put something in the wrong place and now I cannot open it at all. Please help me.

    This is the message I get when I try to open my site:

    Parse error: syntax error, unexpected '[' in /home/content/22/9545122/html/orlandoderalstudio/wp-content/themes/hairpress-wp/hairpress/includes/post-types.php on line 160

  2. Pioneer Valley Web Design
    Member
    Posted 2 years ago #

    Using an FTP tool such as FileZilla or your host provided File Manager, rename the file

    // /wp-content/themes/hairpress-wp/hairpress/includes/post-types.php

    to old-post-types.php

    Then upload an unedited version from the downloaded theme's version in use.

    You could also just download that file and correct the error, then upload, but keep an unedited version just in case.

  3. orlandoderal
    Member
    Posted 2 years ago #

    Thank you so much!!!!!

Topic Closed

This topic has been closed to new replies.

About this Topic