O napaka ki se mi je pojavil na več blogih WordPress potem ko so bili premaknjeni z enega strežnika na drugega in imeli uredil datoteko wp-config.php. "Call to undefined function wp() in wp-blog-header.php".
Vzrok za napako: – Zdi se, da datoteka wp-config.php po urejanju izgubi svoje vrstice. Natančneje, vsa koda php se pojavi v eni vrstici. Ne vem kaj je točen vzrok. Verjetno gre za težavo z urejevalnikom datotek php.
[Popravljeno Error] Call to undefined function wp() in wp-blog-header.php
rešitev: Kopiraj in zamenjaj v novo datoteko wp-config.php
v kateri nastavite svojo bazo podatkov, bazo podatkov uporabnikov, prehod in predpono.
<?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');
?>
Napaka je po tej posodobitvi v datoteki izginila wp-config.php
al WordPress.