Previous Thread
Next Thread
Print Thread
Hop To
Joined: Jan 2007
Posts: 35
Likes: 3
D
Newbie
Newbie
D Offline
Joined: Jan 2007
Posts: 35
Likes: 3
my boards, the lovable but cranky v7.2 over at rkmbs.com, have recently begun spitting out the following error after trying to post:

Parse error: syntax error, unexpected T_VARIABLE, expecting T_STRING in /nfs/c09/h01/mnt/131728/domains/rkmbs.com/html/scripts/showflat.inc.php on line 955

the post actually does get added, you just have to deal with the error message. any ideas what i done did...?

Joined: Jan 2007
Posts: 35
Likes: 3
D
Newbie
Newbie
D Offline
Joined: Jan 2007
Posts: 35
Likes: 3
actually, check that -- it apparently shows up whilst trying to go to any topic; not limited to adding new ones

Joined: Jun 2006
Posts: 1,344
G
veteran
veteran
G Offline
Joined: Jun 2006
Posts: 1,344
What do you have on line 955 in showflat.inc.php?

Joined: Jan 2007
Posts: 35
Likes: 3
D
Newbie
Newbie
D Offline
Joined: Jan 2007
Posts: 35
Likes: 3
looks like...

$popups .= "<script type=\"text/javascript\">registerPopup(\"profile_popup_$Number\"); </script>";

Joined: Jun 2006
Posts: 1,344
G
veteran
veteran
G Offline
Joined: Jun 2006
Posts: 1,344
Give me a few to rest but it looks like you may have an extra ;. Remove the one after $Number\"); and see if it works

Joined: Jan 2007
Posts: 35
Likes: 3
D
Newbie
Newbie
D Offline
Joined: Jan 2007
Posts: 35
Likes: 3
tried, but no dice frown


Joined: Jan 2007
Posts: 35
Likes: 3
D
Newbie
Newbie
D Offline
Joined: Jan 2007
Posts: 35
Likes: 3
(and this new quick reply is awesome, btw)

Joined: Jun 2006
Posts: 1,344
G
veteran
veteran
G Offline
Joined: Jun 2006
Posts: 1,344
I meant remove the ; after </script>

Joined: Jun 2006
Posts: 1,344
G
veteran
veteran
G Offline
Joined: Jun 2006
Posts: 1,344
Actually, that is stock code. Have you edited this file at all? You may be missing a curly bracket or colon somewhere around that line

Joined: Jan 2007
Posts: 35
Likes: 3
D
Newbie
Newbie
D Offline
Joined: Jan 2007
Posts: 35
Likes: 3
it's possible I edited the file awhile back, but at least not since last august - I don't think I've touched any file in a few years. this issue just seems to have crept up in the past 24 hours

Joined: Jan 2007
Posts: 35
Likes: 3
D
Newbie
Newbie
D Offline
Joined: Jan 2007
Posts: 35
Likes: 3
unfortunately, my sleep and lack of knowledge did not fix the issue smile

could there have been something i did that would cause this to all of a sudden revolt? i used to hack a lot in the files back in the day, but like i said, i haven't touched anything in maybe 3-4 years, outside of moving servers - and even that was almost a year ago, back in august 2011

Joined: Jan 2007
Posts: 35
Likes: 3
D
Newbie
Newbie
D Offline
Joined: Jan 2007
Posts: 35
Likes: 3
woo! i'm an uber hack! smile

so, basically, i couldn't figure out what the issue was, but the entire block causing trouble here was "If it is an anonymous post, don't give a link to their profile"

and since i dont allow anonymous posts, and i don't care (that much) about profiles (until there's an upgrade)... i just commented out lines 921 through 956.

so now, all the threads work again for viewing and replying. the only issue is all the user names are text, and not links. ...but i can live with that for now! hopefully the upgrade (later this... year?) will just swap out all the bad for the good, anyway.

regardless, thanks for your assistance, gliderdad!

Joined: Dec 2003
Posts: 1,796
Pooh-Bah
Pooh-Bah
Joined: Dec 2003
Posts: 1,796
Hey Rob! Good to see you around and still breaking your forums laugh


- Allen
- ThreadsDev | PraiseCafe
Joined: Jan 2007
Posts: 35
Likes: 3
D
Newbie
Newbie
D Offline
Joined: Jan 2007
Posts: 35
Likes: 3
hah! :-p

Joined: Jun 2006
Posts: 16,292
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,292
Likes: 116
Originally Posted by AllenAyres
Hey Rob! Good to see you around and still breaking your forums laugh
Isn't that what we all do best?


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Joined: Dec 2003
Posts: 1,796
Pooh-Bah
Pooh-Bah
Joined: Dec 2003
Posts: 1,796
Yes smile


- Allen
- ThreadsDev | PraiseCafe

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
0 members (), 396 guests, and 110 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)