[Fiksēts Error] Nedefinētas funkcijas wp() izsaukšana failā wp-blog-header.php

O kļūda kas man parādījās vairākos emuāros WordPress pēc tam, kad tie tika pārvietoti no viena servera uz otru un bija rediģēja failu wp-config.php. "Call to undefined function wp() in wp-blog-header.php".

Iemesls kļūdas: – Šķiet, ka fails WP-config.php pēc rediģēšanas tas zaudē savas rindas. Konkrēti, viss php kods parādās vienā rindā. Es nezinu, kāds ir precīzs iemesls. Iespējams, php failu redaktora problēma.

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

Šķīdums: kopēt un aizstāt ar jaunu failu wp-config.php kurā iestatīt savu datu bāzi, lietotāju datu bāzi, caurlaidi un prefiksu.

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

Kļūda pazuda pēc šī faila atjauninājuma wp-config.php al WordPress.

kā uz » WordPress » [Fiksēts Error] Nedefinētas funkcijas wp() izsaukšana failā wp-blog-header.php

Aizraujos ar tehnoloģijām, man patīk testēt un rakstīt pamācības par operētājsistēmām macOS, Linux, Windows, apmēram WordPress, WooCommerce un konfigurējiet LEMP tīmekļa serverus (Linux, NGINX, MySQL un PHP). Es rakstu tālāk StealthSettings.com kopš 2006. gada, un dažus gadus vēlāk es sāku rakstīt vietnē iHowTo.Tips apmācības un ziņas par ierīcēm ekosistēmā Apple: iPhone, iPad, Apple Skatīties, HomePod, iMac, MacBook, AirPods un piederumi.

Leave a Comment