Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 [Solved] 'Parse error...' problem @ std & xthread forum threadlist displays ?
akm Offline
Member
***
Posts: 115
Joined: Nov 2011
Post: #1
Question [Solved] 'Parse error...' problem @ std & xthread forum threadlist displays ?
Doing some template editing with forumdisplay_thread and forumdisplay_threadlist (standard and tp_ ) in particular, and started getting following 'parse error/s' at top of web page (scnshot attached) with forum threads display(for both std and xthread forums)... http://www.server.domain/forum/forumdisplay.php?fid=24.
----
Standard forum at default templates (4 ea / 4 threads, per scrnshot)...
Parse error: syntax error, unexpected '<', expecting '}' in
home/thisold1/public_html/forum/forumdisplay.php(1189) : eval()'d code on line 34
&
xthread (tp_) forum at global templates (3 ea / 3 threads, per scrnshot) ...
Parse error: syntax error, unexpected '<', expecting '}' in /home/thisold1/public_html/forum/forumdisplay.php(1189) : eval()'d code on line 10
----
/forumdislay.php
1189 - eval("\$threads .= \"".$templates->get("forumdisplay_thread")."\";");
----

Both result in no display of threads titles list under forum titles.

Was doing some editing of templates and fixed what was trying to fix, then 'parse error/s' showed up and thread lists disappeared.

Tried googling (parse error, line 10, line 34, etc ?), backtrackg edits for problems (seems at least error is same for both tp_ and std templates), lots of T&E and sleep-on, but to no avail.

Do need to add cr_ to and/or edit forumdisplay.php ?

Where might get help info ?


Attached File(s) Thumbnail(s)
   

Thanks again for your help !
(This post was last modified: 03-08-2012 08:50 AM by akm.)
03-08-2012 03:15 AM
Find all posts by this user Quote this message in a reply
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #2
RE: 'Parse error...' problem @ std & xthread forum threadlist displays ?
I think you need to check the modified templates related to your forumdisplay page (the green title color). Or, revert the modified templates back to original (make sure to back up those templates first).

03-08-2012 07:38 AM
Find all posts by this user Quote this message in a reply
akm Offline
Member
***
Posts: 115
Joined: Nov 2011
Post: #3
RE: 'Parse error...' problem @ std & xthread forum threadlist displays ?
(03-08-2012 07:38 AM)RateU Wrote:  I think you need to check the modified templates related to your forumdisplay page (the green title color). Or, revert the modified templates back to original (make sure to back up those templates first).

Thank you for the suggestion.

Have been looking at the 2 templates in question, and couldn find any curly brackets missing etc.

Cut and pasted original templates, and forum display_thread seems to be the problem.

Then walla, a missing curly bracket shows up... just like a lot of the suggests on the internet.

Fixed at tp_ and std templates, both had the same error, and the 'parse error' problem went away.

Think need new glasses!  Oops

Thanks again for your help !
03-08-2012 08:49 AM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

 Standard Tools
Forum Jump: