Previous Thread
Next Thread
Print Thread
Rate Thread
#228292 11/24/2002 9:34 PM
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
I'm sure this is something simple.

This is the template for a mod I am working on.

I am getting a parse error... on the template, line 102.

Which doesn't make any sense to me.

I've attached the complete template (as text)
code:

</tr>
</table>
</div>
</td>
</tr>
</table>
</td>
</tr> [:"red"]<- Line 102[/]
</table>
UBBTPRINT;
/* UBBTREMARK */ ?>



Maybe it's something minor that I'm overlooking and it'll jump out at someone else.

Thanks!
Attachments
60965-template.txt (0 Bytes, 35 downloads)

Sponsored Links
Joined: May 1999
Posts: 1,715
Addict
Addict
Joined: May 1999
Posts: 1,715
That's strange. I ran the file by itself on my server and it worked just great, even when turning error reporting to max I only get notices about undefined variables which is quite natural.

The error must be somewhere in the script calling this template, but something is fooling the parser into thinking it is in the template. Runaway " and { or } can do that sometimes.

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
It's not very particular:

Parse error: parse error in /home/pettit/joshuapettit/htdocs/beta/ubbthreads/templates/default/contactus.tmpl on line 102


Usually they are more descriptive.



Thanks for looking at it.

Daine #228295 11/24/2002 10:22 PM
Joined: May 1999
Posts: 1,715
Addict
Addict
Joined: May 1999
Posts: 1,715
Dave_L:s post has disappeared for me, and I can only see your post when in flat mode. The postlist showed that there was a new post by you though. Weird.

Joined: Apr 2002
Posts: 1,768
Addict
Addict
Offline
Joined: Apr 2002
Posts: 1,768
I got the same error.

Is that a Mac file? I looked at it in a binary editor, and saw that the lines are terminated with CRs.

After I loaded the file into a text editor and resaved it in Unix format, it ran ok.

------------
Edit:

The above suggests you might be uploading the file to your server using binary transfer mode, rather than ASCII.

Last edited by Dave_L; 11/24/2002 10:51 PM.
Sponsored Links
c0bra #228297 11/24/2002 10:31 PM
Joined: Apr 2002
Posts: 1,768
Addict
Addict
Offline
Joined: Apr 2002
Posts: 1,768
I made an earlier post, and then deleted it. That seems to have had a strange effect on this thread.

joeuser #228298 11/24/2002 10:37 PM
Joined: May 1999
Posts: 1,715
Addict
Addict
Joined: May 1999
Posts: 1,715
Maybe Dave_L answered to your post at the same time as you deleted it, so that it looked like the post was in the database when his post was entered, but instead it is now lost in cyberspace without a real home...

How big is the window between the check if the post exists and the insertion of a post? Can't be long?

Edit: Seems that there isn't any check that the post being answered to actually exists. So basically, this could happen any time someone is on the reply page when a post is deleted. I'm suprised it doesn't happen more often.

Last edited by Gardener; 11/24/2002 10:45 PM.
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Thanks guys.

Let me try resaving or checking how it's been uploaded. Funny I never encountered that before... but some settings may have gotten messed up.

Yes, I replied to Dave's first reply... but after I posted. it was gone.

Flat mode does OK - Threaded mode only show 3 posts in the thread. Way weird. Think we found a bug.

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Yup -

Macintosh Line Breaks were the culpret. Found where I could change that in BBEdit to Unix Line breaks and that fixed it.


Thank you - you guys are the best.

c0bra #228301 11/25/2002 12:34 AM
Joined: Apr 2002
Posts: 1,768
Addict
Addict
Offline
Joined: Apr 2002
Posts: 1,768
I reported the bug on the beta-testing board.

Sponsored Links

Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
• Shock Hosting
• Stable Host
• bluehost
• InterServer
Visit us on Facebook
Member Spotlight
Ruben Rocha
Ruben Rocha
Lutz,FL,USA
Posts: 253
Joined: January 2000
Forum Statistics
Forums63
Topics37,583
Posts293,957
Members13,826
Most Online151,614
Nov 14th, 2025
Today's Statistics
Currently Online 2042
Topics Created 0
Posts Made 0
Users Online 1
Birthdays 30
Top Posters
AllenAyres 21,080
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,834
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2026 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.1.0
(Snapshot build 20261026)