O fout die me op verschillende blogs verscheen WordPress nadat ze van de ene server naar de andere waren verplaatst en hadden het bestand bewerkt wp-config.php. "Call to undefined function wp() in wp-blog-header.php'.
Als gevolg van fout: – Het lijkt erop dat het bestand wp-config.php het verliest zijn regels nadat het is bewerkt. Concreet verschijnt alle php-code op één regel. Wat de precieze oorzaak is weet ik niet. Waarschijnlijk een probleem met de php-bestandseditor.
[Vast Error] Call to undefined function wp() in wp-blog-header.php
Oplossing: Kopiëren en vervangen naar een nieuw bestand wp-config.php
waarin u uw database, gebruikersdatabase, pas en prefix kunt instellen.
<?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');
?>
De fout verdween na deze update in het bestand wp-config.php
al WordPress.