- Posts: 32
- Thank you received: 0
PDF Invoice
- leitzdesign
-
Topic Author
- Offline
Less
More
5 days 22 minutes ago #373458
by leitzdesign
PDF Invoice was created by leitzdesign
-- HikaShop version -- : 6.6.0
-- Joomla version -- : 5.4.8
-- PHP version -- : 8.3.33
-- Browser(s) name and version -- : Firefox 155.0.1 and Chrome 152.0.7977.83
I installed PDF Invoice 5.0.5. When going to Hikashop > Orders, checking a single order, and clicking the Invoice button at the top, I receive a white screen the following error:
Undefined constant "Com\Tecnick\Pdf\Image\IMAGETYPE_SWC"
There is no logo path set in Hikashop configuration page. I have tried adding one to see if this would resolve the issue, but it does not. I am using the Default invoice layout. I have tried switching to various layouts, but each product this error.
Please advise.
-- Joomla version -- : 5.4.8
-- PHP version -- : 8.3.33
-- Browser(s) name and version -- : Firefox 155.0.1 and Chrome 152.0.7977.83
I installed PDF Invoice 5.0.5. When going to Hikashop > Orders, checking a single order, and clicking the Invoice button at the top, I receive a white screen the following error:
Undefined constant "Com\Tecnick\Pdf\Image\IMAGETYPE_SWC"
There is no logo path set in Hikashop configuration page. I have tried adding one to see if this would resolve the issue, but it does not. I am using the Default invoice layout. I have tried switching to various layouts, but each product this error.
Please advise.
Please Log in or Create an account to join the conversation.
4 days 8 hours ago #373461
by nicolas
Replied by nicolas on topic PDF Invoice
Hello,
Thank you for the report. The logo and the layout have nothing to do with it: on your server, PHP loads zlib as a separate extension, and in that case PHP does not define the IMAGETYPE_SWC constant the new PDF engine of the plugin relies on since 5.0.0. So the error comes up as soon as an invoice is generated, whatever the settings.
We've fixed it in PDF invoice 5.1.1, which the plugin now defines itself when PHP leaves it out. Please download it from your account and install it over your current version, your settings and layouts are kept. It should fix the blank page.
Thank you for the report. The logo and the layout have nothing to do with it: on your server, PHP loads zlib as a separate extension, and in that case PHP does not define the IMAGETYPE_SWC constant the new PDF engine of the plugin relies on since 5.0.0. So the error comes up as soon as an invoice is generated, whatever the settings.
We've fixed it in PDF invoice 5.1.1, which the plugin now defines itself when PHP leaves it out. Please download it from your account and install it over your current version, your settings and layouts are kept. It should fix the blank page.
Please Log in or Create an account to join the conversation.
Time to create page: 0.161 seconds