My remote server supplier just decided & did migrate my Mediawiki site at http://www.physicswiki.net
to a much faster more stable piece of hardware. I was fine with this, however after I got all (I think) of the glitches fixed from the move and now have the system up again: I have a crap load of formatting issues with the site. I looks like the system is displaying everything as plain html code rather that wiki code. The menus are all gone from the sidebar etc. I have never been through a migration like this & I have only shell access to the base Debian 6 linux that the site is running on. I need opinions, tips, virtually any help to clean this up. This site is under HEAVY construction & development & I want to keep it going properly. Thanks John
It looks like you may have an issue with where resources (Javascript and CSS) is being pulled from. Check your localsettings.php for any fixed IP addresses or file paths that may not be the same on the new box.
On Mon, Feb 3, 2014 at 12:06 PM, John W. Foster jfoster81747@gmail.comwrote:
My remote server supplier just decided & did migrate my Mediawiki site at http://www.physicswiki.net
to a much faster more stable piece of hardware. I was fine with this, however after I got all (I think) of the glitches fixed from the move and now have the system up again: I have a crap load of formatting issues with the site. I looks like the system is displaying everything as plain html code rather that wiki code. The menus are all gone from the sidebar etc. I have never been through a migration like this & I have only shell access to the base Debian 6 linux that the site is running on. I need opinions, tips, virtually any help to clean this up. This site is under HEAVY construction & development & I want to keep it going properly. Thanks John
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
On Mon, 2014-02-03 at 13:20 -0500, John wrote:
It looks like you may have an issue with where resources (Javascript and CSS) is being pulled from. Check your localsettings.php for any fixed IP addresses or file paths that may not be the same on the new box.
I do not have any fixed IP addresses in the LocalSetting.php file. I did read on Mediawiki that the actual $IP variable is set in a file called WebStart.php & is set up automatically. I did find that file, but saw no IP addreses in it. I am now following up on that lead. It appears that I may need to completely reconfigure the mediawiki installation as I have no experience of managing this issue. I really do not want to do a reinstall if I can keep from having to. Thanks!! John
After doing so digging I noticed that there may be something broken in your rewrite rules When I click on any link the URL doesnt change and the links within the site show http://162.251.112.58/index.php/Portal:Chemistryinstead of the domain
On Mon, Feb 3, 2014 at 1:49 PM, John Foster jfoster81747@verizon.netwrote:
On Mon, 2014-02-03 at 13:20 -0500, John wrote:
It looks like you may have an issue with where resources (Javascript and CSS) is being pulled from. Check your localsettings.php for any fixed IP addresses or file paths that may not be the same on the new box.
I do not have any fixed IP addresses in the LocalSetting.php file. I did read on Mediawiki that the actual $IP variable is set in a file called WebStart.php & is set up automatically. I did find that file, but saw no IP addreses in it. I am now following up on that lead. It appears that I may need to completely reconfigure the mediawiki installation as I have no experience of managing this issue. I really do not want to do a reinstall if I can keep from having to. Thanks!! John
The issue I see is that your CSS and JavaScript is being sent as text/html instead of the correct text/css and text/javascript which results in parsing errors (since it is not HTML) and thus your styles aren't being displayed. I'm not entirely sure what would cause this but found a few related problems and solutions:
http://www.mediawiki.org/wiki/Thread:Project:Support_desk/CSS_won%27t_load:_... http://stackoverflow.com/questions/14245442/my-mediawiki-site-wont-serve-sty...
These seem to be related to your problem somehow as loading the CSS directly results in the correct MIME type.
On 3 February 2014 13:49, John Foster jfoster81747@verizon.net wrote:
On Mon, 2014-02-03 at 13:20 -0500, John wrote:
It looks like you may have an issue with where resources (Javascript and CSS) is being pulled from. Check your localsettings.php for any fixed IP addresses or file paths that may not be the same on the new box.
I do not have any fixed IP addresses in the LocalSetting.php file. I did read on Mediawiki that the actual $IP variable is set in a file called WebStart.php & is set up automatically. I did find that file, but saw no IP addreses in it. I am now following up on that lead. It appears that I may need to completely reconfigure the mediawiki installation as I have no experience of managing this issue. I really do not want to do a reinstall if I can keep from having to. Thanks!! John
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
On Mon, 2014-02-03 at 13:59 -0500, Dave Humphrey wrote:
The issue I see is that your CSS and JavaScript is being sent as text/html instead of the correct text/css and text/javascript which results in parsing errors (since it is not HTML) and thus your styles aren't being displayed. I'm not entirely sure what would cause this but found a few related problems and solutions:
index.php/index.php/Main_PageMain_Page http://www.mediawiki.org/wiki/Thread:Project:Support_desk/CSS_won%27t_load:_...
http://stackoverflow.com/questions/14245442/my-mediawiki-site-wont-serve-sty...
These seem to be related to your problem somehow as loading the CSS directly results in the correct MIME type.
I have $wgScriptPath = "";
in LocalSettings.php; That was how the mediawiki installation set it up. Is that something that has a variable located in another file. It has worked for several months before the move. Thanks' John
I think it is more to do with how you have redirects setup on your new site, as the other John commented on. These redirects are "messing up" how your JS/CSS files load which results in the current appearance. Trying moving the wiki back to "ugly" links (i.e: index.php?title=Something) in LocalSettings.php and make sure that works fine. If it does you can try to figure out what is wrong with your redirects.
On 3 February 2014 14:15, John Foster jfoster81747@verizon.net wrote:
On Mon, 2014-02-03 at 13:59 -0500, Dave Humphrey wrote:
The issue I see is that your CSS and JavaScript is being sent as text/html instead of the correct text/css and text/javascript which results in parsing errors (since it is not HTML) and thus your styles aren't being displayed. I'm not entirely sure what would cause this but found a few related problems and solutions:
index.php/index.php/Main_PageMain_Page
http://www.mediawiki.org/wiki/Thread:Project:Support_desk/CSS_won%27t_load:_...
http://stackoverflow.com/questions/14245442/my-mediawiki-site-wont-serve-sty...
These seem to be related to your problem somehow as loading the CSS directly results in the correct MIME type.
I have $wgScriptPath = "";
in LocalSettings.php; That was how the mediawiki installation set it up. Is that something that has a variable located in another file. It has worked for several months before the move. Thanks' John
mediawiki-l@lists.wikimedia.org