mediaWiki 在编辑 Main_Page 时给出 500 内部服务器错误

发布于 2024-11-16 18:33:22 字数 1312 浏览 0 评论 0原文

我在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

命硬 2024-11-23 18:33:22

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文