PDF is empty while printing report

arnabnaha wrote on Sunday, August 23, 2015:

Hello All,

In my testing environment, after a fresh install from the most recent code, I found that, there is an issue with the printing of reports. The pdf is simply empty white page. I looked for the php error log - here it is -

[23-Aug-2015 23:58:35 Asia/Kolkata] PHP Warning: Missing argument 3 for optionalAge(), called in C:\xampp\htdocs\openemrtest\library\options.inc.php on line 1665 and defined in C:\xampp\htdocs\openemrtest\library\options.inc.php on line 57

What might be the cause?

arnabnaha wrote on Sunday, August 23, 2015:

It works in my production version. I guess this might be due to “Annonate Forms” which I was testing out in my Test environment.

fsgl wrote on Sunday, August 23, 2015:

I’ve seen that warning in 4 different threads, all unrelated; so it is not particularly specific.

No fatal errors?

Good that production copy is unaffected.

I would guess that there is a problem with the most recent code introduced into test copy.

If it’s removed & printing is back to normal, it would be confirmatory. Then the next task would be to pinpoint the problematic part of the code.