WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Parse error: syntax error, unexpected '=', expecting ')' in /home/content/a/u/g (22 posts)

  1. kristygardner
    Member
    Posted 11 months ago #

    Oh dear.

    Please help me - I was changing some code in the functions.php file and suddenly am getting this error on my blog. SO super stressed out! I can't even get into my blog now. Any help is very much appreciated!!!! Holy panic attack batman!

    Thank you,

    URL: http://www.jillhough.com/

    Parse error: syntax error, unexpected '=', expecting ')' in /home/content/a/u/g/auggiehough/html/jillhough.com/wp-content/themes/suffusion/functions.php on line 1348

  2. WPyogi
    Volunteer Moderator
    Posted 11 months ago #

    You'll need to use FTP to replace that file - download a new copy of the theme first -
    http://wordpress.org/themes/suffusion

    Find the functions file on the server here:

    wp-content
        themes
           suffusion
               functions.php

    You shouldn't be modifying theme files - EXCEPT in a child theme, BTW :).

  3. kristygardner
    Member
    Posted 11 months ago #

    I knew it too. I thought, before I did anything, "you probably shouldn't do this kristy....".. idiot.

    I've tried to log on through ftp but it can't connect. I keep getting a 530 login authentification failed error. Any suggestions?

    p.s. thank you for your quick response!! i really appreciate it.

  4. WPyogi
    Volunteer Moderator
    Posted 11 months ago #

    LOL - don't feel too bad - happens all the time - and your site will be okay :).

    You need to ask your hosting company about FTP questions - the access info isn't the same as your WP login info.

  5. kristygardner
    Member
    Posted 11 months ago #

    i dig it. i'm in via the website now... crossing fingers.. haha

  6. kristygardner
    Member
    Posted 11 months ago #

    Out of curiosity, do I delete the current functions folder and then re-upload it? i don't see functions.php - i only see functions which then lists:

    actions.php
    admin.php
    custom-post-types.php
    etc... all the way down to
    wpml-integration.php

    I've never done this before - be gentle ;)

    Thanks again!

  7. WPyogi
    Volunteer Moderator
    Posted 11 months ago #

    Are you in the suffusion theme folder? There should be a functions.php file in that folder - that's the one that's messed up.

  8. kristygardner
    Member
    Posted 11 months ago #

    I am. Directly under "Suffusion" folder, it's got sub folders called

    Admin
    Custom
    Functions
    Images
    Layouts
    Library
    Now-Reading
    Post-Formats
    Scripts
    Skins
    Translations
    Widgets

    ....the functions folder is there but it isn't called Functions.php - just Functions. But all the files in there are .php files... Would this be the same thing?

  9. kristygardner
    Member
    Posted 11 months ago #

    ps. not sure if this helps, but within the functions folder there are:

    actions.php
    admin.php
    custom-post-types.php
    filters.php
    fonts.php
    framework.php
    magazine-functions.php
    media.php
    shortcodes.php
    template.php
    wpmi-integration.php

  10. WPyogi
    Volunteer Moderator
    Posted 11 months ago #

    I just downloaded the the theme and there is a functions.php file in the suffusion folder. Are you using FTP?

  11. kristygardner
    Member
    Posted 11 months ago #

    I've logged in via my domain hosting/file manager. I couldn't access via FTP. I'm in the file manager now via GoDaddy but don't see a folder labeled functions.php (even though, as you see yourself, there is one in the theme). Hmmm...

    It WAS there before when I was in my blog - as that's what I messed up.

  12. WPyogi
    Volunteer Moderator
    Posted 11 months ago #

    It may be that not all files are visible in the file manager - you might want to get FTP set up -

    http://support.godaddy.com/help/article/96/uploading-files-to-your-website-ftp

  13. kristygardner
    Member
    Posted 11 months ago #

    ah crap. okay. once i do that, will i essentially just delete the old one and then upload the new one?

  14. kristygardner
    Member
    Posted 11 months ago #

    oops! I see now that while on the GoDaddy control panel, I'm using the FTP file manager - so I guess i am using FTP already. Is it possible the functions.php file got deleted somehow with the error?

  15. WPyogi
    Volunteer Moderator
    Posted 11 months ago #

    Are you using an FTP client like FileZilla?

    Alternatively to the above, you could delete the theme folder and then reinstall it via the Dashboard - but if you've modified the theme files, you'll lose those changes.

  16. kristygardner
    Member
    Posted 11 months ago #

    That's the one I use, yup. Just keep getting that darn 530 login authentification failed error... But if I can get in with that info on GoDaddy, not sure why it isn't working via FileZilla.

    I'd happily just delete the theme folder. haha.. but I've got a ton of widgets and CSS I've added. May have to go that route though.

    Either way, I appreciate your fast responses and all your effort - you've kept me from jumping off the roof.

  17. WPyogi
    Volunteer Moderator
    Posted 11 months ago #

    But if I can get in with that info on GoDaddy, not sure why it isn't working via FileZilla.

    You should ask GD about that :).

    Before you delete anything, copy the entire theme folder to your local computer - that way you have a backup copy of it - and that should enable you to replace anything that gets deleted. Theme settings/options should be saved in the database - hopefully you used Custom CSS (like I said modifying theme files isn't a good way to go)!

  18. kristygardner
    Member
    Posted 11 months ago #

    I did - always do custom CSS. I'm such a knob for trying to modify the functions file. I'll do your recommendations and go pour myself a glass of bourbon before doing anything else.

    Thank you again - really, you've helped more than you know.

  19. WPyogi
    Volunteer Moderator
    Posted 11 months ago #

    LOL - you're welcome - you'll be okay with this - just post back if you can't get it resurrected :)!

  20. kristygardner
    Member
    Posted 11 months ago #

    okay, thank you thank you thank you :)

  21. kristygardner
    Member
    Posted 11 months ago #

    HA! The bourbon did it!!

    Evidently, you have to be smarter than the computer - I didn't see the scroll to other pages tabs. As soon as I did, I did exactly as you said and replaced the functions.php file. It's working and perfect!

    Again, thank you so so SO much!!!! Have a great rest of your weekend!

  22. WPyogi
    Volunteer Moderator
    Posted 11 months ago #

    HA! The bourbon did it!!

    Ha Ha! I'll have to try that the next time I'm ready to jump off a roof or throw my computer out the window!

    SO glad to hear it's fixed! You enjoy your weekend too - I'm sure it's just greatly improved :).

Reply

You must log in to post.

About this Topic