WordPress.org

Ready to get started?Download WordPress

Forums

Changed functions.php and now can't log in or make any changes (20 posts)

  1. Lynne_Mullen
    Member
    Posted 7 months ago #

    Hi everyone,

    I just started using WordPress last week, and have been slowly building my website.
    I'm using the Catch Everest Theme and since it didn't have a way to add menus to the footer, I consulted a website that walked me through how to do it.

    The first step was to add something to the functions.php page, which I did, but then got the dreaded "Server Error". I went back and deleted the code I added, but still get the error. I even found the exact original code for the functions.php page via Google, copies and pasted it, and still nothing. I can't log in, can't make any changes to anything at all! I'm just stuck in the functions.php page with no clue as to what I did wrong.

    Can anyone help? My website is arcturusastrology.com, if that helps.

    Cheers,

    Lynne

  2. jimmythet
    Member
    Posted 7 months ago #

    Did you make a backup of functions.php before editing it? If so, did you restore it that way, or did you copy and paste?

  3. Lynne_Mullen
    Member
    Posted 7 months ago #

    Unfortunately, I was dumb and didn't do that. I just deleted the original code, and then copied and pasted what remained into Google and found the exact same code. I copied and pasted the entire code from that site, but nada.

  4. jimmythet
    Member
    Posted 7 months ago #

    Download the theme to your desktop, unzip it and extract the original functions.php then upload it to your server to replace the messed up one.

  5. Lynne_Mullen
    Member
    Posted 7 months ago #

    I downloaded it onto my desktop, and found the functions.php file, but it looks different than the one I had. The original file was pretty short and referenced Retina, but this one didn't at all and was quite long. I made certain that I downloaded the correct theme, so this seems really weird.

    I copied this new function.php file (and copied the shorter code that referenced Retina into a different file just in case). Now I can edit the Menus, but I can no long access the Editor.

  6. jimmythet
    Member
    Posted 7 months ago #

    You sure it's the right functions.php file? There's more than one.

  7. Lynne_Mullen
    Member
    Posted 7 months ago #

    The one I was playing around with when the problem happened was under the heading Retina: Themes and then said "functions.php" in italics underneath it.

    But now it seems moot since I can't even get back into the editor to paste in any different code that I do find. :(

  8. Andrew Nevins
    Spam zapper & Volunteer Moderator
    Posted 7 months ago #

    Do you have FTP access?

  9. Lynne_Mullen
    Member
    Posted 7 months ago #

    I have CyberDuck, but don't have a specific FTP username or password.

  10. Andrew Nevins
    Spam zapper & Volunteer Moderator
    Posted 7 months ago #

    You can contact your hosting providers to get FTP access.

  11. jimmythet
    Member
    Posted 7 months ago #

    I agree - contact your host.

    Do you know who is your host?

  12. Lynne_Mullen
    Member
    Posted 7 months ago #

    Yes, it's FatCow. I'm chatting with someone now about getting the FTP username.

  13. Lynne_Mullen
    Member
    Posted 7 months ago #

    Hi all,

    I'm now able to log in via FTP.

  14. WPyogi
    Volunteer Moderator
    Posted 7 months ago #

    I'd suggest you rename or delete that theme and then reinstall it - you can find the theme here:

    wp-content
        themes
           catch-everest.HOLD (or delete the folder)
  15. Lynne_Mullen
    Member
    Posted 7 months ago #

    I changed the name of the folder as you suggested. Is there something special I need to do to reinstall the theme? I assumed that I needed to go into dashboard to reinstall but I still can't get in.

  16. WPyogi
    Volunteer Moderator
    Posted 7 months ago #

    Try deleting that folder entirely. Also, check whether you have one of the default themes in the themes folder - twentyeleven, twentytwelve or twentythirteen should all be there.

  17. Lynne_Mullen
    Member
    Posted 7 months ago #

    I deleted the folder, and do have all of the default themes that you mentioned. Still can't access anything, though.

  18. WPyogi
    Volunteer Moderator
    Posted 7 months ago #

    Hmm, well, try deactivating your plugins by renaming the plugins folder:

    wp-content
        plugins.HOLD
  19. jimmythet
    Member
    Posted 7 months ago #

    I think this is something more than a single theme's functions.php

    There's nothing here at all:
    http://arcturusastrology.com/wp-admin/

    Your whole WordPress installation is malfunctioning, which could be any number of things.

    I recommend working with your host, or find a better one.

  20. Lynne_Mullen
    Member
    Posted 7 months ago #

    I deactivated the plugins, and still nothing.

    I'll contact my host about the installation problem.

    Thanks everyone! I really appreciate your help! Hopefully this will be resolved.

Reply

You must log in to post.

About this Topic