Hi,
I’m having an issue with my comment box. There is an error message that is displaying under all of my comment boxes and I’d like it to go away.
For example:
Scroll down to the comment and you’ll see this: Warning : Undefined variable $_view_data in /home2/butfirw0/public_html/wp-content/themes/pro/cornerstone/includes/elements/definitions/comment-form.php on line 81
I’ve already tried adding :
define( 'WP_DEBUG', false );
to the wp-config.php file and it doesn’t work. The message is still displayed by the comment box.
It might be the issue version compatibility issue. Please make sure your WordPress version is updated and the PHP version is 7.4 or 7.4+ as per our version compatibility page. I would suggest you please contact your hosting provider to upgrade the PHP version if it is lower than 7.4. It is also recommended by WordPress as well.
You can replace this code with a given code to suppress PHP warnings in your wp-config.php file.