[Sabit Error] wp-blog-header.php içindeki tanımsız wp() işlevine çağrı

O hata birkaç blogda bana görünen WordPress bir sunucudan diğerine taşındıktan ve dosyayı düzenledi wp-config.php. "Call to undefined function wp() in wp-blog-header.php".

Hata nedeniyle: – Görünüşe göre dosya wp-config.php düzenlendikten sonra satırlarını kaybeder. Spesifik olarak, tüm php kodu tek bir satırda görünür. Kesin sebebinin ne olduğunu bilmiyorum. Muhtemelen bir php dosya düzenleyici sorunu.

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

Çözüm: Kopyala ve yeni bir dosyaya değiştir wp-config.php veritabanınızı, kullanıcı veritabanınızı, geçiş ve önekinizi ayarlayacağınız yer.

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

Dosyadaki bu güncellemeden sonra hata kayboldu wp-config.php al WordPress.

Teknolojiye tutkulu, 2006 yılından beri StealthSettings.com'da yazıyorum. macOS, Windows ve Linux işletim sistemlerinde geniş deneyimim var, aynı zamanda programlama dilleri ve blog platformları (WordPress) ile online mağazalar için (WooCommerce, Magento, PrestaShop) bilgi sahibiyim.

nasıl » WordPress » [Sabit Error] wp-blog-header.php içindeki tanımsız wp() işlevine çağrı
Leave a Comment