开发者

mediaWiki gives 500 internal server error when editing Main_Page

开发者 https://www.devze.com 2023-03-15 16:10 出处:网络
i am getting a 500 internal server error when editing the Main_Page in mediaWiki 1.16. it was working fine before, it started to happen suddenly and i am not sure why is this happening.

i am getting a 500 internal server error when editing the Main_Page in mediaWiki 1.16.

it was working fine before, it started to happen suddenly and i am not sure why is this happening.

creating/editing other pages work completely fine. it just happens when editing Main_Page.

someone please help.

i am using mediaWiki 1.16.

this is the error log:

[24-Jun-2011 07:41:49] "" is not a valid magic thingie for "interlanguage" 

[24-Jun-2011 07:41:49] PHP Warning: ini_set() has been disabled for security reasons in /home/britishi/public_html/wiki/includes/db/Database.php on line 371 

[2开发者_运维问答4-Jun-2011 07:41:49] PHP Warning: ini_set() has been disabled for security reasons in /home/britishi/public_html/wiki/includes/db/Database.php on line 378

This is the .htaccess

RewriteEngine On
RewriteBase /wiki
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^wiki/(.*)$ ./index.php?title=$1 [PT,L,QSA]
RewriteCond %{HTTP_HOST} ^en\.sitename\.info$ [OR]
RewriteCond %{HTTP_HOST} ^www\.en\.sitename\.info$
RewriteRule ^/?$ "http\:\/\/en\.sitename\.info\/wiki\/Main_Page" [R=301,L]

RewriteCond %{HTTP_HOST} ^fr\.sitename\.info$ [OR]
RewriteCond %{HTTP_HOST} ^www\.fr\.sitename\.info$
RewriteRule ^/?$ "http\:\/\/fr\.sitename\.info\/wiki\/Main_Page" [R=301,L]

Ok Solved!

It was because of SubPageList3 extension i was using so i put an if statement in the SubPageList3.php to attach the hook only if the page being rendered is not an edit page.


A 500 error means the script had an error and couldn't be run. Typically you will find a more detailed error message in a log file: /var/log/messages or the Apache error log (typically /var/log/httpd/error_log). That should get you enough information to at least narrow down the source of the issue.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号