Uutiset:

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

Main Menu
Advertisement:

script.js url is broken

Aloittaja pctwo, elokuu 22, 2006, 09:20:28 IP

« edellinen - seuraava »

pctwo

After upgrading 1.0.8->1.1RC2->1.1RC3, none of the buttons above the edit box (while composing a message) works. e.g., the smileys, the bold and italic buttons.  I get a javascript error.

View source, I see the url to script.js is wrong

http://127.0.0.1:18000/smf/Themes/default

It should be http://xxxxxx.gotdns.com:1800/smf/Themes/default

note: 1800 not 18000.

When I first installed, I did run apache at port 18000, but I've changed all the settings since.  In admin panel, I checked that forum url is correct, and theme url is also correct.  I grepped the entire smf/ directory for 18000, and only found 3 instances related to time math, nothing to do with this.  I checked httpd.conf and php.ini and found no instance of 18000.

I finally figured out that it's from a table.  I emptied the smf_themes table.  This completely hosed all themes.  Okay, I installed a new theme based on the default theme.  Now the script url is just

/script.js. 

Still wrong.  But the theme url in admin panel is correct.

(Incidentally, when I use mysql administrator, although I can view the schema, I can't view any table data (edit table data is grayed out).  I've given myself all privileges to the db.  Having to use commandline tool is really slow.)

Help, I'm about to go nuts here :(

Thanks in advance.

Skipdawg

I had mine break too going from RC2 to RC3 just re-upload that script.js file  ;)
Skipdawg's Community

Powered by SMF 1.1.3

pctwo

#2
Lainaus käyttäjältä: Skipdawg - elokuu 22, 2006, 09:36:15 IP
I had mine break too going from RC2 to RC3 just re-upload that script.js file  ;)

The problem isn't a corrupted file.  The problem is the url pointing to the script is wrong.

something is messed up with my themes.  I seem to have no default theme.  because

$settings['default_theme_url'] is null.

I don't know where this is pulled from.  I finally got tired and just hacked this in Load.php

$settings['default_theme_url'] = $settings['theme_url'];

This is not good obviously but works for now.

Advertisement: