FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » FUDforum Installation Issues » Parse error when posting or attempting consistency check (*Fixed*)
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
Parse error when posting or attempting consistency check (*Fixed*) [message #164466] Tue, 08 February 2011 12:59 Go to next message
The Witcher is currently offline  The Witcher   United States
Messages: 675
Registered: May 2009
Location: USA
Karma: 3
Senior Member
Ver 3.0.2 When attempting post:
Parse error: syntax error, unexpected T_AS in /home1/user/domain.name/theme/theme_name/post.php on line 2911
		q_limit('SELECT \'' AS location, 0 AS message_id, '. _esc($at['name']) .' AS original_name, '. $owner .' AS owner, '. $attach_opt .' AS attach_opt, id AS mime_type, '. $at['size'] .' AS fsize

When attempting consistency check:
Parse error: syntax error, unexpected T_AS in
/home1/ user/FUDforum/include/theme/default/attach.inc on line 30
		q_limit('SELECT \'' AS location, 0 AS message_id, '. _esc($at['name']) .' AS original_name, '. $owner .' AS owner, '. $attach_opt .' AS attach_opt, id AS mime_type, '. $at['size'] .' AS fsize

Apparently this is related to the mime system, and occurred not long after I had attempted to add a mime video icon specifically for .wmv files and then deleted it.
So far I'm not seeing how to repair it.


"I'm a Witcher, I solve human problems; not always using a sword!"

[Updated on: Tue, 08 February 2011 19:12]

Report message to a moderator

Re: Parse error when posting or attempting consistency check [message #164475 is a reply to message #164466] Tue, 08 February 2011 19:11 Go to previous messageGo to next message
The Witcher is currently offline  The Witcher   United States
Messages: 675
Registered: May 2009
Location: USA
Karma: 3
Senior Member
Fixed!
Restored a previous data dump, downloaded a copy of the themes to a hard drive, then restored the original files back and uploaded the saved themes which repaired the issue.

Perhaps it's not the most elegant solution but it works.


"I'm a Witcher, I solve human problems; not always using a sword!"
Re: Parse error when posting or attempting consistency check [message #164495 is a reply to message #164475] Sat, 12 February 2011 03:22 Go to previous messageGo to next message
naudefj is currently offline  naudefj   South Africa
Messages: 3771
Registered: December 2004
Karma: 28
Senior Member
Administrator
Core Developer
Problem was a corrupted attach.inc.t and not adding of a MIME type. Syntax should be:
q_limit('SELECT \'\' AS location
Re: Parse error when posting or attempting consistency check [message #164515 is a reply to message #164495] Sat, 12 February 2011 20:08 Go to previous messageGo to next message
The Witcher is currently offline  The Witcher   United States
Messages: 675
Registered: May 2009
Location: USA
Karma: 3
Senior Member
Declaring the issue fixed was apparently premature, after returning and adding the custom theme the problem reoccurred as soon as I rebuilt the themes.

Trying your proposed solution had the same result!

I also encountered a similar error when deleting the post containing the video I was attempting to make the mime recognize.
 Parse error: syntax error, unexpected T_AS in /home1/user/domain.name/theme/default/mmod.php on line 990


Applying your fix
 q_limit('SELECT \'\' AS location, 
allowed me to delete the post normally, yet the errors returned as soon as I rebuilt the themes.

My next step will be to uninstall the installation and reinstall from scratch then attempt to restore the data dump.



"I'm a Witcher, I solve human problems; not always using a sword!"
Re: Parse error when posting or attempting consistency check [message #164525 is a reply to message #164495] Mon, 14 February 2011 22:26 Go to previous message
The Witcher is currently offline  The Witcher   United States
Messages: 675
Registered: May 2009
Location: USA
Karma: 3
Senior Member
OK so after completely reinstalling the forum and restoring the dump I still have the same problematic errors:

Parse error: syntax error, unexpected T_AS in /home1/user/FUDforum/include/theme/default/attach.inc on line 30

Parse error: syntax error, unexpected T_AS in /home1/user/domain.name/theme/default/post.php on line 2911

Parse error: syntax error, unexpected T_AS in /home1/user/domain.name/theme/theme_name/mmod.php on line 990


Error continues even after applying your above fix, No issues using dump from before the issue arose so I have reverted to that datadump.



"I'm a Witcher, I solve human problems; not always using a sword!"
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: need advice on upgrading slightly broken legacy 2.7.7. forum
Next Topic: FUDforum 2.5 source code
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sat Nov 23 14:05:32 GMT 2024

Total time taken to generate the page: 0.02234 seconds