[결정된 Error] wp-blog-header.php에서 정의되지 않은 함수 wp() 호출

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.

기술에 대한 열정, 나는 기쁨으로 글을 씁니다. StealthSettings2006년부터 .com을 운영하고 있습니다. 저는 운영 체제 분야에서 폭넓은 경험을 갖고 있습니다. macOS, Windows 과 Linux, 프로그래밍 언어 및 블로그 플랫폼(WordPress) 및 온라인 상점의 경우(WooCommerce, 마젠토, 프레스타샵).

방법 » WordPress » [결정된 Error] wp-blog-header.php에서 정의되지 않은 함수 wp() 호출
코멘트 남김