Previous Thread
Next Thread
Print Thread
Hop To
Joined: Jan 2004
Posts: 6
T
stranger
stranger
T Offline
Joined: Jan 2004
Posts: 6
Hey there.

This is a problem that I've had for quite some time, even after various re-installs of my server software and OS. In fact, I believe I've had this problem since just after the UBB accelerator was introduced. But enough jibba-jabba, onto the problem.

http://www.kappakappapsibetaalpha.org/ubb/ubb/ultimatebb.php

Notice the "Recent Visitors" table. If this page has been served by the UBB accelerator, then odds are pretty good that the colors and font sizes on the table aren't what they should be... and it's obvious. This also makes the links on the table un-workable. Whenever you click on it, you get a URL like this:

http://www.kappakappapsibetaalpha.org/"h....cgi?ubb=pntf"

Pretty useless. Again, this shouldn't be chalked up to beta software, as I've had this problem with several UBB versions now.

Joined: Jan 2004
Posts: 6
T
stranger
stranger
T Offline
Joined: Jan 2004
Posts: 6
Oh, right... should probably give server info.

Windows 2000 Server (IIS 5)
PHP version 4.3.4
Current version of ActivePerl

Joined: Jun 2006
Posts: 346
R
enthusiast
enthusiast
R Offline
Joined: Jun 2006
Posts: 346
If you were to have a stock UBB instance without your changes to the templates are you able to duplicate it. If you are, then there is a bug, if not it is either your Javascript menu or the multiple includes of an external css. I counted at least 2.

I'm running a stock UBB without any external CSS and I'm not experiencing the behavior at all, so it leads me to believe that one of your changes is causing the behavior.

Anonymous
Unregistered
Anonymous
Unregistered
Code
<td bgcolor="#0000cc" colspan="5" align="left">
<a href="http://www.kappakappapsibetaalpha.org/ubb/cgi/ultimatebb.cgi?ubb=pntf">
<font face="Arial, Helvetica, sans-serif size="1" color="#FFFFFF">[b]
that's the code, and that's why it's messed up. I can't say why though

Joined: Jul 2006
Posts: 2,143
Pooh-Bah
Pooh-Bah
Joined: Jul 2006
Posts: 2,143
One of our beta testers has encountered this before. Current operating theory is that PHP thinks it needs to escape all those quotes because "magic quotes" is enabled.

Carmack, please open a support ticket. Include the URL to this topic in the ticket body, along with a request that the ticket be assigned to me. I'd like to run some tests on your server.


This thread for sale. Click here! [Linked Image from navaho.infopop.cc]
Joined: Jan 2004
Posts: 6
T
stranger
stranger
T Offline
Joined: Jan 2004
Posts: 6
Turning off "magic quotes runtime" in PHP.ini fixed it, so I'm guessing the theory is correct.

Considering that the problem is fixed, I'd really rather not open the support ticket... don't want to get charged for a service I don't need. <img src="https://www.ubbcentral.com/boards/images/graemlins/wink.gif" alt="" /> However, if you want to run some tests on my server for research (or other) purposes, then that's totally fine. If that's the case, just email me at [][email protected][/] and I'll give you the info you need.

Joined: Jul 2006
Posts: 2,143
Pooh-Bah
Pooh-Bah
Joined: Jul 2006
Posts: 2,143
We never charge for bugs.

I really need to catch this bug in the wild - I would really appreciate it if you could reset php.ini and open that support ticket so I can figure out if I can make the Accelerator disable magic quotes internally. Most people won't be able to change their own server configuration. <img src="https://www.ubbcentral.com/boards/images/graemlins/smile.gif" alt="" />


This thread for sale. Click here! [Linked Image from navaho.infopop.cc]
Joined: Dec 2003
Posts: 11
B
stranger
stranger
B Offline
Joined: Dec 2003
Posts: 11
CC, maybe
Code
set_magic_quotes_runtime(0);
in the beginning of ultimatebb.php would help? (untested)

Joined: Jul 2006
Posts: 2,143
Pooh-Bah
Pooh-Bah
Joined: Jul 2006
Posts: 2,143
That's the theory. However, depending on which page of the PHP documentation you read, that may or may not work. Either magic quotes can't be disabled during runtime, or they can. I have yet to duplicate any of these problems locally to test for myself. And knowing how flaky PHP versions are, it's probably changed four or five times in the last four or five releases.

I hate PHP.


This thread for sale. Click here! [Linked Image from navaho.infopop.cc]
Joined: Jan 2004
Posts: 6
T
stranger
stranger
T Offline
Joined: Jan 2004
Posts: 6
Ticket opened. Is there anything else I need to do, or will you just be setting to work from here?

Joined: Jan 2004
Posts: 6
T
stranger
stranger
T Offline
Joined: Jan 2004
Posts: 6
I think the issue with changing the status of magic quotes may be that you might not be able to activate them at runtime if they're not already activated in PHP.ini (versus turning them off at runtime when they're on by default). Is that the contradiction you've seen in the documentation, or did it just pretty blatantly say one thing somewhere and exactly the opposite somewhere else (I'd believe either... they go through versions very quickly)?

Adding the set_magic_quotes_runtime(0); function at the beginning of the script fixed the problem as well, by the way (I've removed it now so that you may run whatever tests you need to on an unaltered board).

Joined: Jul 2006
Posts: 2,143
Pooh-Bah
Pooh-Bah
Joined: Jul 2006
Posts: 2,143
That ended up being exactly what I was going to try out, and thus is the official fix. The fix for this will appear in rv209.


This thread for sale. Click here! [Linked Image from navaho.infopop.cc]

Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Selling a Forum?
by ECNet - 10/10/2026 10:54 AM
PHP 8 bug in membermanage.tmpl
by phoenix011235 - 09/08/2026 7:47 PM
Who's Online Now
0 members (), 298 guests, and 124 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)