我试图将wordpress页面从本地服务器移动到公共服务器。
我通过ftp上传了这些文件,用在线服务器的数据更改了wp-config.php文件,导出了mysql数据库表,并将它们通过到在线db中,最后我更改了wp_options表中的urls。
不幸的是,结果是“什么也没有”。也就是说,在我更改wp-config.php文件之前,它说了一些类似于数据库错误的内容,但现在甚至连一个错误都没有。
有人知道我做错了什么吗?
从注释中编辑:启用错误报告时的错误消息是:
警告:缺少第6行调用的/mnt/webn/e3/40/54063140/htdocs/index.php,第8行/mnt/webn/e3/40/54063140/htdocs/index.php中定义的未定义变量:未定义变量:第9行第20行变量: Parse错误:语法错误,意外:‘in /mnt/webn/E3/htdocs/wp-config.php,第27行。
在这里,我的wp-config.php文件没有注释:
<?php
define('DB_NAME', 'AAA');
define('DB_USER', 'BBB');
define('DB_PASSWORD', 'CCC');
define('DB_HOST', ‘DDD.com');
define('DB_CHARSET', 'utf8');
define('DB_COLLATE', '');
/**#@+
*/
define('AUTH_KEY', 'XXXX');
define('SECURE_AUTH_KEY', 'YYYY');
define('LOGGED_IN_KEY', 'DDDD');
define('NONCE_KEY', 'JJJJ');
define('AUTH_SALT', 'LLLL');
define('SECURE_AUTH_SALT', 'OOOO');
define('LOGGED_IN_SALT', 'PPPP');
define('NONCE_SALT', 'UUUU');
/**#@-*/
$table_prefix = 'wp_';
define('WPLANG', 'de_DE');
/**
* For developers: WordPress debugging mode.
*
* Change this to true to enable the display of notices during development.
* It is strongly recommended that plugin and theme developers use WP_DEBUG
* in their development environments.
*/
define('WP_DEBUG', false);
/* That's all, stop editing! Happy blogging. */
/** Absolute path to the WordPress directory. */
if ( !defined('ABSPATH') )
define('ABSPATH', dirname(__FILE__) . '/');
/** Sets up WordPress vars and included files. */
require_once(ABSPATH . 'wp-settings.php');发布于 2014-03-15 18:26:22
根据您的错误消息,您在第27行或可能在前面的行中输入了wp-config.php错误。首先修复这个问题,其他错误可能会自行消失。
https://stackoverflow.com/questions/22427622
复制相似问题