Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme »

Parse error: syntax error, unexpected T_STRING

Prev Previous Post   Next Post Next
Old Jul 26, 2010, 09:36 PM
joe hark
168 posts · Feb 2009
Parse error: syntax error, unexpected T_STRING

I don't know where to put this but perhaps the moderator will accept my apology and put it where it will be available to help anyone else who encounters the subject error.

I was experimenting in the theme editor and screwed up. I had pasted some code into functions.php and it did not work. So I deleted it, being careful not to touch anything else.

After Update File, I got:

Parse error: syntax error, unexpected T_STRING in /home/joebandh/public_html/wp-content/themes/atahualpa346/functions.php on line 665
So I looked at the file my favorite editor. Still saw no reason for the error message.

Next, I opened my backup copy of Atahualpa (POINT #1 of this tutorial - ALWAYS BACKUP BEFORE WORKING ON ANY CODE - it can never be said often enough - and there is nothing worse than screwing up and not having protected your arrogant, over-confident self) and did a Ctrl-c copy of the contents of my backup functions.php pasted Ctrl-v into the broken file.

Update File - and the problem had not gone away. The T_STRING error persisted. It was a genuine WTF moment.

I tried a very Hail Mary thing.

I opened the site in my FTP client and uploaded my local drive backup copy of functions.php to the server and OVERWROTE the entire damaged file.

That fixed the problem. No more T_STRING error.

Why did that work? I have no idea. I leave it to my betters, of whom there are many.

If anyone can add that explanation it would be welcome. But the essential point is, that overwriting did what copy/paste did not. I hope it helps someone in the future.


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
Thread Thread Starter Forum Replies Last Post
Parse error: syntax error, unexpected '<' in the functions.php file pingitt Atahualpa 3 Wordpress theme 6 Mar 12, 2013 03:52 AM
Parse error: syntax error, unexpected '<' in /home6/jonesber/public_html/wp-content/ jonesberries Atahualpa 3 Wordpress theme 2 Nov 30, 2009 03:33 AM
Parse error: syntax error, lost all center column content on all pages/posts Ladyartist Atahualpa 3 Wordpress theme 7 Oct 26, 2009 04:17 PM
[SOLVED] Home page won't load! Parse error, syntax error lhanft Atahualpa 3 Wordpress theme 4 Aug 30, 2009 01:44 PM
[SOLVED] Parse error: syntax error, unexpected ':', expecting ')' in /home/cwicsol/pu norwichkaren Page & Category Menu Bars 1 Jul 12, 2009 10:04 AM

All times are GMT -6. The time now is 03:49 PM.

Powered by vBulletin® Copyright ©2000 - 2023, Jelsoft Enterprises Ltd.