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

O error which appeared to me more blogs WordPress after being moved from one server to another and had edited wp-config.php file.

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

Due to error: - It seems that the file wp-config.php lines loses after being edited. Specifically, all php code appears on one line. Do not know the exact cause. Probably because php file editor.

Solution: Copy & Replace to a new wp-config.php file to set up the database, database user, pass and 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. Do not 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 online 18

About the author

Stealth LP

Founder and editor Stealth SettingsIn 2006 date.
Experience on Linux operating systems (especially CentOS), Mac OS X, Windows XP> Windows 10 and WordPress (CMS).

Leave a Comment

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