PDF Invoice

  • Posts: 32
  • Thank you received: 0
  • Hikashop Business
1 day 23 hours ago #373458

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

Please Log in or Create an account to join the conversation.

  • Posts: 86212
  • Thank you received: 14219
  • MODERATOR
1 day 8 hours ago #373461

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.

Please Log in or Create an account to join the conversation.

Time to create page: 0.055 seconds
Powered by Kunena Forum