I recently installed WikiMedia code base on a Windows system and it has been running quite well for the past 2-3 months.
Today, I modified (for about the 10th time) the DefaultSettings.php file in the Includes directory so that I could upload a .exe file (yes, trouble, but this is in a relatively secure environment). Anyway, the exe was a flash demo that I was attaching to a wiki page.
The upload was over 5MB (I've successfully uploaded as much as a MB or 2, but not more).
When the upload was completed, I started to get a LOT of problems with the wiki, to wit:
1. Any page not cached in memory returns blank (not edit mode, just blank). Specifically: <html><body></body></html>
2. Any special page request (edit, discuss, history) returns blank, specifically <html><body></body></html>
3. I do not have direct access to the wiki server to do a reboot (its in my house, and I'm in another state).
Any ideas on how to jump-start my wiki?
kacz
On 28/06/05, john kaczmarowski jkacz@completeis.com wrote:
Today, I modified (for about the 10th time) the DefaultSettings.php file in the Includes directory so that I could upload a .exe file (yes, trouble, but this is in a relatively secure environment). Anyway, the exe was a flash demo that I was attaching to a wiki page.
You should not edit DefaultSettings.php. When you need to change a setting, copy the setting line to LocalSettings.php (the main one) (or whatever it's called) and edit it there.
I'm not sure what you can do now.
Tomer Chachamu wrote:
On 28/06/05, john kaczmarowski jkacz@completeis.com wrote:
Today, I modified (for about the 10th time) the DefaultSettings.php file in the Includes directory so that I could upload a .exe file (yes, trouble, but this is in a relatively secure environment). Anyway, the exe was a flash demo that I was attaching to a wiki page.
You should not edit DefaultSettings.php. When you need to change a setting, copy the setting line to LocalSettings.php (the main one) (or whatever it's called) and edit it there.
I'm not sure what you can do now.
Thanks for the note, here's the deal:
1. The specific changes were as follows:
$wgFileExtensions = array( 'doc', 'pdf', 'xls', 'mpp', 'vsd', 'pdm', 'png', 'gif', 'jpg', 'jpeg' );
(note I added doc, pdf, xls, mpp, vsd and pdm) I also added exe, but since have taken it out.
2. These settings do not exist in LocalSettings, and in fact, this sort of edit has workd well in the past.
3. I can replace the DefaultSettings file with the originally delivered default settings file, and I acheive slightly better results. To wit:
a. Main_Page returns (prior returning DefaultSettings, this page would yield only a <html></html> page just like all the rest.
b. Many pages have returned to pre-crash state while others return only a <html></html> opage.
c. Special Pages, login pages, etc. all return <html> </html>
john kaczmarowski wrote:
Tomer Chachamu wrote:
On 28/06/05, john kaczmarowski jkacz@completeis.com wrote:
Today, I modified (for about the 10th time) the DefaultSettings.php file in the Includes directory so that I could upload a .exe file (yes, trouble, but this is in a relatively secure environment). Anyway, the exe was a flash demo that I was attaching to a wiki page.
You should not edit DefaultSettings.php. When you need to change a setting, copy the setting line to LocalSettings.php (the main one) (or whatever it's called) and edit it there.
I'm not sure what you can do now.
Thanks for the note, here's the deal:
- The specific changes were as follows:
$wgFileExtensions = array( 'doc', 'pdf', 'xls', 'mpp', 'vsd', 'pdm', 'png', 'gif', 'jpg', 'jpeg' );
(note I added doc, pdf, xls, mpp, vsd and pdm) I also added exe, but since have taken it out.
- These settings do not exist in LocalSettings, and in fact, this sort
of edit has workd well in the past.
- I can replace the DefaultSettings file with the originally delivered
default settings file, and I acheive slightly better results. To wit:
a. Main_Page returns (prior returning DefaultSettings, this page would yield only a <html></html> page just like all the rest.
b. Many pages have returned to pre-crash state while others return only a <html></html> opage.
c. Special Pages, login pages, etc. all return <html> </html>
last thing:
I re-installed the wiki (clean on a new machine physically closer to me by a factor of about 1000)
I copied the wikidb from the old wiki server to the new wiki server
I copied the /images directory from old to new
I created a new main_page (some reason that one didn't come along with the database)
All is now good.
Simply replacing the defaultsettings.php with a fresh one from the wiki install tarball didn't work, nor did various attempts to work around the problems. Very strange, but fixed nonetheless...
kacz
I'm glad to hear it worked.
The reason (I know of) that DefaultSettings.php should not be edited is that your changes will disappear when upgrading your wiki.
As I said in my original message, COPY the relevant block of settings from DefaultSettings.php into LocalSettings.php, and edit them there. :)
Tomer Chachamu wrote:
I'm glad to hear it worked.
The reason (I know of) that DefaultSettings.php should not be edited is that your changes will disappear when upgrading your wiki.
As I said in my original message, COPY the relevant block of settings from DefaultSettings.php into LocalSettings.php, and edit them there. :)
None of which explains why copying the defaultsettings.php from the deistribution did not fix the original problem. When I compare the defaultsettings.php form distribution to the one that appears after installation, they are in fact the same. So, while I solved my immediate problem, I have yet to see how that problem occurred or how to avoid it in the future. :-)
wikitech-l@lists.wikimedia.org