WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. Milfrid
    Member
    Posted 10 months ago #

    How to fix this site?
    http://www.mh-design.no

  2. WPyogi
    Volunteer Moderator
    Posted 10 months 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:

    http://wordpress.org/themes/customizr

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

    wp-themes
       customizr
            parts
                class-main-footer.php - REPLACE THIS FILE
  3. lettergrade
    Member
    Posted 10 months 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!

Reply

You must log in to post.

About this Topic

Tags