Hello,
lately I had the problem, that our Google Search Console was argueing about some Pages which where empty but did not send any 404 Errors. Turned out these where inactive / deleted Machform Forms.
So in the view-functions.php starting at line 4683 I added some header instructions to fix that.
//check for non-existent or currently drafted forms or inactive forms
if($row === false){
header($_SERVER["SERVER_PROTOCOL"]." 404 Not Found",true,404);
die('This is not valid form URL.');
}else{
$form_active = (int) $row['form_active'];
if($form_active !== 0 && $form_active !== 1){
header($_SERVER["SERVER_PROTOCOL"]." 403 Forbidden",true,403);
die('This is not valid form URL.');
}
}
I guess that could help others too.