@fahadmahmood yes, wp-config.php has WP_DEBUG false. However, I just looked through your plugin code and lines 24-26 (index.php) have these:
if ( ! defined( ‘ABSPATH’ ) ) {
exit; // Exit if accessed directly
}else{
clearstatcache();
}
//return;
ini_set(‘display_errors’, 1);
ini_set(‘display_startup_errors’, 1);
error_reporting(E_ALL);
require_once(ABSPATH . ‘wp-admin/includes/upgrade.php’);
That is what is showing the errors on the site. I have commented out those lines and the errors have disappeared.