[Rögzített Error] Meg nem definiált wp() függvény hívása a wp-blog-header.php fájlban

O hiba amely több blogon is megjelent számomra WordPress miután egyik szerverről a másikra kerültek, és megvoltak szerkesztette a fájlt wp-config.php. "Call to undefined function wp() in wp-blog-header.php".

A hiba oka: – Úgy tűnik, hogy a fájl wp-config.php szerkesztés után elveszti sorait. Pontosabban, az összes php kód egy sorban jelenik meg. Nem tudom mi a pontos oka. Valószínűleg php fájlszerkesztő probléma.

[Rögzített Error] Call to undefined function wp() in wp-blog-header.php

megoldás: Másolás és csere új fájlra wp-config.php amelyben beállíthatja az adatbázist, a felhasználói adatbázist, a belépést és az előtagot.

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

A hiba a fájl frissítése után eltűnt wp-config.php al WordPress.

Technológiai rajongóként örömmel írok a StealthSettings.com-on 2006 óta. Széles körű tapasztalatom van operációs rendszerekkel: macOS, Windows és Linux, valamint programozási nyelvekkel és blogolási platformokkal (WordPress) és online áruház platformokkal (WooCommerce, Magento, PrestaShop).

Hogyan » WordPress » [Rögzített Error] Meg nem definiált wp() függvény hívása a wp-blog-header.php fájlban
Írj hozzászólást