On Tuesday 21 April 2009 04:16:35 pm Christian Boltz wrote:
Hello,
Frank, I bet for a glass of wine ("payable" at LinuxTag) that I know what's wrong and how to solve it. If you hope that I have to pay it, just say yes to this bet ;-)
(Please decide before reading the text below.)
:-D ...
I'm quite sure this won't go away with a new mediawiki version.
Frank, do you have access to the error_log?
My guess is that the PHP memory_limit is hit which can cause the '500' error. This should be recorded in the error_log.
I just tested this by copying Portal/All to my private wiki. After clicking the preview button, I get a nice error_log entry:
[Tue Apr 21 22:48:42 2009] [error] [client 10.8.0.6] PHP Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 27068 bytes) in .../includes/parser/Parser.php on line 1791
Direct hit :-)
Excellent job Christian.
There's one thing you (or the server admin) probably won't like: I had to increase the memory_limit to 46M to make the preview work. Saving the page will probably need even more RAM if I got Rajko's mail right. (I'd recommend 64M - the server admin will probably disagree *g*)
Guessed background: Mediawiki has to do lots of database work to render the page (like checking if the target page of every link exists). When saving the page, it probably also has to update lots of database entries for various pages - just think about "what links here" for every page linked in Portal/All ;-)
BTW: I can't reproduce the error with the current version of Portal/All, but http://en.opensuse.org/index.php?title=Portal/All&oldid=70001 still results in an empty page with a 500 (internal server error) status code:
The thing worked fine for quite some time. Even now it has no problem with 160K text, but 1600 links kills the show. I guess that is better to explain users to create smaller index pages, if for no other reason, it is easier to navigate them. I'm quite happy with new design. -- Regards, Rajko http://news.opensuse.org/category/people-of-opensuse/ -- To unsubscribe, e-mail: opensuse-wiki+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-wiki+help@opensuse.org