Fatal error: Call to undefined function wp() in /home/user/public_html/wp-blog-header.php on line 18

O eroare care mi-a aparut la mai multe bloguri  WordPress dupa ce au fost mutate de pe un server pe altul si au avut editat fisierul wp-config.php.

Fatal error: Call to undefined function wp() in /home/user/public_html/wp-blog-header.php on line 18

Cauza eroare: – Se pare ca fisierul wp-config.php isi pierde liniile dupa ce este editat. Mai exact, tot codul php apare pe un singur rand. Nu stiu care este cauza exacta. Probabil din cauza editorului de fisiere php.

Rezolvare: Copy & Replace la un nou fisier wp-config.php in care sa va setati baza de date, user baza de date, pass si prefix.

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

Fatal error: Call to undefined function wp() in /home/user/public_html/wp-blog-header.php on line 18

Fatal error: Call to undefined function wp() in /home/user/public_html/wp-blog-header.php on line 18

About the author

Stealth L.P.

Fondator si editor Stealth Settings, din 2006 pana in prezent.
Experienta pe sistemele de operare Linux (in special CentOS), Mac OS X , Windows XP > Windows 10 si WordPress (CMS).

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.