WordPress me PHP Errors Ko Turn Off Kaise Kare

WordPress me PHP Errors Ko Turn Off Kaise Kare ?

WordPress PHP errors ko display karne ke liye built-in tool ke sath aata hai. PHP warning aur issues developers ko code me aaye issues ko debug karne me help karta hai. Ek healthy, secure, aur well-performing website ke liye PHP error bahut important hai. Halaki ye behad unprofessional lagta hai jub ye aapke sabhi site visitors ko dikhayi dete hai. Aaj is article me hum aapko batayenge How To Turn Off PHP Errors In WordPress ?

PHP Errors Ko Kab Aur Kyu Turn Off Kare ?

Jin PHP errors ko hum apne site pe dekhte hai wo usually warning aur notices hote hai. Ye internal server error, syntax errors, or fatal errors, jaise nahi hote hai jo aapki website load hone se rok den.

Notice aur warning ek tarah ka error hota hai jo aapki site ko load hone se nahi rokte hai. In errors ka purpose developers ko code ke issues ko debug karne me help karna hota hai. Plugins aur theme developers is information ko theme aur plugin ke compatibility ko check karne ke liye karte hai.

Halaki agar aap ek theme, plugin ya custom website develop nahi kar rahe hai to in errors ko hidden hona chahye kyu ki agar ye errors front-end pe aapke website pe sabhi visitors dikhenge to ye ek bahut hi unprofessional hai. To aaeye dekhte hai how to turn off PHP errors in WordPress.

How To Turn Off PHP Errors In WordPress ?

PHP errors ko turn off karne ke liye aapko apne wp-config.php file ko edit karna hoga. Apne wp-config.php file ko access karne ke liye aapko server me FTP client ya cPanel File manager ki help se login karna hoga. 

turn off PHP errors

wp-config.php file WordPress install directory me store hota hai. WP-confi.php file me niche diye gaye line ko dhundhe.

define('WP_DEBUG', true);

Aisa ho sakta hai ke ye line pahle se hi False set ho, aise me aap niche diye gaye code dekehenge. 

define('WP_DEBUG', false);
turn off PHP errors

Dono cases me aapko in lines ki jaga niche diye gaye lines se replace karna hai.

ini_set('display_errors','Off');
ini_set('error_reporting', E_ALL );
define('WP_DEBUG', false);
define('WP_DEBUG_DISPLAY', false);

Changes ko save karna na bhoole aur wp-config file ko server pe phir se upload kar den.

Ab aap apne site pe visit kare, aap dekhenge ke aapke site se PHP errors, notices, aur warnings  disappear ho gya hoga.

WordPress Me PHP Errors Ko Turn On Kaise Kare ?

Agar aap website pe local server pe kaam kar rahe hai to aap error reporting ko turn on kar sakte hai. Us case me aapko apne wp-config.php file edit karna hoga aur aapko un codes ko niche diye gaye code se replace karna hoga jise aapne pahle add kiya tha. 

define('WP_DEBUG', true);
define('WP_DEBUG_DISPLAY', true);

Ye code wordpress me errors, warning aur notices ko phir se display karne lagega.

To Doston bas itnahi, Ummid hai aapko ye article ( How To Turn Off PHP Errors In WordPress ) informative laga hoga. Agar aapka koi swaaal hai to aap humse comment section me pooch sakte hain. Apke liye ye ( WordPress in Hindi ) course design kiya gya hai, Is Website pe apko WordPress Complete Course Hindi me mil jyega, Agr aap WordPress se related videos dekhna chahte hain to aap hmare WP Seekho YouTube Channel par bhi visit kar sakte hain.

Also Read :