Previous Thread
Next Thread
Print Thread
Hop To
#21832 11/28/2000 5:57 PM
Anonymous
Unregistered
Anonymous
Unregistered
Went to add a new post to test out the board (first post of the board) and got:

Parse error: parse error in /usr/local/etc/httpd/htdocs/wwwthreads-php/addpost.php on line 375
Needless to say, I haven't touched any of the code (yet) <img border="0" title="" alt="[Smile]" src="images/icons/smile.gif" />
<P ID="edit"><FONT><EM>Edited by LoneVVolf on 11/28/00 01:57 PM.</EM></FONT>

#21833 11/28/2000 6:00 PM
Anonymous
Unregistered
Anonymous
Unregistered
Looks like you had an extra comma at the end of 374. This is tested, right? <img border="0" title="" alt="[Wink]" src="images/icons/wink.gif" />

#21834 11/28/2000 6:01 PM
Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
What version of PHP are you running? This could have something to do with the $GLOBALS problem in the last thread and also this portion of the code. I'm developing on PHP4 but trying to make it run under PHP3 as well.
I'm guessing you are running PHP3, if so you can make the following change. Line 374 of addpost you will see this:
18 => array(0=>"images/icons/wink.gif", 1 => "$lang[ICON_WINK]"),
Get rid of that trailing comma. In PHP3 it doesn't allow for an array declaration to end in a comma.
Sorry for the troubles, but at least this will let me fix the problems with PHP3. <img border="0" title="" alt="[Wink]" src="images/icons/wink.gif" />

-------------------

Scream

WWWThreads Developer

#21835 11/28/2000 6:07 PM
Anonymous
Unregistered
Anonymous
Unregistered
Actually, I'm apparently running a beta of PHP4. I guess that has to do with the problems...unfortunately, I have no control over the software on the server...it's a hosting service. *sigh* I'm getting many parse errors. I think PHP4 (final) must be very forgiving. <img border="0" title="" alt="[Smile]" src="images/icons/smile.gif" />


Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
PHP 8 bug in membermanage.tmpl
by phoenix011235 - 09/08/2026 7:47 PM
Are any of these legitmate?
by Baldeagle - 09/06/2026 1:37 PM
After server reboot
by Morgan - 09/02/2026 8:27 AM
Email Settings
by Outdoorking - 05/13/2026 2:44 AM
Who's Online Now
0 members (), 253 guests, and 121 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Ride safe!
Ride safe!
by Morgan, December 7
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Powered by UBB.threads™ PHP Forum Software 8.1.0
(Snapshot build 20260527)