How to fix syntax error -website is broken (3 posts)

  1. Milfrid
    Posted 2 years ago #

    How to fix this site?

  2. WPyogi
    Forum Moderator
    Posted 2 years ago #

    Looks like you modified theme files? You should only do that in a child theme - to fix the current error, you'll need to first download a new copy of the theme here:


    Then using FTP (or Cpanel), find the file that's messed up and replace it with a new copy from the above download:

                class-main-footer.php - REPLACE THIS FILE
  3. lettergrade
    Posted 2 years ago #

    Hard to tell without more information. The error implies a code syntax error has been introduced around line 79 of class-main-footer.php in your theme files. Could you:

    a) describe any changes you made before this happened?

    b) copy and paste a small portion of the code in class-main-footer.php of your theme, around the line 79 mark?

    We'll see what we can do!

    If you want to take a look yourself, you can download a fresh copy of the customizr theme, open the unedited version of class-main-footer.php and compare the two to see what changed.

    I also encourage you to create a child theme to make changes, rather than altering the original theme files. It's much safer, and will maintain your changes even if the original theme updates!

Topic Closed

This topic has been closed to new replies.

About this Topic