O 오류 여러 블로그에서 나에게 나타났습니다. WordPress 한 서버에서 다른 서버로 이동한 후 파일을 편집했습니다 wp-config.php. 'Call to undefined function wp() in wp-blog-header.php".
오류의 원인 : – 파일인 것 같습니다. WP-config.php를 편집한 후에는 줄을 잃습니다. 특히 모든 PHP 코드는 한 줄에 나타납니다. 정확한 원인이 무엇인지 모르겠습니다. 아마도 php 파일 편집기 문제 일 것입니다.
[결정된 Error] Call to undefined function wp() in wp-blog-header.php
해결: 새 파일로 복사 및 교체 wp-config.php
데이터베이스, 사용자 데이터베이스, 패스 및 접두사를 설정합니다.
<?php
// ** MySQL settings - You can get this info from your web host ** //
/** The name of the database for WordPress */
define('DB_NAME', 'putyourdbnamehere');
/** MySQL database username */
define('DB_USER', 'usernamehere');
/** MySQL database password */
define('DB_PASSWORD', 'yourpasswordhere');
/** MySQL hostname */
define('DB_HOST', 'localhost');
/** Database Charset to use in creating database tables. */
define('DB_CHARSET', 'utf8');
/** The Database Collate type. Don't change this if in doubt. */
define('DB_COLLATE', '');
define('AUTH_KEY', 'put your unique phrase here');
define('SECURE_AUTH_KEY', 'put your unique phrase here');
define('LOGGED_IN_KEY', 'put your unique phrase here');
define('NONCE_KEY', 'put your unique phrase here');
$table_prefix = 'wp_';
define ('WPLANG', '');
/* That's all, stop editing! Happy blogging. */
/** WordPress 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');
?>
파일에서 이 업데이트 후 오류가 사라졌습니다. wp-config.php
al WordPress.