Previous Thread
Next Thread
Print Thread
Hop To
#111947 11/29/2003 1:02 AM
Anonymous
Unregistered
Anonymous
Unregistered
Latest version. This is the first time this has happened, and now it's happening for more than a few people. It reads:

Parse error: parse error in /home/1/cybertlc/Forums/ubb/cache-I8EKTVFZ/ubb_files/forums/Forum3/012240.cgi on line 560

What is causing this? I am going to clear the Cache, but why would this be happening out of the blue, never had a problem with it before?

[This message was edited by Charles Capps on December 03, 2003 at 11:18 AM.]

Anonymous
Unregistered
Anonymous
Unregistered
Reindexed, rebuilt, cleared cache.

Same error. I get it on every few topics, it's not one in particular. This just started happening and I haven't changed a thing and have no hacks.

Anonymous
Unregistered
Anonymous
Unregistered
I checked the line with the error and it was:

-=%>_ NhP2 Media _<%=-
<br />


The <br /> is the line that is causing that problem in someone's signature. Not sure why, but perhaps this can be fixed in the next version?

Anonymous
Unregistered
Anonymous
Unregistered
That's a very odd error, especially as the file in question should NEVER be parsed in the first place...

Anonymous
Unregistered
Anonymous
Unregistered
Actually, not sure if it even matters, but I think that information may have actually been in his user title and not his signature. Either way, the line that caused the parse error was the messed up <br />

Any post that he had contributed to would make that post unreadable and come up with a parse error that I posted above.

I just removed his title and it was fixed.

Something to look at, though!

Anonymous
Unregistered
Anonymous
Unregistered
It is the <%= in the title causing the Accelerator to throw the Parse Error.

From PHP.net
<pre>The tags supported by PHP are:

Example 5-1. Ways of escaping from HTML

1. <?php echo("if you want to serve XHTML or XML documents, do like thisn"); ?>

2. <? echo ("this is the simplest, an SGML processing instructionn"); ?>
<?= expression ?> This is a shortcut for "<? echo expression ?>"

3. <script language="php">
echo ("some editors (like FrontPage) don't
like processing instructions");
</script>

4. <% echo ("You may optionally use ASP-style tags"); %>
<%= $variable; # This is a shortcut for "<% echo . . ." %>
</pre>

Anonymous
Unregistered
Anonymous
Unregistered
So is there any 'fix' to it, or is it just something to watch out for? It pretty well messes up the board if anyone decides to put that character into their profile.

Anonymous
Unregistered
Anonymous
Unregistered
My guess is that would probably either need to be watched for in the title or filtered by the UBB.

I can understand that it would cause havoc especially on ultimatebb.php calls.

Anonymous
Unregistered
Anonymous
Unregistered
What public web hosting provider in their right mind actually enables ASP tags!?

This is going to get fixed one way or another in 6.7.0. The fix will land in rv193.

Anonymous
Unregistered
Anonymous
Unregistered
The fix ended up being banning the ASP tag altogether.

Users will still be able to post ASP code in the code tag.

As you're going to need the fix for your board...

In ubb_lib, find this:
<pre> push (@returnarray, "PHP") if (($this =~ m/<?php/si) &#0124;&#0124; ($this =~ m/&lt;?php/si));</pre>

And replace it with this:
<pre> push (@returnarray, "PHP") if (($this =~ m/<?php/si) &#0124;&#0124; ($this =~ m/&lt;?php/si));
push (@returnarray, "ASP") if (($this =~ m/<%/si) &#0124;&#0124; ($this =~ m/&lt;%/si));</pre>

There are also new protections against the short tag formats...

Anonymous
Unregistered
Anonymous
Unregistered
Thanks Charles!

And DreamServers is the host we use :-)


Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Bots
by Outdoorking - 04/13/2024 5:08 PM
Can you add html to language files?
by Baldeagle - 04/07/2024 2:41 PM
Do I need to rebuild my database?
by Baldeagle - 04/07/2024 2:58 AM
This is not a bug, but a suggestion
by Baldeagle - 04/05/2024 11:25 PM
spam issues
by ECNet - 03/19/2024 11:45 PM
Who's Online Now
1 members (Nightcrawler), 339 guests, and 156 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)