mediaWiki 在编辑 Main_Page 时给出 500 内部服务器错误
我在 mediaWiki 1.16 中编辑 Main_Page 时收到 500 内部服务器错误。
以前工作正常,突然开始发生这种情况,我不知道为什么会发生这种情况。
创建/编辑其他页面工作完全正常。它只是在编辑 Main_Page 时发生。
请有人帮忙。
我正在使用 mediaWiki 1.16。
这是错误日志:
[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
[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 378
这是 .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]
好的解决了!
这是因为我正在使用 SubPageList3 扩展,所以我在 SubPageList3.php 中放置了一个 if 语句,仅当页面是时才附加挂钩呈现的不是编辑页面。
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
[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 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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
500 错误意味着脚本有错误并且无法运行。通常,您会在日志文件中找到更详细的错误消息:
/var/log/messages
或 Apache 错误日志(通常为/var/log/httpd/error_log
) 。这应该能为您提供足够的信息,至少可以缩小问题的根源。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.