• Resolved rlabbe

    (@rlabbe)


    Hello,

    I made a small change to the theme_styles_Scripts.php file, and ever since then the entire site has crashed and all I can see is this error:
    Parse error: syntax error, unexpected ‘{‘ in /homepages/17/d177937787/htdocs/clickandbuilds/CMS0/wp-content/themes/alaska/core/theme_styles_scripts.php on line 718

    I am locked out of editing anything at this point and I have no idea how to fix this. Please help!!

    Thanks!
    Roxanne

    • This topic was modified 8 years, 7 months ago by Jan Dembowski.
    • This topic was modified 8 years, 7 months ago by Jan Dembowski. Reason: Moved to Fixing WordPress as this is not a Developing with WordPress topic
    • This topic was modified 8 years, 7 months ago by Jan Dembowski.

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Moderator t-p

    (@t-p)

    Your “alaska” theme seems to be the error.

    To confirm, try switching to the unedited default Theme (Twenty Seventeen.) using FTP/ SFTP , or your web-host’s cPanel or whatever file management application your host provides (no Dashboard access required). Navigate to /wp-content/themes/ and switch to the default theme by renaming your current theme’s folder by adding “-old” to the end of the folder name. Alternately, you can remove other themes except the default theme (Twenty Sixteen.). That will force your site to use it.

    Moderator bcworkz

    (@bcworkz)

    t-p’s advice is spot on for getting your site functional again. If you know exactly what you did wrong, download the problem file via FTP etc., correct the error, then upload the corrected version. Or simply upload the original version of the file if you have that available.

    You’ve experienced first hand why you shouldn’t use the theme editor to make changes to the current theme. We advise that everyone make edits through the FTP download/upload cycle, keeping error free backup versions available should they be needed. It’s not as convenient, but far safer.

    Thread Starter rlabbe

    (@rlabbe)

    Thank you, that worked! The issue has been resolved.

    Moderator t-p

    (@t-p)

    Glad to know it 🙂

    .
    1 my.bluehost
    https://my.bluehost.com/cgi/home

    2 hosting
    home
    -file
    File Manager
    https://my.bluehost.com/cgi/home
    .
    file manager settings
    Select the directory you wish to open
    Directory Selection
    .
    Home Directory
    Web Root
    Document Root for
    [chonsamun.com]
    Preferences
    .
    Show hidden files
    submit
    .
    3 Document Root
    [submit]
    .
    4 cPanel File Manager v3
    .
    File Manager
    การตั้งค่า
    .
    Reminder: The Terms of Service does not allow inappropriate use of our network for online storage. Please see “UNLIMITED” USAGE POLICIES AND DEFINITIONS for more information. Files uploaded in connection with your hosted site are always welcome. For approved online backup services please visit the Partners section of cPanel.
    .
    public_html
    .
    public_html/samunton
    samunton
    cgi-bin
    wp-admin
    wp-content
    wp-includes
    .
    wp-content
    themes
    .
    twentyeleven
    twentyeleven-old
    .

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

The topic ‘Error message on my site’ is closed to new replies.