• Techblog369, India
  • September 29, 2022

How to create PHP QR code and Save it to Database?

Hi In this Article I am going to show how to create QR code and save it to database also fetch QR Code in a Table Create a Page addqrcode.php in …

How to Send Multiple Files Attachment Mail using Laravel

Hi in this article i am going to show how to send multiple files attachment mail in Laravel. It’s simple example of Laravel send multiple attachment in mail. I explained simply …

Disable PHP Errors

PHP warnings and notices help builders debug troubles with their code. but it seems extremely unprofessional while they may be seen to all of your website visitors. In this articlewe are able to show you how to without difficulty flip off PHP mistakes in WordPress.

 

Why Should Turn off PHP Errors in WordPress?

occasionally the WordPress errors log file will create huge headache for a few users since it creates huge file in a few instancesit’s going to once in a while have an effect on the hosting too when you have most effective less area for your server. in order to avoid logging of blunders

 

Turning off PHP Errors in WordPress

 

For this part, you will need to edit the wp-config.php file.

Go to public_html directory and find wp-config.php file.

define('WP_DEBUG', true);

It is also possible, that this line is already set to false. In that case, you’ll see the following code:

define('WP_DEBUG', false);

 

 

In either case, you need to replace this line with the following code:

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

 

Save the changes.

Turning on PHP Errors in WordPress

If you are working on a local server or staging area, then you should turn on error reporting.

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

This code will allow WordPress to start displaying PHP errors, warnings, and notices again.

Thanks for reading….

 

 

 

Author

admin@techblog369.in

Leave a Reply

Your email address will not be published.