O chyba ktorý sa mi objavil na viacerých blogoch WordPress potom, čo boli premiestnené z jedného servera na druhý a mali upravili súbor wp-config.php. "Call to undefined function wp() in wp-blog-header.php".
Vzhľadom k chybe: – Zdá sa, že spis wp-config.php po úprave stratí svoje riadky. Konkrétne sa celý php kód zobrazuje na jednom riadku. Neviem, aká je presná príčina. Pravdepodobne problém s editorom súborov php.
[Opravené Error] Call to undefined function wp() in wp-blog-header.php
Riešenie: Kopírovať a nahradiť do nového súboru wp-config.php
v ktorom nastavíte svoju databázu, databázu používateľov, prechod a predponu.
<?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');
?>
Chyba zmizla po tejto aktualizácii v súbore wp-config.php
al WordPress.