Page 1 of 1

Broken Images

Posted: Wed Jun 29, 2022 9:08 pm
by chpwebmaster
Any report pulling an image from the files section now returns a 500 and the error log is:

Got error 'PHP message: PHP Warning: Undefined array key "Image:MyLogo" in /var/www/nubuilder/core/nurunpdf.php on line 427PHP message: PHP Warning: Undefined variable $data in /var/www/nubuilder/core/nucommon.php on line 1155PHP message: PHP Warning: Undefined array key "Image:MyLogo" in /var/www/nubuilder/core/nurunpdf.php on line 427PHP message: PHP Fatal error: Cannot redeclare nuCreateTempFile() (previously declared in /var/www/nubuilder/core/nucommon.php:1149) in /var/www/nubuilder/core/nucommon.php on line 1149'

I'm guessing this was broken with the introduction of the base64 and url additions for reports a couple days ago.

Re: Broken Images

Posted: Thu Jun 30, 2022 1:12 am
by kev1n
Hi,

I made a change in nucommon.php, nurunpdf.php (Github). Please let me know if that fixes the issue.

Re: Broken Images

Posted: Thu Jun 30, 2022 3:05 pm
by chpwebmaster
now i'm getting
Got error 'PHP message: PHP Fatal error: Cannot redeclare nuCreateTempFile() (previously declared in /var/www/nubuilder/core/nucommon.php:1149) in /var/www/nubuilder/core/nucommon.php on line 1149'

Re: Broken Images

Posted: Thu Jun 30, 2022 4:06 pm
by kev1n
Try the attached file:
nucommon.zip

Re: Broken Images

Posted: Thu Jun 30, 2022 4:24 pm
by chpwebmaster
That did it