Jump to content
Sign in to follow this  
ysdt

accidentally added something to function.php and now I can't access site

Recommended Posts

ysdt

Hello, First of all I love platform pro. I erased a function I had added earlier in the day (to read google documents) in my function.php and now it is giving me this error: Parse error: syntax error, unexpected '<' in /home/content/52/7234952/html/wp-content/themes/platformpro/functions.php on line 14 So I went in to my file sharing to share files through FTP, and then went to mywebsite/wp-admin/php and I still get the same error. I can't believe I did this. Will all the work I've done on my site? Sorry about this, but if you could help that would be great. Thanks so much. Samar

Share this post


Link to post
Share on other sites
ysdt

Sorry (I'm a little rattled at what I've done) correction on title, I deleted the function I added earlier, and then got the parse error message. Also, I went to mysite/wp-admin.php (not forward slash php).

Share this post


Link to post
Share on other sites
bryan-hadaway

All your work should be fine. Via FTP I would backup the current functions.php somewhere separate and then upload the original functions.php to overwrite it and fix it to it's original state. Thanks, Bryan

Share this post


Link to post
Share on other sites
ysdt

Thanks Bryan. Since I'm hosted through godaddy I went through their hosting site into the file manager and uploaded the original functions.php...Looks like a question mark was added at end that wasn't needed. Everything is working fine now. I appreciate your quick response. I greatly appreciate it. Take care, Samar

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×