form-to-pdf icon indicating copy to clipboard operation
form-to-pdf copied to clipboard

Errors in line 1432, 8256 and 32695

Open haroon310 opened this issue 6 years ago • 0 comments

  1. Fatal error: Switch statements may only contain one default clause in mpdf.php on line 1432 i.e. default: $format = false;

  2. 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

  1. 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"

haroon310 avatar Jul 18 '19 10:07 haroon310