站点返回一个对话框,类似于 mime 文件保存而不是执行 php 文件并返回 html

发布于 2024-11-19 09:53:28 字数 835 浏览 0 评论 0 原文

我一直在运行一个 wp 3.0 网站,最近需要更新 apache 和 php。升级进展顺利,但一些核心 wp 功能已丢失。

现在,当我进入帖子并尝试使用媒体上传实用程序时。我可以使用前 2 个选项卡中的文件上传功能,但是当我尝试查看图库或库时,Firefox 会提示打开或保存文件,而不是返回图库 html。

我在 Chrome 中尝试了同样的操作,最终出现一个屏幕,显示

No data received
Unable to load the webpage because the server sent no data.
Here are some suggestions:
Reload this web page later.
Error 324 (net::ERR_EMPTY_RESPONSE): The server closed the connection without sending any data.

我已经检查了 apache 配置文件,并且其中包含以下内容。 尽管顺序不同,但它们都位于文件中的某个位置,并且在升级之前就存在。

LoadModule php5_module        libexec/apache22/libphp5.so
DirectoryIndex index.html index.php
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps

我还检查了 mime.types 文件,以确保其中没有任何 mime 类型,而且确实没有。

如果有人遇到过这种情况,那么让我知道发生了什么事将是一个很大的帮助。

I've been running a wp 3.0 site and recently needed to update apache and php. The upgrade went fine but some of the core wp functionality has been lost.

Now when I go into a post and attempt to use the media upload utility. I can use the the file upload functions from the first 2 tabs but when I try to view the Gallery or the Library Firefox prompts to open or save the file, rather than returning the Gallery html.

I attempted the same thing in Chrome and ended up with a screen stating

No data received
Unable to load the webpage because the server sent no data.
Here are some suggestions:
Reload this web page later.
Error 324 (net::ERR_EMPTY_RESPONSE): The server closed the connection without sending any data.

I already checked the apache config file and the following is included in it.
Though not in that order they are all in the file at some location and were there previous to the upgrade.

LoadModule php5_module        libexec/apache22/libphp5.so
DirectoryIndex index.html index.php
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps

I also checked the mime.types file to make sure there wasn't any mime-types in there and there wasn't.

If anyone has had this happen to them it would be a great assistance in letting me know what's going on.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(2

太傻旳人生 2024-11-26 09:53:28

您应该用新的文件覆盖损坏的核心文件,唯一不应该触摸的文件夹是 /wp-content 并且不要覆盖您的 wp-config.php 文件。

You should overwrite your corrupted core file with fresh ones, the only folder you shouldn't touch is /wp-content and do not overwrite your wp-config.php file.

浅蓝的眸勾画不出的柔情 2024-11-26 09:53:28

与其说是答案,不如说是解释。我正在运行旧版 freebsd 安装的网站,问题的根本原因是 php 使用的 gd 库。其中一个函数调用 imagetypes() 导致了一个错误,该错误未记录在任何地方并关闭了 Apache 连接。

当扩展被删除后,该网站工作正常。因此,这种特殊情况将通过更新 freebsd 和所有 apache/php 库来解决。

Not so much an answer, as an explanation. I'm running the site an older freebsd install and the root cause of the issue is the gd library used by php. One of the function calls, imagetypes(), was causing an error that was not being logged anywhere and closing the Apache connection.

When the extension is removed the site worked fine. So this particular situation is going to be fixed by updating freebsd and all apache/php libraries.

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