Wordpress:在线移动网站500内部错误

时间:2011-11-24 00:24:17

标签: wordpress internal-server-error

您好我在localhost上有一个工作网站,我想在线移动。 我正在使用WP 3.2.1,我从本地主机导出了数据库。 之后,我刚用文本编辑器打开.sql文件,并将所有'http:// localhost / mysite'替换为'http://mynewdomain.com'。 之后我在线编辑了新目标数据库的wp-config.php文件,所以我在网上上传了所有内容。 我可以正确看到index.php页面(除了espanol,中文等字符坏了)和其他几个分区但是如果我尝试访问wp-admin部分..每当我尝试浏览到任何其他网站的部分时,我得到了以下错误:

Warning: Cannot modify header information - headers already sent by (output started at /web/htdocs/www.***.it/home/wp-content/themes/ottaviano/shortcodes.php:55) in /web/htdocs/www.***.it/home/wp-includes/pluggable.php on line 934

我的htaccess

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

已解决:我必须启用输出缓冲,一切都很好!

2 个答案:

答案 0 :(得分:2)

尝试临时删除.htaccess文件,看看您是否可以再次访问管理员。

还原你.htaccess并尝试添加:

define('WP_DEBUG', true);

进入wp-config.php的顶部如果这不起作用,您还可以尝试将以下代码添加到wp-config.php

的底部
ini_set('display_errors',1);
error_reporting(E_ALL);

希望您收到一些错误消息,告诉您发生了什么。

答案 1 :(得分:0)

将Wordpress网站从一个域移动到另一个域时遇到类似的问题(错误500 - 找不到页面)。

显然,在模板文件中的开始<?php声明之前,空白字符就会找到它 您可以通过在exit("wtf")?和&#34; WTF-ing&#34;中插入index.php来追踪错误。你对受影响文件的方式。

在我的情况下,原因是从基于Apple的操作系统迁移到Windows,CR / LF处理方面存在差异。

相关问题