server name
Hi,
I have a problem:
I have installed my Wiki on another Server, but when I open the new site, it takes a lot of time to open it. Only appears, when old server is shut down. If he is up it`s extreme fast...
Where can i define the exact server names?
Thanks in advance
€: The new site directs to the old server...
[11:36:49.127] GET http://.../wiki/index.php?title=Benutzer:JavaScript/extraeditbuttons.js&action=raw&ctype=text/javascript&dontcountme=s [HTTP/1.1 200 OK 828ms]
[11:36:49.979] GET http://.../wiki/index.php?title=Benutzer:JavaScript/XEB/live.css&action=raw&ctype=text/css&dontcountme=s [HTTP/1.1 200 OK 500ms]
This appears in Firefox web console
You can define it in LocalSettings.php ( $wgServer specificly, but that's often auto-detected, but there's other server related things in that file). Taking super long time to load could indicate its using the old server as a memcache server.
I have figured out the problem...
But I´m not able to understand it...
In the Web Console is the following entry:
http://old server adress/wiki/index.php?title=Benutzer:JavaScript/extraeditbuttons.js&action=raw&ctype=text/javascript&dontcountme=s
in further informations:
Request-URL: http://old server adress/wiki/index.php?title=Benutzer:JavaScript/extraeditbuttons.js&action=raw&ctype=text/javascript&dontcountme=s
Request-Methode: GET
Status-Code: HTTP/1.1 200 OK
Request-Headers 15:14:37.346
Accept:*/* Accept-Charset:ISO-8859-1,utf-8;q=0.7,*;q=0.7 Accept-Encoding:gzip, deflate Accept-Language:de-de,de;q=0.8,en-us;q=0.5,en;q=0.3 Connection:keep-alive Host: old server adress Referer: http://new server adress/wiki/index.php/Hauptseite User-Agent:Mozilla/5.0 (Windows NT 6.1; WOW64; rv:9.0.1) Gecko/20100101 Firefox/9.0.1
Response-Header Δ578ms
Cache-Control:public, s-maxage=300, max-age=18000 Connection: Keep-Alive Content-Encoding:gzip Content-Type:text/javascript; charset=utf-8 Date:Thu, 26 Jan 2012 14:14:37 GMT Keep-Alive:timeout=5, max=100 Last-Modified:Thu, 30 Aug 2007 11:16:14 GMT Server:Apache/2.2.14 (Win32) DAV/2 mod_autoindex_color PHP/5.3.1 Transfer-Encoding:chunked Vary:Accept-Encoding X-Powered-By:PHP/5.3.1
I don`t need the extraeditbuttons but can`t delete it. (Deleted from database tables causes database crashes)
Hope you can help me....
You probably have an old url in either MediaWiki:Common.js or MediaWiki:<skin_name_here>.js (or somebody's personal js) that is causing problems
Where can I find "somebody's personal js"?
I know the other directions...
Searched now in all *.js files.
Doesn`t find the old server adress anywhere...
Note, these are not files on the server, they are pages in your wiki. Each user (well sometimes depending on config) has their own personal js page at User:Username/Common.js and User:Username/<skin>.js
However, its really most likely to be located in the page MediaWiki:Common.js . If you provide a link to your wiki, I could perhaps determine where it is rather quickly
I`m sorry, but I couldn`t give you a link to this wiki, because it`s a wiki of our company...
I figured out, it`s about the User JavaScript (It`s really a user!!! it was setted instead of MarksS (Extraeditbuttons)
But I just can`t delete it.
http://old server adress/wiki/index.php?title=Benutzer:JavaScript/extraeditbuttons.js&action=raw&ctype=text/javascript&dontcountme=s
is deleted and the newer version on the new server too, but he just loads as soon as he notice it isn`t there and then continue loading.
The problem is, that the old server is a virtual and we want to disable it, but it`s not possible as long he accesses to the old server...
Deleted file User.js too, nothing changed.
Forbid User to use Java nothing changes...
Do you have any further ideas?
€€: Can`t find a file named JavaScript.js, and in Common.js there is no entry about it... nor in monobook etc
Well if its just user js, worst case scenario if the page doesn't exist is a bunch of 404's, which isn't horrible in the grand scheme of things.
>Deleted file User.js too, nothing changed.
Sounds like you haven't actually found where its loaded from. You're going to need to find out where in order to remove it.
Seems so...
Do you have any idea, I can figure out witch adress directs to "http://old server adress/wiki/index.php?title=Benutzer:JavaScript/extraeditbuttons.js&action=raw&ctype=text/javascript&dontcountme=s" ?
Maybe I`m able to localize it this way...
Firefox Web-Console just tells me:
Request-URL: http://old server adress/wiki/index.php?
title=Benutzer:JavaScript/extraeditbuttons.js&action=raw&ctype=text/javascript&dontcountme=s
Request-Methode: GET
Status-Code: HTTP/1.1 200 OK
Request-Headers 15:14:37.346
Accept:*/* Accept-Charset:ISO-8859-1,utf-8;q=0.7,*;q=0.7
Accept-Encoding:gzip, deflate
Accept-Language:de-de,de;q=0.8,en-us;q=0.5,en;q=0.3
Connection:keep-alive
Host: old server adress
Referer: http://new server adress/wiki/index.php/Hauptseite
User-Agent:Mozilla/5.0 (Windows NT 6.1; WOW64; rv:9.0.1) Gecko/20100101 Firefox/9.0.1
Response-Header Δ578ms
Cache-Control:public, s-maxage=300, max-age=18000
Connection: Keep-Alive
Content-Encoding:gzip
Content-Type:text/javascript; charset=utf-8
Date:Thu, 26 Jan 2012 14:14:37 GMT
Keep-Alive:timeout=5, max=100
Last-Modified:Thu, 30 Aug 2007 11:16:14 GMT
Server:Apache/2.2.14 (Win32) DAV/2 mod_autoindex_color PHP/5.3.1 Transfer-Encoding:chunked
Vary:Accept-Encoding X-Powered-By:PHP/5.3.1
That doesn't tell you very much (other then you're looking at the main page when it got loaded). What you could do is run the firebug debugging and go through the js line by line until you find which js file loads it (not the most fun thing to do though)
I already done this, but it doesn`t tell me this fact -.-
I`ll post the hole appeal:
[09:17:58.420] GET http://new server:1000/wiki [undefined 984ms]
[09:18:07.602] GET http://new server/wiki [HTTP/1.1 301 Moved Permanently 0ms]
[09:18:07.635] GET http://new server/wiki/ [HTTP/1.1 301 Moved Permanently 2203ms]
[09:18:09.844] GET http://new server/wiki/index.php/Hauptseite [HTTP/1.1 200 OK 2765ms]
[09:18:12.657] GET http://new server/wiki/skins/common/shared.css?195 [HTTP/1.1 200 OK 31ms]
[09:18:12.670] GET http://new server/wiki/skins/common/commonPrint.css?195 [HTTP/1.1 200 OK 469ms]
[09:18:12.680] GET http://new server/wiki/skins/monobook/main.css?195 [HTTP/1.1 200 OK 516ms]
[09:18:12.692] GET http://new server/wiki/index.php?title=MediaWiki:Common.css&usemsgcache=yes&ctype=text%2Fcss&smaxage=18000&action=raw&maxage=18000 [HTTP/1.1 200 OK 656ms]
[09:18:12.704] GET http://new server/wiki/index.php?title=MediaWiki:Print.css&usemsgcache=yes&ctype=text%2Fcss&smaxage=18000&action=raw&maxage=18000 [HTTP/1.1 200 OK 672ms]
[09:18:12.715] GET http://new server/wiki/index.php?title=MediaWiki:Monobook.css&usemsgcache=yes&ctype=text%2Fcss&smaxage=18000&action=raw&maxage=18000 [HTTP/1.1 200 OK 766ms]
[09:18:12.727] GET http://new server/wiki/index.php?title=-&action=raw&maxage=18000&gen=css [HTTP/1.1 200 OK 500ms]
[09:18:12.740] GET http://new server/wiki/skins/common/wikibits.js?195 [HTTP/1.1 200 OK 500ms]
[09:18:12.752] GET http://new server/wiki/skins/common/ajax.js?195 [HTTP/1.1 200 OK 625ms]
[09:18:12.765] GET http://new server/wiki/skins/common/mwsuggest.js?195 [HTTP/1.1 200 OK 641ms]
[09:18:12.778] GET http://new server/wiki/index.php?title=-&action=raw&gen=js&useskin=monobook [HTTP/1.1 200 OK 781ms]
[09:18:12.791] GET http://new server/wiki/images/fileicons/pdf.png [HTTP/1.1 200 OK 688ms]
[09:18:12.804] GET http://new server/wiki/images/fileicons/DOCX.png [HTTP/1.1 200 OK 703ms]
[09:18:12.837] GET http://new server/wiki/images/fileicons/DOC.png [HTTP/1.1 200 OK 688ms]
[09:18:12.858] GET http://new server/wiki/skins/common/images/poweredby_mediawiki_88x31.png [HTTP/1.1 200 OK 766ms]
[09:18:13.238] GET http://new server/wiki/skins/monobook/headbg.jpg [HTTP/1.1 200 OK 141ms]
[09:18:13.329] Unerwartetes Dateiende beim Suchen nach ',' oder '{'. Regelsatz wegen ungültigem Selektor ignoriert. @ http://new server/wiki/index.php?title=MediaWiki:Common.css&usemsgcache=yes&ctype=text%2Fcss&smaxage=18000&action=raw&maxage=18000:1
[09:18:13.352] Unerwartetes Dateiende beim Suchen nach Abschließende } eines ungültigen Regelsatzes. @ http://new server/wiki/index.php?title=MediaWiki:Common.css&usemsgcache=yes&ctype=text%2Fcss&smaxage=18000&action=raw&maxage=18000:1
[09:18:13.389] Unerwartetes Dateiende beim Suchen nach ',' oder '{'. Regelsatz wegen ungültigem Selektor ignoriert. @ http://new server/wiki/index.php?title=MediaWiki:Print.css&usemsgcache=yes&ctype=text%2Fcss&smaxage=18000&action=raw&maxage=18000:1
[09:18:13.412] Unerwartetes Dateiende beim Suchen nach Abschließende } eines ungültigen Regelsatzes. @ http://new server/wiki/index.php?title=MediaWiki:Print.css&usemsgcache=yes&ctype=text%2Fcss&smaxage=18000&action=raw&maxage=18000:1
[09:18:13.531] GET http://new server/wiki/skins/monobook/KHTMLFixes.css [HTTP/1.1 200 OK 0ms]
[09:18:13.554] GET http://old server:1000/wiki/index.php?title=Benutzer:JavaScript/extraeditbuttons.js&action=raw&ctype=text/javascript&dontcountme=s [HTTP/1.1 200 OK 1328ms]
[09:18:14.873] GET http://old server:1000/wiki/index.php?title=Benutzer:JavaScript/XEB/live.css&action=raw&ctype=text/css&dontcountme=s [HTTP/1.1 200 OK 469ms]
[09:18:15.097] GET http://new server/wiki/skins/monobook/bullet.gif [HTTP/1.1 200 OK 0ms]
[09:18:15.214] GET http://new server/wiki/skins/monobook/user.gif [HTTP/1.1 200 OK 15ms]
[09:18:15.239] GET http://new server/wiki/skins/Automation/Logo/bla135x135.png [HTTP/1.1 200 OK 15ms]