adaml44 1 Report post Posted October 17, 2011 I was editing my function.php file in Platform Base, when I then got this error message: Parse error: syntax error, unexpected '<' in /home/adaml44/public_html/wp-content/themes/platformbase/functions.php on line 105 I tried to go into the editor and look at the line, but there was nothing there - the bottom 5 or so lines (including 105, by my count) were empty, so I deleted them and attempted to update the file. However, the page wouldn't load. Now, I can only get to the homepage of the site itself, and I can't even get to the login screen for the site (/wp-admin) (I get the same error). Since I can't get to the editing area, I have no idea how I'm supposed to fix the coding error. If you have ANY idea of how I'm supposed to get back in - I just want the function(s?).php to go back to how it was, so I can continue to work on my site The site is www.adamlillylaw.com BTW, I went to my cPanel, and there's a box in the sidebar that says this: Backup Status StatusSuccessful BeganOctober 16, 2011, 2:01 pm CompletedOctober 16, 2011, 3:27 pm EmailNone - Click to configure. SettingEdit If Backups ran now, your account would be backed up success 27.9 MB /20,000MB success 2023 /100,000(Files) I don't know if that means I can restore the site to how it was at 3:27pm yesterday (which would definitely work for me), if that's something I can do without breaking everything, etc. I thought I'd ask around here before messing things up further. Share this post Link to post Share on other sites
Kate 3 Report post Posted October 17, 2011 HI Adam, If there's an error in your functions.php file, it will prevent the site from loading properly, both from the front and back end. You'll have to go into the file manager of your cPanel, navigate to the functions.php file, and update it from there. (Likely the reason you didn't see the error in the functions.php file from the visual editor is because it hadn't been updated yet with your changes.) Share this post Link to post Share on other sites
adaml44 1 Report post Posted October 17, 2011 Ah... I honestly didn't know you could edit files in the cPanel. So, I've found the file there: 1) should I use "edit", "code editor", or "html editor"; and 2) where can I get a copy of the default file (since I had never edited it before I ruined it) to paste in there? Also, thanks - I was really worried I was going to have to re-install everything and start the site again from scratch. Share this post Link to post Share on other sites
adaml44 1 Report post Posted October 17, 2011 I combined your advice with a post from Danny from September, and my site is now working again. Now I can go back to trying to fix my many stylistic preference-related problems, which somehow seem less important now. Thanks! Share this post Link to post Share on other sites