O pogreška koji mi se pojavio na nekoliko blogova WordPress nakon što su premješteni s jednog poslužitelja na drugi i imali uredio datoteku wp-config.php. 'Call to undefined function wp() in wp-blog-header.php".
Uzrok pogreške: – Čini se da je spis wp-config.php gubi svoje redove nakon uređivanja. Konkretno, sav php kod pojavljuje se u jednom retku. Ne znam koji je točan uzrok. Vjerojatno je problem s uređivačem php datoteka.
[Popravljeno Error] Call to undefined function wp() in wp-blog-header.php
Otopina: Kopiraj i zamijeni u novu datoteku wp-config.php
u kojem možete postaviti svoju bazu podataka, bazu podataka korisnika, prolaz i prefiks.
<?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');
?>
Pogreška je nestala nakon ovog ažuriranja u datoteci wp-config.php
al WordPress.