• Hi,
    I tried to make a change to the functions.php via editor but I got a very strange parse error. Then I tried to restore the previous code , either by copying from an original file, but the error persist and I can not access any other items in the wp menu. How can I restore the initial theme?
    Thanks,
    Andrea

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter ndreva

    (@ndreva)

    Parse error: syntax error, unexpected ‘<‘ in /web/htdocs/www.lucaadamophoto.com/home/wp-content/themes/twentysixteen/functions.php on line 426

    That’s the error (moreover i have less then 426 lines in my code).

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Pardon me for rubbing salt in the wound, but NEVER EVER edit php code through appearance->editor. If you make a mistake, you blow up your site. Download the file via FTP, make a pre-edit copy, edit, upload. If you blow it up, either fix or replace with the pre-edit copy.

    Also, if you wanted to edit twentysixteen, you should have created a child-theme because the next time twentysixteen is updated, all your changes will be blown away.

    So, what do you do now? Since it seems you may not have correctly repaired the edited file, it’s time to start over.

    Get a clean copy of twentysixteen from https://ww.wp.xz.cn/themes/twentysixteen/, unzip it, and upload it via FTP over what’s already in wp-content/themes/twentysixteen.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Editor Error’ is closed to new replies.