News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Bug in Firefox 1.5 Causing Server Issues with SMF 1.1

Started by Grudge, January 20, 2006, 07:47:20 PM

Previous topic - Next topic

Ben_S

Rename the file to script2.js and update any themes that call it to point to it's new name.
Liverpool FC Forum with 14 million+ posts.

Juggler

Dumb question, but does that mean I change each index.template file to point to renamed script?
The Blue Buzzards
Flying Scooter Display Team
#69 Squadron
www.bluebuzzards.com

Ben_S

Every themes index.template.php by default points to the default themes script.js, so in effect, yes.
Liverpool FC Forum with 14 million+ posts.

ThomasJ

Quote from: Prasad007 on January 23, 2006, 03:15:04 AM
woah! yay! it works now :)
i did it using context just like you said  :D
i dont get it tho
using notepad adding a single j cudnt damn work!?!!?!!


The reason is simply that some windows editors (and even some windows FTP clients) modify the file when you save it, changing the end of line (EOL) characters to windows specific ones. This in turn causes the file to break when its being processed by interpreters.
Whoops! Did i break that?

Bigguy

I guess I do have an error. For some reason I cant play the arcade now. When I go to it I get this:

QuoteFatal error: Only variables can be passed by reference in /home/bigguy/public_html/smf/Sources/Arcade2.php on line 333

I asked at smfarcade.net but I figure seeing as it was all working before I did this that this might be the cause. Any ideas ???

JayBachatero

Check to see if the arcade makes any changes to script.js if it does transfer those changes to the new file.

-JayBachatero
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

Bigguy


Bigguy

#107
No changes at all made to that file. Here is my line 333 from Arcade2.php

Quote$top10[$i]['comment'] = censorText(doUBBC(stripslashes($score['comment'])));

My host just recently upgraded to php 5.0.5 would that be the problem. Someone found this about it.

http://the-stickman.com/web-development/php/php-505-fatal-error-only-variables-can-be-passed-by-reference/

JayBachatero

That might be it.  Make a post about it in the Arcade Mod topic. 
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

Bigguy

Ok, I did thanks. Would the php compatibility mod clear this up at all ???

Jikson26

<script language="JavaScript" type="text/javascript" src="', $settings['default_theme_url'], '/script.js?rc2p"></script>


I am using SMF Default theme, and it contains the ?rx2p at the end, do I take that out and replace it with "j"?

Bigguy


JayBachatero

Quote from: Bigguy on January 23, 2006, 11:49:38 PM
Ok, I did thanks. Would the php compatibility mod clear this up at all ???

No it wouldn't because they are two different things.  Same error though.
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

Bigguy

Well, I`m lost then,lol. I dont know wether this is a php error because of the upgrade the host did or if its got something to do with the database or the arcade. I`m sure the answer is around here somewhere. :)

JayBachatero

Well that is an Arcade Mod issue.  I'm sure Niko will provide a fix soon.

-JayBachatero
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

Thantos

The error is because censorText() takes a variable in by reference and returns true or false.
Its invalid to take the return value from parse_bbc() and pass it directly to censorText().

At first blush I'd change
   $top10[$i]['comment'] = censorText(doUBBC(stripslashes($score['comment'])));

to

   censorText($top10[$i]['comment'] = parse_bbc(stripslashes($score['comment'])));

Note:  In SMF 1.1 doUBBC() is basically just a wrapper for parse_bbc()

Bigguy

ok I tried what you said by changing it and that doesnt work. Thank you though, anymore ideas would be greatly appreciated.

Bigguy

Ok, I just noticed that some of the games are working so the whole arcade is not down. But the games that arent working were working before.

sailorfred

I've got to say that it's very confusing for unlogged in users to see references to attachments when they don't show up for us.

Maybe a link to a page saying you have to be logged in to download the attachment would be more friendly.

Ibiza MF

I'm about to upgrade from 1.0.5 to 1.1 RC2.

Is this bug fixed in current download version?

Advertisement: