# Bug When Generating PDF under General Ledger Transactions

**URL:** <https://forum.manager.io/t/bug-when-generating-pdf-under-general-ledger-transactions/20558>\
**Category:** Uncategorized\
**Created:** [February 10, 2019, 6:52am UTC](https://forum.manager.io/t/bug-when-generating-pdf-under-general-ledger-transactions/20558 "2019-02-10T06:52:48Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Davide](https://avatars.discourse-cdn.com/v4/letter/d/258eb7/32.png) [@Davide](https://forum.manager.io/u/Davide)\
**Post date:** [February 10, 2019, 6:52am UTC](https://forum.manager.io/t/bug-when-generating-pdf-under-general-ledger-transactions/20558/1 "2019-02-10T06:52:48Z")

</div>

When I try to generate the pdf under general ledger transactions, it takes ages and than I get this message:

 ![Screenshot_20190210-074744__01](https://us1.discourse-cdn.com/flex019/uploads/manager1/original/3X/e/b/eb18ed6603c8441408684d2aa2b1eaeb51093afa.jpeg)

My version is 19.1.28 (error persist also with 19.2.38)

---

<div class="post-metadata">

**Author:** ![ShaneAU](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.manager.io/shaneau/32/10122_2.png) [@ShaneAU](https://forum.manager.io/u/ShaneAU)\
**Post date:** [February 10, 2019, 9:40am UTC](https://forum.manager.io/t/bug-when-generating-pdf-under-general-ledger-transactions/20558/2 "2019-02-10T09:40:51Z")

</div>

504 Gateway Timeout means the server took too long to respond.

Some questions:

1. Which edition of Manager are you using: Desktop, Cloud or Server?
2. Does this happen for all PDFs, or just certain invoices etc?
3. What happens if you click the other button instead - Print vs PDF - does the PDF finish generating in that situation?
4. When did this start happening? Was it immediately after an upgrade to 19.1.28? The latest is 19.1.38 (as I write this) - does it still happen if you update to that version?

Not sure what else to ask, but that’s probably a good starting point.

---

<div class="post-metadata">

**Author:** ![Davide](https://avatars.discourse-cdn.com/v4/letter/d/258eb7/32.png) [@Davide](https://forum.manager.io/u/Davide)\
**Post date:** [February 10, 2019, 9:55am UTC](https://forum.manager.io/t/bug-when-generating-pdf-under-general-ledger-transactions/20558/3 "2019-02-10T09:55:35Z")

</div>

Server edition  
Only with general ledger transactions  
Only with PDF  
It happens only with a new business we created a few months ago. First time I tried this report on this one. With the other one it works  
I try to update

---

<div class="post-metadata">

**Author:** ![Davide](https://avatars.discourse-cdn.com/v4/letter/d/258eb7/32.png) [@Davide](https://forum.manager.io/u/Davide)\
**Post date:** [February 10, 2019, 10:15am UTC](https://forum.manager.io/t/bug-when-generating-pdf-under-general-ledger-transactions/20558/4 "2019-02-10T10:15:06Z")

</div>

Same error with 19.1.38. It’s a bug.  
Print works so, as a workaround, I can print to PDF.

---

<div class="post-metadata">

**Author:** ![ShaneAU](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.manager.io/shaneau/32/10122_2.png) [@ShaneAU](https://forum.manager.io/u/ShaneAU)\
**Post date:** [February 10, 2019, 10:26am UTC](https://forum.manager.io/t/bug-when-generating-pdf-under-general-ledger-transactions/20558/5 "2019-02-10T10:26:06Z")

</div>

> [@Davide](#):
>
> happens only with a new business we created a few months ago

What happens if you back up the business and restore from backup. Does the new business file also have the issue?

Perhaps there’s a bug related to missing information. For example, have you uploaded a logo and other business details? That shouldn’t cause any issues if they are blank, just thinking of what might differ between this business and your more established one.

---

<div class="post-metadata">

**Author:** ![Davide](https://avatars.discourse-cdn.com/v4/letter/d/258eb7/32.png) [@Davide](https://forum.manager.io/u/Davide)\
**Post date:** [February 10, 2019, 10:48am UTC](https://forum.manager.io/t/bug-when-generating-pdf-under-general-ledger-transactions/20558/6 "2019-02-10T10:48:24Z")

</div>

General transaction ledger doesn’t have any logo nor any additional information. It doesn’t even use themes. I think it’s something related to the large number of lines, ie it’s a bug and needs to be solved.

---

<div class="post-metadata">

**Author:** ![Joe91](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.manager.io/joe91/32/35781_2.png) [@Joe91](https://forum.manager.io/u/Joe91)\
**Post date:** [February 10, 2019, 2:32pm UTC](https://forum.manager.io/t/bug-when-generating-pdf-under-general-ledger-transactions/20558/7 "2019-02-10T14:32:42Z")

</div>

I created a G/L transaction report with all my transactions - it took a while to do but it did create the PDF with 95 pages without a problem.

But that’s not a lot of transactions, I’d guess

Using Windows 10 Desktop version 19.1.34 -Microsoft Edge browser

---

<div class="post-metadata">

**Author:** ![Tut](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.manager.io/tut/32/3286_2.png) [@Tut](https://forum.manager.io/u/Tut)\
**Post date:** [February 10, 2019, 3:40pm UTC](https://forum.manager.io/t/bug-when-generating-pdf-under-general-ledger-transactions/20558/8 "2019-02-10T15:40:51Z")

</div>

It looks like you are using Chrome. Try a different browser. Many users have reported problems with Chrome that disappear when using other browsers. Although why this would occur with one business and not another is beyond me. Nevertheless, knowing whether Chrome is the problem would be useful.

---

<div class="post-metadata">

**Author:** ![Davide](https://avatars.discourse-cdn.com/v4/letter/d/258eb7/32.png) [@Davide](https://forum.manager.io/u/Davide)\
**Post date:** [February 10, 2019, 4:23pm UTC](https://forum.manager.io/t/bug-when-generating-pdf-under-general-ledger-transactions/20558/9 "2019-02-10T16:23:57Z")

</div>

Same problem with explorer.

---

<div class="post-metadata">

**Author:** ![Joe91](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.manager.io/joe91/32/35781_2.png) [@Joe91](https://forum.manager.io/u/Joe91)\
**Post date:** [February 10, 2019, 4:27pm UTC](https://forum.manager.io/t/bug-when-generating-pdf-under-general-ledger-transactions/20558/10 "2019-02-10T16:27:22Z")

</div>

Could there be a corrupt transaction?

can you try different dates to see if some work and then narrow it back to a particular transaction or does it not work at all - even for 1 days worth of transactions?

---

<div class="post-metadata">

**Author:** ![Davide](https://avatars.discourse-cdn.com/v4/letter/d/258eb7/32.png) [@Davide](https://forum.manager.io/u/Davide)\
**Post date:** [February 10, 2019, 5:26pm UTC](https://forum.manager.io/t/bug-when-generating-pdf-under-general-ledger-transactions/20558/11 "2019-02-10T17:26:20Z")

</div>

It can be but since there are so many transaction it would be impossible. Keep in mind however that the report is generated. It just doesn’t save in PDF. So for screen and printing there’s no corrupted transaction.

---

<div class="post-metadata">

**Author:** ![Tut](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.manager.io/tut/32/3286_2.png) [@Tut](https://forum.manager.io/u/Tut)\
**Post date:** [February 10, 2019, 5:49pm UTC](https://forum.manager.io/t/bug-when-generating-pdf-under-general-ledger-transactions/20558/12 "2019-02-10T17:49:25Z")

</div>

Maybe there is a bug. But until you can identify what is different between a business and report that works and one that doesn’t, it cannot be fixed.

> [@Davide](#):
>
> since there are so many transaction it would be impossible.

It would not be difficult to isolate a transaction causing the problem, if that is what it is. Edit the date range so it covers half the period, then the other half. If that doesn’t isolate the problem, it isn’t a corrupted transaction (unless you have the same problem with more than one). If one half works, cut the other in half again, and so on. If both halves work, it’s probably the length of the report.

---

<div class="post-metadata">

**Author:** ![Davide](https://avatars.discourse-cdn.com/v4/letter/d/258eb7/32.png) [@Davide](https://forum.manager.io/u/Davide)\
**Post date:** [February 10, 2019, 6:46pm UTC](https://forum.manager.io/t/bug-when-generating-pdf-under-general-ledger-transactions/20558/13 "2019-02-10T18:46:26Z")

</div>

I’ll try it. Thanks @tut

---

<div class="post-metadata">

**Author:** ![Davide](https://avatars.discourse-cdn.com/v4/letter/d/258eb7/32.png) [@Davide](https://forum.manager.io/u/Davide)\
**Post date:** [February 10, 2019, 6:55pm UTC](https://forum.manager.io/t/bug-when-generating-pdf-under-general-ledger-transactions/20558/14 "2019-02-10T18:55:26Z")

</div>

Ok… I divided the report, which was from 1/7/2018 to 31/12/2018, into two reports: 1/7/2018 to 30/9/2018 and 1/10/2018 to 31/12/2018. Both were generated successfully.

However if I increase the date range of the first report from 1/7/2018 to 31/10/2018 I get the usual error. So the problem definitely the length of the report. Maybe @lubos can increase the memory buffer dedicated to this task or find some workaround. It seems that the internal pdf generator of Manager is very angry of resources.

---

<div class="post-metadata">

**Author:** ![Tut](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.manager.io/tut/32/3286_2.png) [@Tut](https://forum.manager.io/u/Tut)\
**Post date:** [February 10, 2019, 6:59pm UTC](https://forum.manager.io/t/bug-when-generating-pdf-under-general-ledger-transactions/20558/15 "2019-02-10T18:59:51Z")

</div>

Good information. I have moved this to the bugs category.

---

<div class="post-metadata">

**Author:** ![Davide](https://avatars.discourse-cdn.com/v4/letter/d/258eb7/32.png) [@Davide](https://forum.manager.io/u/Davide)\
**Post date:** [February 10, 2019, 7:01pm UTC](https://forum.manager.io/t/bug-when-generating-pdf-under-general-ledger-transactions/20558/16 "2019-02-10T19:01:12Z")

</div>

Thanks @tut. As it happened in the past if @lubos needs it I can send him the backup file to see what was wrong.

---

<div class="post-metadata">

**Author:** ![ShaneAU](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.manager.io/shaneau/32/10122_2.png) [@ShaneAU](https://forum.manager.io/u/ShaneAU)\
**Post date:** [February 11, 2019, 1:14am UTC](https://forum.manager.io/t/bug-when-generating-pdf-under-general-ledger-transactions/20558/17 "2019-02-11T01:14:49Z")

</div>

> [@Davide](#):
>
> ie it’s a bug and needs to be solved

Oh, I’m definitely not disputing that it’s probably a bug. Just trying to dig into what might be causing it / find a way to reproduce it, as if it is a bug that’ll make it easier for lubos to correct it.

Edit: Looks like a likely cause has been found.

---

<div class="post-metadata">

**Author:** ![lubos](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.manager.io/lubos/32/62798_2.png) [@lubos](https://forum.manager.io/u/lubos)\
**Post date:** [February 12, 2019, 9:43am UTC](https://forum.manager.io/t/bug-when-generating-pdf-under-general-ledger-transactions/20558/18 "2019-02-12T09:43:01Z")

</div>

Can you try the latest version (19.1.40) ? It should be faster.

---

<div class="post-metadata">

**Author:** ![Davide](https://avatars.discourse-cdn.com/v4/letter/d/258eb7/32.png) [@Davide](https://forum.manager.io/u/Davide)\
**Post date:** [February 12, 2019, 3:34pm UTC](https://forum.manager.io/t/bug-when-generating-pdf-under-general-ledger-transactions/20558/19 "2019-02-12T15:34:52Z")

</div>

hi @lubos, I tried it but I get the same error.

---

<div class="post-metadata">

**Author:** ![lubos](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.manager.io/lubos/32/62798_2.png) [@lubos](https://forum.manager.io/u/lubos)\
**Post date:** [February 12, 2019, 9:30pm UTC](https://forum.manager.io/t/bug-when-generating-pdf-under-general-ledger-transactions/20558/20 "2019-02-12T21:30:19Z")

</div>

How long is timeout on your nginx server? This is not bug in Manager, the error is from Nginx server. I’m aware that for very long reports, PDF generation could take over 60 seconds which I suspect would be Nginx timeout. Try to connect to Manager Server directly and see how long does it take to get PDF.

[Next page](https://forum.manager.io/t/bug-when-generating-pdf-under-general-ledger-transactions/20558.md?page=2)
