[Skip to main content](#vessel-content)

#   Attach Invoice Generates TCPDF ERROR

##

- **[Rixters](/forum/user/28762-rixters "View Rixters's Profile")**
- [![Rixters's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar28762.jpg)](/forum/user/28762-rixters "View Rixters's Profile") Topic Author
- [ Offline](/forum/user/28762-rixters)

Less More

- Posts: 209
- Thank you received: 14
-
-
-
- [](http://www.r2h.nl)
-

5 years 11 months ago [\#327183](#327183) by [Rixters](/forum/user/28762-rixters "View Rixters's Profile")  *[Attach Invoice Generates TCPDF ERROR](/forum/30-integrations/901467-attach-invoice-generates-tcpdf-error#327183 "-- HikaShop version -- : 4.4.0 -- Joomla version -- : 3.9.23  Hi,  I installed the Attach Invoice plugin, but when I click &quot;Invoice&quot; or &quot;Shipping Invoice&quot; in the order I get an error: TCPDF ERROR: Some data has already been output, can't send PDF file  Also on all the other locations where the PDF invoice can be generated, I get the same error.  Hope you can help me with this problem!  Regards")* was created by *[Rixters](/forum/user/28762-rixters "View Rixters's Profile")*

-- HikaShop version -- : 4.4.0
-- Joomla version -- : 3.9.23

Hi,

I installed the Attach Invoice plugin, but when I click "Invoice" or "Shipping Invoice" in the order I get an error: **TCPDF ERROR: Some data has already been output, can't send PDF file**

[ ![Image-1&#95;2020-12-09.jpg](/forum/attachment/51381) ](/forum/attachment/51381 "...2020-12-09.jpg")

Also on all the other locations where the PDF invoice can be generated, I get the same error.

Hope you can help me with this problem!

Regards

- [ ![Image-1&#95;2020-12-09.jpg](/forum/attachment/51381) ](/forum/attachment/51381 "...2020-12-09.jpg") [ ](/forum/attachment/51381?download=1 "...2020-12-09.jpg")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMwLWludGVncmF0aW9ucy85MDE0NjctYXR0YWNoLWludm9pY2UtZ2VuZXJhdGVzLXRjcGRmLWVycm9yP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14325
-
-

5 years 11 months ago [\#327188](#327188) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Attach Invoice Generates TCPDF ERROR](/forum/30-integrations/901467-attach-invoice-generates-tcpdf-error#327188 "-- HikaShop version -- : 4.4.0 -- Joomla version -- : 3.9.23  Hi,  I installed the Attach Invoice plugin, but when I click &quot;Invoice&quot; or &quot;Shipping Invoice&quot; in the order I get an error: TCPDF ERROR: Some data has already been output, can't send PDF file  Also on all the other locations where the PDF invoice can be generated, I get the same error.  Hope you can help me with this problem!  Regards")*

Hi,

This means that a notice or warning has already been sent to the browser before the plugin generates the PDF.
If you turn off the "error reporting" setting in the Joomla configuration is should prevent the problem.
Now the question is where is this notice/warning.
And that's hard to say as the notice/warning is not displayed because of the error from the TCPDF library.
The notice/warning should be logged in the error log of your PHP. So the best would be to monitor that log while you reproduce the problem.
What you can try is to add the code:
ob_clean();
before the line:
$html2pdf-&gt;Output($fileName.'.pdf','D');
in the file plugins/hikashop/attachinvoice/attachinvoice.php
That should remove the notice/warning message from the ouput buffer which should prevent TCPDF from stopping and displaying that error.

The following user(s) said Thank You: [Rixters](/forum/user/28762-rixters "View Rixters's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMwLWludGVncmF0aW9ucy85MDE0NjctYXR0YWNoLWludm9pY2UtZ2VuZXJhdGVzLXRjcGRmLWVycm9yP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Rixters](/forum/user/28762-rixters "View Rixters's Profile")**
- [![Rixters's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar28762.jpg)](/forum/user/28762-rixters "View Rixters's Profile") Topic Author
- [ Offline](/forum/user/28762-rixters)

Less More

- Posts: 209
- Thank you received: 14
-
-
-
- [](http://www.r2h.nl)
-

5 years 11 months ago [\#327256](#327256) by [Rixters](/forum/user/28762-rixters "View Rixters's Profile")  Replied by *[Rixters](/forum/user/28762-rixters "View Rixters's Profile")* on topic *[Attach Invoice Generates TCPDF ERROR](/forum/30-integrations/901467-attach-invoice-generates-tcpdf-error#327256 "-- HikaShop version -- : 4.4.0 -- Joomla version -- : 3.9.23  Hi,  I installed the Attach Invoice plugin, but when I click &quot;Invoice&quot; or &quot;Shipping Invoice&quot; in the order I get an error: TCPDF ERROR: Some data has already been output, can't send PDF file  Also on all the other locations where the PDF invoice can be generated, I get the same error.  Hope you can help me with this problem!  Regards")*

Hi,

Thanks for the fix!

This is probably something you have to patch yourself in the plugin also. Relying on the customer having the Error Reporting on none is not the way to go ![;)](/media/kunena/emoticons/24.png ";)")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMwLWludGVncmF0aW9ucy85MDE0NjctYXR0YWNoLWludm9pY2UtZ2VuZXJhdGVzLXRjcGRmLWVycm9yP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14325
-
-

5 years 11 months ago [\#327263](#327263) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Attach Invoice Generates TCPDF ERROR](/forum/30-integrations/901467-attach-invoice-generates-tcpdf-error#327263 "-- HikaShop version -- : 4.4.0 -- Joomla version -- : 3.9.23  Hi,  I installed the Attach Invoice plugin, but when I click &quot;Invoice&quot; or &quot;Shipping Invoice&quot; in the order I get an error: TCPDF ERROR: Some data has already been output, can't send PDF file  Also on all the other locations where the PDF invoice can be generated, I get the same error.  Hope you can help me with this problem!  Regards")*

Hi,

Yes. We'll add that patch on our end. I first wanted your feedback to make sure it does the job.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMwLWludGVncmF0aW9ucy85MDE0NjctYXR0YWNoLWludm9pY2UtZ2VuZXJhdGVzLXRjcGRmLWVycm9yP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[NicoW](/forum/user/58228-nicow "View NicoW's Profile")**
- [![NicoW's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/58228-nicow "View NicoW's Profile")
- [ Offline](/forum/user/58228-nicow)

Less More

- Posts: 147
- Thank you received: 8
-
-

5 years 3 weeks ago [\#336676](#336676) by [NicoW](/forum/user/58228-nicow "View NicoW's Profile")  Replied by *[NicoW](/forum/user/58228-nicow "View NicoW's Profile")* on topic *[Attach Invoice Generates TCPDF ERROR](/forum/30-integrations/901467-attach-invoice-generates-tcpdf-error#336676 "-- HikaShop version -- : 4.4.0 -- Joomla version -- : 3.9.23  Hi,  I installed the Attach Invoice plugin, but when I click &quot;Invoice&quot; or &quot;Shipping Invoice&quot; in the order I get an error: TCPDF ERROR: Some data has already been output, can't send PDF file  Also on all the other locations where the PDF invoice can be generated, I get the same error.  Hope you can help me with this problem!  Regards")*

Hi Nicolas,

I noticed i get this error now that i am on a new server (no changes to joomla or hikashop to my knowlege).
I added the line of code and this works, only now there's a blank field that remains open in the order window (the popup after clicking invoice)
Is the patch for the invoice plugin only this line or are there any more improvements / changes?

Nico

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMwLWludGVncmF0aW9ucy85MDE0NjctYXR0YWNoLWludm9pY2UtZ2VuZXJhdGVzLXRjcGRmLWVycm9yP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14325
-
-

5 years 3 weeks ago [\#336683](#336683) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Attach Invoice Generates TCPDF ERROR](/forum/30-integrations/901467-attach-invoice-generates-tcpdf-error#336683 "-- HikaShop version -- : 4.4.0 -- Joomla version -- : 3.9.23  Hi,  I installed the Attach Invoice plugin, but when I click &quot;Invoice&quot; or &quot;Shipping Invoice&quot; in the order I get an error: TCPDF ERROR: Some data has already been output, can't send PDF file  Also on all the other locations where the PDF invoice can be generated, I get the same error.  Hope you can help me with this problem!  Regards")*

Hi,

There are other patchs.
I would recommend first to download again the PDF invoice plugin on our website and install it on yours (if your order is less than 4 years old, the download link you received is still working and will get you the latest version of the plugin).
We fixed an empty popup issue 6 months ago so it might be the problem you have.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMwLWludGVncmF0aW9ucy85MDE0NjctYXR0YWNoLWludm9pY2UtZ2VuZXJhdGVzLXRjcGRmLWVycm9yP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[NicoW](/forum/user/58228-nicow "View NicoW's Profile")**
- [![NicoW's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/58228-nicow "View NicoW's Profile")
- [ Offline](/forum/user/58228-nicow)

Less More

- Posts: 147
- Thank you received: 8
-
-

5 years 3 weeks ago [\#336823](#336823) by [NicoW](/forum/user/58228-nicow "View NicoW's Profile")  Replied by *[NicoW](/forum/user/58228-nicow "View NicoW's Profile")* on topic *[Attach Invoice Generates TCPDF ERROR](/forum/30-integrations/901467-attach-invoice-generates-tcpdf-error#336823 "-- HikaShop version -- : 4.4.0 -- Joomla version -- : 3.9.23  Hi,  I installed the Attach Invoice plugin, but when I click &quot;Invoice&quot; or &quot;Shipping Invoice&quot; in the order I get an error: TCPDF ERROR: Some data has already been output, can't send PDF file  Also on all the other locations where the PDF invoice can be generated, I get the same error.  Hope you can help me with this problem!  Regards")*

Hi, I downloaded it and joomla won't install it because the file size is too big.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMwLWludGVncmF0aW9ucy85MDE0NjctYXR0YWNoLWludm9pY2UtZ2VuZXJhdGVzLXRjcGRmLWVycm9yP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14325
-
-

5 years 3 weeks ago [\#336828](#336828) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Attach Invoice Generates TCPDF ERROR](/forum/30-integrations/901467-attach-invoice-generates-tcpdf-error#336828 "-- HikaShop version -- : 4.4.0 -- Joomla version -- : 3.9.23  Hi,  I installed the Attach Invoice plugin, but when I click &quot;Invoice&quot; or &quot;Shipping Invoice&quot; in the order I get an error: TCPDF ERROR: Some data has already been output, can't send PDF file  Also on all the other locations where the PDF invoice can be generated, I get the same error.  Hope you can help me with this problem!  Regards")*

Hi,

Unzip it on your local computer. Upload the files/folders in your Joomla tmp folder via FTP. And finally, use the "install from folder" option of the Joomla installer.
That will circumvent the upload limitation.
Otherwise, you can also check with your hosting how to increase the PHP upload limit on your website. Normally, it requires changing a parameter in the php.ini of the server.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMwLWludGVncmF0aW9ucy85MDE0NjctYXR0YWNoLWludm9pY2UtZ2VuZXJhdGVzLXRjcGRmLWVycm9yP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.071 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
