[Tetap Error] Panggil ke fungsi yang tidak terdefinisi wp() di wp-blog-header.php

O error yang muncul di hadapan saya di beberapa blog WordPress setelah mereka dipindahkan dari satu server ke server lain dan memiliki mengedit file wp-config.php. 'Call to undefined function wp() in wp-blog-header.php".

Penyebab kesalahan: – Sepertinya file wp-config.php itu kehilangan garisnya setelah diedit. Secara khusus, semua kode php muncul dalam satu baris. Saya tidak tahu apa penyebab pastinya. Mungkin masalah editor file php.

[Tetap Error] Call to undefined function wp() in wp-blog-header.php

Larutan: Salin & Ganti ke file baru wp-config.php di mana untuk mengatur database Anda, database pengguna, pass dan awalan.

<?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'); 
?>

Kesalahan menghilang setelah pembaruan ini di file wp-config.php al WordPress.

How to » WordPress » [Tetap Error] Panggil ke fungsi yang tidak terdefinisi wp() di wp-blog-header.php

Bergairah tentang teknologi, saya suka menguji dan menulis tutorial tentang sistem operasi macOS, Linux, Windows, tentang WordPress, WooCommerce dan konfigurasikan server web LEMP (Linux, NGINX, MySQL dan PHP). saya menulis di StealthSettings.com sejak 2006, dan beberapa tahun kemudian saya mulai menulis di iHowTo.Tips tutorial dan berita tentang perangkat di ekosistem Apple: iPhone, iPad, Apple Tonton, HomePod, iMac, MacBook, AirPods, dan aksesori.

Tinggalkan Komentar