[Parandatud Error] Määratlemata funktsiooni wp() kutsumine failis wp-blog-header.php

O viga mis ilmusid mulle mitmes blogis WordPress pärast seda, kui nad viidi ühest serverist teise ja olid muutis faili wp-config.php. "Call to undefined function wp() in wp-blog-header.php".

Pahandused: – Tundub, et fail wp-config.php see kaotab pärast redigeerimist oma read. Täpsemalt, kogu php-kood kuvatakse ühel real. Ma ei tea, mis on täpne põhjus. Tõenäoliselt php failiredaktori probleem.

[Parandatud Error] Call to undefined function wp() in wp-blog-header.php

lahendus: Kopeeri ja asenda uue failiga wp-config.php kus saate määrata oma andmebaasi, kasutajate andmebaasi, passi ja eesliide.

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

Viga kadus pärast seda faili värskendust wp-config.php al WordPress.

Tehnoloogiafännina olen alates 2006. aastast rõõmuga kirjutanud lehel StealthSettings.com. Mul on laialdased kogemused operatsioonisüsteemides: macOS, Windows ja Linux, samuti programmeerimiskeeltes ja blogiplatvormides (WordPress) ning veebipoodide ja platvormidega (WooCommerce, Magento, PrestaShop).

kuidas » WordPress » [Parandatud Error] Määratlemata funktsiooni wp() kutsumine failis wp-blog-header.php
Jäta kommentaar