Previous Thread
Next Thread
Print Thread
Hop To
Joined: Dec 2003
Posts: 6,560
Likes: 78
Joined: Dec 2003
Posts: 6,560
Likes: 78
I started getting this error after upgrading from 7.4.2 to 7.5 final. The error is written in the forum directory as error_log not visible in the cp error log.
Everything seems to be working though.
Quote
PHP Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /public_html/forums/scripts/printthread.inc.php on line 203
Added comment.
I don't have any moderated forums. At least that I did not set up anyways.

Can't seem to figure out what triggers the error. I have deleted the file twice and right now there are only two line entries with the same error.


Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Joined: Jun 2006
Posts: 33
D
newbie
newbie
D Offline
Joined: Jun 2006
Posts: 33
I just came here to report this bug, but searched first.

The error occurs when you click on Topic Options/Print Topic. It was reported by one of my users, who sees:
Parse error: parse error in C:\Inetpub\lostcoastcachers\forums\scripts\printthread.inc.php on line 203

Testing it here, on this very topic, I see:
Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/ubbcentral/domains/ubbcentral.com/public_html/forums/scripts/printthread.inc.php on line 203

Joined: Dec 2003
Posts: 6,560
Likes: 78
Joined: Dec 2003
Posts: 6,560
Likes: 78
Cool Don, more clues I was not using the print topic option so maybe another user was or a spider.
I was pulling my hair out trying to duplicate this. Because in my post it was not a visible error unless you ftp to the site and look for error_log.

Yep just tried this on my site."Print Topic" adds a line item to the error_log file.


Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Joined: Dec 2003
Posts: 6,560
Likes: 78
Joined: Dec 2003
Posts: 6,560
Likes: 78
Rick,
Car 54 where are you?


Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
Line 201 of scripts/printthread.inc.php is a bit wrong. Currently it looks like this:

$UserStatus = $html->user_status($Posterid,$groupimages,",$Posterid,")'

Needs to be:

$UserStatus = $html->user_status($Posterid,$groupimages,",$Posterid,");

Joined: Dec 2003
Posts: 6,560
Likes: 78
Joined: Dec 2003
Posts: 6,560
Likes: 78
Looks like that corrects the item problem.
WoW

Okay you can light that nasty thing back up.


Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Joined: Jun 2006
Posts: 33
D
newbie
newbie
D Offline
Joined: Jun 2006
Posts: 33
Those pesky semicolons will get you every time!


Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
spam issues
by ECNet - 03/19/2024 11:45 PM
Looking for a forum
by azr - 03/15/2024 11:26 PM
Editing Links in Post
by Outdoorking - 03/15/2024 9:31 AM
Question on barkrowler and the like
by Mors - 02/29/2024 6:51 PM
Member Permissions Help
by domspeak - 02/27/2024 6:31 PM
Who's Online Now
2 members (Havenofsobriety, rootman), 624 guests, and 106 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20230217)