• Hi,

    I added a small piece of code to the functions.php file in my theme and then all of a sudden my website went down and I’m also unable to log-in to it with /wp-admin. I’ve tried using the IP address too and can’t get access. After reading similar topics it looks like it’s just a syntax error but the response to all other questions was to log in to their account and remove the problematic code, which of course I can’t do!

    (It’s the error 500 I get)

    How do I fix this?

    Thanks

Viewing 11 replies - 1 through 11 (of 11 total)
  • Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Do you have access to your hosting provider’s control panel?

    Thread Starter tac3022

    (@tac3022)

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Can you check that control panel to see if you have an option named something like “File Manager”? Something that lets you see the files and folders behind your website.

    Thread Starter tac3022

    (@tac3022)

    @anevins It doesn’t look like there’s any kind of access to the files from my host in the control panel unfortunately

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Does it mention anything about “FTP” details?

    Thread Starter tac3022

    (@tac3022)

    @anevis oh I’ve just found Console access and I’ve now logged in to this! I assume this is where I can make changes? What should I do from here?

    FYI I just did some Googling about FTP on Digital Ocean and found this: “We do not provide any droplets providing a pre-installed FTP service as FTP is an inherently insecure protocol. You can however make an SFTP connection using the root user. Before you can make an SFTP connection you will first need to log in via SSH or the Console in the control panel (Droplet->Access->Open Console)”

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Great, um I’ve not handled a SFTP connection before but I think what the “Open Console” does is that it opens the connection to your server – Which you can then use a FTP tool like ‘FileZilla’ to access. Assuming you have the FTP details; the server name, username and password, try installing that FileZilla software and then making a SFTP connection there.
    https://www.one.com/en/support/faq/how-do-i-connect-to-an-sftp-server-with-filezilla

    Thread Starter tac3022

    (@tac3022)

    @anevins oh I see – I’m currently at work so can’t install anything on this computer, was hoping to do it without downloading anything but I’ll have to try when I get home unless there’s a way to do it without downloading anything? (Thanks for your help by the way, much appreciated)

    Thread Starter tac3022

    (@tac3022)

    @anevins ok I’ve connected my Filezilla (I didn’t do any process of adding WP files to it though, should I do that?) – by the way I’m happy for any kind of reset to my theme to happen if that is a quick fix, I’ve only added a couple of test pages to the site so there’s nothing really to lose

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Hi @tac3022, you should be able to download the theme’s functions.php file again and then re-upload that from your computer to the server. The server path will be something like ‘/wp-content/themes/[name-of-your-theme]/‘.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Site down after changing functions.php file’ is closed to new replies.