• I tried to change a line of coding in my wordpress theme template and used the coding given to me directly by the company that created the theme. Once had clicked ‘update’ I received this message:

    PHP Parse error: syntax error, unexpected ‘{‘ in G:\PleskVhosts\suzannahnutt.com\httpdocs\wp-content\themes\rockford\functions.php on line 59

    I then clicked BACK and delete the line and updated again. However, I am now completely unable to use my site at all!

    I now recieve this same message line whether I try to look at my site from the outside or enter it through my wordpress admin. I have spoken to the host provider and they have informed me to locate the file in phpMyadmin and delete it and then hopefully wordpress will allow me to get back into my site, but I do not know how to locate the file in phpMyadmin.

    Does anyone know how to locate a file and then delete it so that I can start my website all over again after reuploading the theme?

    Thanks so much!! ??

Viewing 6 replies - 1 through 6 (of 6 total)
  • You don’t want to use phpMyadmin to fix this problem. You want to use FTP to write over the damaged file functions.php with an unchanged copy. Can you find backup or download the theme again and get a clean copy of functions.php?

    Then via your FTP client download functions.php to your theme folder (rockford).

    Before you begin editing your theme again you need to create a child theme. Then you can make the changes in your child theme.

    Cheers, Stacy

    Thread Starter suzannahnutt

    (@suzannahnutt)

    Thanks for this Stacy, but I can’t even get into the admin panel on my site because I keep getting the error message. How would I go about getting a clean copy of the functions.php and then how would I do with download it into the theme folder?? Sorry, I am seriously new at this!

    I was using the child theme previously but how do I make a copy of it?

    Thank you!

    It’s good to know you are new. You were attempting a complicated change!

    Do you know how to log into your hosting server? Do you have a ftp client like filezilla downloaded to your PC?

    Here is a little tutorial I wrote about FTP:

    FTP stands for file transfer protocol. Your WordPress files and folders are on your hosting provider’s server. To see your files and folders just like you do with finder on the Mac and Windows Explorer on the PC, you login using a ftp client. First you need to log on to your hosting provider account if you don’t already have a ftp login set up. You will see on your hosting provider’s dashboard (usually CPanel) a way to create an ftp account. Then download a program like filezilla (there are a lot of them). You will use the newly created ftp username and password to make a connection to your WordPress file on the hosting server with your filezilla software using your ftp hostname and password. (I use a Mac and have a program called Fetch instead of filezilla).

    Here is a tutorial.

    Here is another tutorial

    Once you have FTP access to your files on the host, I will give you the next instruction.

    Phil

    (@owendevelopment)

    Do you have a backup of the original functions file? I would send that back up via FTP to get your site up and running again.

    Thread Starter suzannahnutt

    (@suzannahnutt)

    Phil – no, i didn’t back anything up…bit of a moron! Maybe I can ask for a copy of the original file from the template provider?

    However…

    Stacy – I had filezilla (because someone told me to get it, but I have never used it!) so, I have just updated it and have found my username and password, should I put them into the top of filezilla? And then what do I put into the Host and Port sections at the top too? Do I need to use an IP address for anything?

    Thank you so much for that tutorial too! What’s the next step?? ??

    Hi Suzanna,

    Sign on to your hosting provider or call their support to ask them how to put into the Host and port sections. They should be able to help you with that.

    Were you able to download a new copy of your theme? If you download it to you desktop and look inside the theme folder, you will see a clean copy of functions.php. Then you can use filezilla to copy that to your host and get your site back.

    Stacy

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘My phpAdmin error code’ is closed to new replies.