I find Gon WordPress theme on the internet and do as a guide. When I click Import button, errors occurred

1 Answer
This's just a warning from PHP for debugging purpose. You can hide it if you want, but you should fix until there's no warning left.
On your production, first you should hide this info by change WP_DEBUG to false in wp-config.php or replace that line with below code:
ini_set('display_errors','Off');
ini_set('error_reporting', E_ALL );
define('WP_DEBUG', false);
define('WP_DEBUG_DISPLAY', false);
If this is your testing environment, you should contact theme provider to fix this issue. May be PHP version incompatible or the error that theme's author not seen this before.
4 Comments
Hoang Dinh
Hi Tuan, in
wp-config.php defaulted define( 'WP_DEBUG', false );Argus Duong
Edited my answer, can you test again?
Hoang Dinh
Thanks, Tuan! How to fix errors? I don't fix it because I don't know code. Can you give me an example
Argus Duong
As I said, you should contact this theme's author to ask them how to fix this error. Hide the PHP warning is not recommended.