Attachinvoice did not attach the invoice

  • Posts: 24
  • Thank you received: 0
  • Hikaserial Standard Hikashop Business
1 week 1 day ago #365205

-- HikaShop version -- : 5.1.2
-- Joomla version -- : Joomla! 4.4.10 Stable [ Pamoja ] 7-January-2025 16:00 GMT
-- PHP version -- : 8.3.14-nmm1
-- Browser(s) name and version -- : multible browsers
-- Error-message(debug-mod must be tuned on) -- : No message. Invoice did not get attached

On the production side the invoice did not get attached to the email. We have a copy of the production in a test environment and there the invoice gets attached to the customers email. Is there a log from Hikashop and its plugins?

Last edit: 1 week 1 day ago by RitchieM. Reason: typo

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

  • Posts: 83103
  • Thank you received: 13413
  • MODERATOR
1 week 17 hours ago #365208

Hi,

There is a log called the "payment log file" which is available in the HikaShop configuration. However, the PDF invoice plugin doesn't add any information to it.
If the PDF invoice is not attached to the email notification sent to the customer, then there is probably something wrong with the settings of the plugin. Could you check them and provide a screenshot of the settings ?
Could you also provide a screenshot of the email received by the customer with the PDF missing ?

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

  • Posts: 24
  • Thank you received: 0
  • Hikaserial Standard Hikashop Business
6 days 10 hours ago #365219

Hi Nicolas,

I know the payment log file and as you said it only contains infos written from the paypment plugin.

I've updated the attachinvoice plugin to the version 3.0.1. With the default invoice layout the invoice gets attached now.
With the corporate layout I get this message now:

TCPDF ERROR: Could not include font definition file: dejavu sans

I've also tried to use different fonts but it ends always in the same message.
But only on our production site. The dev side with the same code do not show this error.

We do not allow the loading of fonts from other sources outside our domain. Our prod site runs in the env of our provider (all-inkl) and the test site in a docker container on one of our integration servers at Hetzner. The test site is behind a nginx proxy.

I've attached the pics from the plugin. The one with the red color is the dev site

With debugging set to on on Joomla I get this messages:

Deprecated: Callables of the form ["FPDI", "TCPDF::SetFont"] are deprecated in /www/htdocs/w00f1934/tandem/administrator/components/com_hikaserial/inc/fpdi/fpdf_tpl.php on line 207
Deprecated: Callables of the form ["FPDI", "TCPDF::Link"] are deprecated in /www/htdocs/w00f1934/tandem/administrator/components/com_hikaserial/inc/fpdi/fpdf_tpl.php on line 260
Deprecated: Callables of the form ["FPDI", "TCPDF::SetFont"] are deprecated in /www/htdocs/w00f1934/tandem/administrator/components/com_hikaserial/inc/fpdi/fpdf_tpl.php on line 207
Deprecated: Callables of the form ["FPDI", "TCPDF::SetFont"] are deprecated in /www/htdocs/w00f1934/tandem/administrator/components/com_hikaserial/inc/fpdi/fpdf_tpl.php on line 207
Warning: Constant K_PATH_MAIN already defined in /www/htdocs/w00f1934/tandem/plugins/hikashop/attachinvoice/vendor/spipu/html2pdf/src/config/tcpdf.config.php on line 92
Warning: Constant K_PATH_URL already defined in /www/htdocs/w00f1934/tandem/plugins/hikashop/attachinvoice/vendor/spipu/html2pdf/src/config/tcpdf.config.php on line 110
Warning: Constant K_PATH_FONTS already defined in /www/htdocs/w00f1934/tandem/plugins/hikashop/attachinvoice/vendor/spipu/html2pdf/src/config/tcpdf.config.php on line 116
Warning: Constant K_PATH_IMAGES already defined in /www/htdocs/w00f1934/tandem/plugins/hikashop/attachinvoice/vendor/spipu/html2pdf/src/config/tcpdf.config.php on line 126
Warning: Constant K_BLANK_IMAGE already defined in /www/htdocs/w00f1934/tandem/plugins/hikashop/attachinvoice/vendor/spipu/html2pdf/src/config/tcpdf.config.php on line 131
Warning: Constant PDF_PAGE_FORMAT already defined in /www/htdocs/w00f1934/tandem/plugins/hikashop/attachinvoice/vendor/spipu/html2pdf/src/config/tcpdf.config.php on line 136
Warning: Constant PDF_PAGE_ORIENTATION already defined in /www/htdocs/w00f1934/tandem/plugins/hikashop/attachinvoice/vendor/spipu/html2pdf/src/config/tcpdf.config.php on line 141
Warning: Constant PDF_CREATOR already defined in /www/htdocs/w00f1934/tandem/plugins/hikashop/attachinvoice/vendor/spipu/html2pdf/src/config/tcpdf.config.php on line 146
Warning: Constant PDF_AUTHOR already defined in /www/htdocs/w00f1934/tandem/plugins/hikashop/attachinvoice/vendor/spipu/html2pdf/src/config/tcpdf.config.php on line 151
Warning: Constant PDF_HEADER_TITLE already defined in /www/htdocs/w00f1934/tandem/plugins/hikashop/attachinvoice/vendor/spipu/html2pdf/src/config/tcpdf.config.php on line 156
Warning: Constant PDF_HEADER_STRING already defined in /www/htdocs/w00f1934/tandem/plugins/hikashop/attachinvoice/vendor/spipu/html2pdf/src/config/tcpdf.config.php on line 161
Warning: Constant PDF_HEADER_LOGO already defined in /www/htdocs/w00f1934/tandem/plugins/hikashop/attachinvoice/vendor/spipu/html2pdf/src/config/tcpdf.config.php on line 166
Warning: Constant PDF_HEADER_LOGO_WIDTH already defined in /www/htdocs/w00f1934/tandem/plugins/hikashop/attachinvoice/vendor/spipu/html2pdf/src/config/tcpdf.config.php on line 171
Warning: Constant PDF_UNIT already defined in /www/htdocs/w00f1934/tandem/plugins/hikashop/attachinvoice/vendor/spipu/html2pdf/src/config/tcpdf.config.php on line 176
Warning: Constant PDF_MARGIN_HEADER already defined in /www/htdocs/w00f1934/tandem/plugins/hikashop/attachinvoice/vendor/spipu/html2pdf/src/config/tcpdf.config.php on line 181
Warning: Constant PDF_MARGIN_FOOTER already defined in /www/htdocs/w00f1934/tandem/plugins/hikashop/attachinvoice/vendor/spipu/html2pdf/src/config/tcpdf.config.php on line 186
Warning: Constant PDF_MARGIN_TOP already defined in /www/htdocs/w00f1934/tandem/plugins/hikashop/attachinvoice/vendor/spipu/html2pdf/src/config/tcpdf.config.php on line 191
Warning: Constant PDF_MARGIN_BOTTOM already defined in /www/htdocs/w00f1934/tandem/plugins/hikashop/attachinvoice/vendor/spipu/html2pdf/src/config/tcpdf.config.php on line 196
Warning: Constant PDF_MARGIN_LEFT already defined in /www/htdocs/w00f1934/tandem/plugins/hikashop/attachinvoice/vendor/spipu/html2pdf/src/config/tcpdf.config.php on line 201
Warning: Constant PDF_MARGIN_RIGHT already defined in /www/htdocs/w00f1934/tandem/plugins/hikashop/attachinvoice/vendor/spipu/html2pdf/src/config/tcpdf.config.php on line 206
Warning: Constant PDF_FONT_NAME_MAIN already defined in /www/htdocs/w00f1934/tandem/plugins/hikashop/attachinvoice/vendor/spipu/html2pdf/src/config/tcpdf.config.php on line 211
Warning: Constant PDF_FONT_SIZE_MAIN already defined in /www/htdocs/w00f1934/tandem/plugins/hikashop/attachinvoice/vendor/spipu/html2pdf/src/config/tcpdf.config.php on line 216
Warning: Constant PDF_FONT_NAME_DATA already defined in /www/htdocs/w00f1934/tandem/plugins/hikashop/attachinvoice/vendor/spipu/html2pdf/src/config/tcpdf.config.php on line 221
Warning: Constant PDF_FONT_SIZE_DATA already defined in /www/htdocs/w00f1934/tandem/plugins/hikashop/attachinvoice/vendor/spipu/html2pdf/src/config/tcpdf.config.php on line 226
Warning: Constant PDF_FONT_MONOSPACED already defined in /www/htdocs/w00f1934/tandem/plugins/hikashop/attachinvoice/vendor/spipu/html2pdf/src/config/tcpdf.config.php on line 231
Warning: Constant PDF_IMAGE_SCALE_RATIO already defined in /www/htdocs/w00f1934/tandem/plugins/hikashop/attachinvoice/vendor/spipu/html2pdf/src/config/tcpdf.config.php on line 236
Warning: Constant HEAD_MAGNIFICATION already defined in /www/htdocs/w00f1934/tandem/plugins/hikashop/attachinvoice/vendor/spipu/html2pdf/src/config/tcpdf.config.php on line 241
Warning: Constant K_CELL_HEIGHT_RATIO already defined in /www/htdocs/w00f1934/tandem/plugins/hikashop/attachinvoice/vendor/spipu/html2pdf/src/config/tcpdf.config.php on line 246
Warning: Constant K_TITLE_MAGNIFICATION already defined in /www/htdocs/w00f1934/tandem/plugins/hikashop/attachinvoice/vendor/spipu/html2pdf/src/config/tcpdf.config.php on line 251
Warning: Constant K_SMALL_RATIO already defined in /www/htdocs/w00f1934/tandem/plugins/hikashop/attachinvoice/vendor/spipu/html2pdf/src/config/tcpdf.config.php on line 256
Warning: Constant K_THAI_TOPCHARS already defined in /www/htdocs/w00f1934/tandem/plugins/hikashop/attachinvoice/vendor/spipu/html2pdf/src/config/tcpdf.config.php on line 261
Warning: Constant K_TCPDF_CALLS_IN_HTML already defined in /www/htdocs/w00f1934/tandem/plugins/hikashop/attachinvoice/vendor/spipu/html2pdf/src/config/tcpdf.config.php on line 267
Warning: Constant K_TCPDF_THROW_EXCEPTION_ERROR already defined in /www/htdocs/w00f1934/tandem/plugins/hikashop/attachinvoice/vendor/spipu/html2pdf/src/config/tcpdf.config.php on line 272
TCPDF ERROR: Could not include font definition file: dejavu sans


Hope this helps to identify the problem. Let me know if you need more infos.

Attachments:

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

  • Posts: 83103
  • Thank you received: 13413
  • MODERATOR
6 days 4 hours ago #365220

Hi,

I think that what you're describing now is linked to HikaSerial. You must be using something in HikaSerial which needs to generate a PDF, and thus HikaSerial loads its own TCPDF library to generate it, and when the PDF invoice plugin tries to generate its PDF, since an older version of TCPDF is already loaded by HikaSerial you get these errors. And the font can't be loaded as it is looking for the fonts in the folder of HikaSerial, instead of the folder of the plugin.
Which version of HikaSerial are you using ?
Could you check the order of the HikaShop HikaSerial plugin and the PDF invoice plugin in the "hikashop" group via the Joomla plugins manager ? Maybe swapping their order would help ?

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

  • Posts: 24
  • Thank you received: 0
  • Hikaserial Standard Hikashop Business
5 days 9 hours ago #365225

Hi Nicolas,

I'm not sure. The deprecated messages are related to hikaserial but these messages should not be a problem as these are only info messages.

Wheather or not the warnings are relevant I can't say. But I have definitivly a problem with the attachinvoice plugin. The 'default layout' attaches the invoice to the customer email. The corporate will show the 'TCPDF ERROR: Could not include font definition file: dejavu sans' on the screen even with the joomla debug setting set to disabled.

Best Regards
Richard

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

  • Posts: 24
  • Thank you received: 0
  • Hikaserial Standard Hikashop Business
5 days 9 hours ago #365226

And by the way... an option like in the hikaserial plugin to use a PDF template would be a nice feature... then I only need to configure the possition of the customers address and the place were the invoice should be printed...

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

  • Posts: 24
  • Thank you received: 0
  • Hikaserial Standard Hikashop Business
3 days 15 hours ago #365245

I use the 5.0.0 of Hikaserial, on both - Test and Prod side

What do you mean with that
>
Could you check the order of the HikaShop HikaSerial plugin and the PDF invoice plugin in the "hikashop" group via the Joomla plugins manager ? Maybe swapping their order would help ?
<

Could you describe this a bit more precise, please? The hikaserial plugin is a type of hikaserial and the attach invoice plugin is a type of hikashop

Again... after the update to the latest version of the attache invoice plugin (3.0.1) if I use the 'default layout' on the prod side the invoice gets attached as expected. If I use the corporate layout I run into the problem and no invoice gets attached beside the font error message.

Last edit: 3 days 15 hours ago by RitchieM.

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

  • Posts: 83103
  • Thank you received: 13413
  • MODERATOR
3 days 12 hours ago #365249

Hi,

Check the "hikashop" group of plugins. There, you'll find both the "attachinvoice" and the "hikaserial" plugin, which are both of the "hikashop" group. I'm talking about the order of these two plugins.

The font used is independent from the layout used. So I don't see how one could affect the other.
Could you please double check ?

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

  • Posts: 24
  • Thank you received: 0
  • Hikaserial Standard Hikashop Business
2 days 16 hours ago #365260

Hi,

I didn't get it... do you mean the type of the plugin. There are hikashop and hikaserial. The serial related plugins only appear below this type and the invoice plugin appears in hikashop type. I've attached two screenshots. Please let me know where to look if I'm completely wrong.

The default layout works and attaches the invoice to the mail. The corporate layout did not work and shows the font message to the user. Does it have something to do with the plugin order?

Attachments:

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

  • Posts: 83103
  • Thank you received: 13413
  • MODERATOR
2 days 12 hours ago #365261

Hi,

I'm talking about the "HikaSerials - HikaShop integration plugin" and the "Hikashop - generate PDF invoice" plugins.
Both are on the same listing on your second screenshot.
The "HikaSerials - HikaShop integration plugin" plugin is the one which makes the link between HikaShop and HikaSerial.

The order of both plugins might create the problem.
Also, you can try to copy the folder plugins/hikashop/attachinvoice/vendor/tecnickcom/tcpdf/fonts to administrator/components/com_hikaserial/inc/tcpdf/fonts via FTP.
That way, even if the TCPDF library from HikaSerial is used, it should still be able to find the font selected in the PDF invoice plugin.

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

Time to create page: 0.073 seconds
Powered by Kunena Forum