[हल किया गया Error] wp-blog-header.php में अपरिभाषित फ़ंक्शन wp () पर कॉल करें

O त्रुटि जो मुझे कई ब्लॉग्स पर दिखाई दिया WordPress के बाद वे एक सर्वर से दूसरे में ले जाया गया और था फ़ाइल को संपादित किया wp-config.php. 'Call to undefined function wp() in wp-blog-header.php".

त्रुटि का कारण: - ऐसा लगता है कि फ़ाइल wp-config.php यह संपादित होने के बाद अपनी पंक्तियाँ खो देता है। विशेष रूप से, सभी PHP कोड एक पंक्ति में दिखाई देते हैं। मुझे नहीं पता कि सही कारण क्या है। शायद एक PHP फ़ाइल संपादक समस्या।

[हल किया गया Error] Call to undefined function wp() in wp-blog-header.php

समाधान: प्रतिलिपि बनाएँ और एक नई फ़ाइल में बदलें wp-config.php जिसमें अपना डेटाबेस, यूजर डेटाबेस, पास और प्रीफिक्स सेट करना है।

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

फ़ाइल में इस अद्यतन के बाद त्रुटि गायब हो गई wp-config.php al WordPress.

तकनीकी प्रेमी के रूप में, मैं 2006 से StealthSettings.com पर खुशी से लेख लिख रहा हूँ। मेरे पास ऑपरेटिंग सिस्टम्स: macOS, Windows और Linux, साथ ही प्रोग्रामिंग भाषाओं और ब्लॉगिंग प्लेटफ़ॉर्म्स (WordPress) और ऑनलाइन स्टोर्स (WooCommerce, Magento, PrestaShop) के साथ विविध अनुभव है।

कैसे करें » WordPress » [हल किया गया Error] wp-blog-header.php में अपरिभाषित फ़ंक्शन wp () पर कॉल करें
एक टिप्पणी छोड़ दो