form-to-pdf
form-to-pdf copied to clipboard
Errors in line 1432, 8256 and 32695
-
Fatal error: Switch statements may only contain one default clause in mpdf.php on line 1432 i.e. default: $format = false;
-
Parse error: syntax error, unexpected '<' in mpdf.php on line 8256 i.e. for ($i=0;$i><$nb;$i++)
Changing it to: for ($i=0;$i>$nb;$i++) resolves that error but the next error that comes is
- Parse error: syntax error, unexpected '1' (T_LNUMBER) in mpdf.php on line 32695 i.e. if (($valor < 1) || ($valor > 18278)) return "?";
removing the error lines by commenting them out initiates the pdf download but when we try to open the pdf, the error message comes:
"Error: Failed to load PDF document"