Footer no longer displays after the update

Hi!
So after my 500 internal error problem I’ve just realized the footer no longer appears in the PDF footer.

So while I do have something in the settings


The created PDF has nothing.
I’m still using the latest version and PHP 8.4.
Any idea how to fix this?

Thank you.

See Invoice footer not working - #6 by myedgy
See Invoice footer not working - #5 by naui95

Thank you very much. I just tried without success but that’s probably my fault. When is v1.6.4 planned for? I may just wait :wink:
Thank you.

1 Like

1.6.4 beta comes out with that exact solution that you just tried.
1.6.4 beta will come out when the other issues on the list get done.

After the beta gets out you might want to gather what “without success” means.
We cannot debug “without success”

Part of the template to report a bug on the forums is the “steps to reproduce”:

## Steps to Reproduce
<!--- Provide a link to a **set of steps** to -->
<!--- reproduce this bug. -->
1.
2.
3.
4.

I guess it could look like this:

Steps to Reproduce

  1. Given that i have a plain old template from 1.6.2
  2. Given that i have my footer in the database
  3. Given that i have applied naui’s bugfix (or 1.6.4 beta)
  4. I generate an invoice
  5. The footer from the database still isn’t shown

and show screenshots with it.

Have it ready once 1.6.4 beta comes out.
Reproduce and then you can:

  • search for earlier issues regarding 1.6.4 beta and the footer, so you can say “me too” with your steps to reproduce and your screenshots
  • post your own problem with your steps to reproduce and your screenshots

I know why it didn’t work. I am using a different invoice template which I created ages ago and which is very far from what the current invoice plance template is. I tried to add it as such but that didn’t work either. I’m going to manually edit that and then wait until 1.6.4 is released to see how to handle the problem.
Thank you.

If you compare your own template with the one from InvoicePlane you can see what needs to be added to yours.

Take a look at thks PR:

Especially that last file.
Do you see how that footer is created?
Compare that to youw own template and give it a try

Really a big thank you for the follow up. So my ‘old’ custom template is no longer ok. I’m fine with that.

I thought of using the current default template, see how it looked and then re-make a custom template based on that.

In the current default template, the footer part added in settings also doesn’t appear. I also uncommented the page number to see if it appeared and it does not. So maybe I am not editing the right files?

I have 3 files in total in the pdf folder:

  • InvoicePlane.php
  • InvoicePlane - paid.php
  • InvoicePlane - overdue.php

Invoice Plane itself has 4 options for invoices:

  • Draft
  • Sent
  • Viewed
  • Paid

I only download the Sent version. Is that the InvoicePlane.php file then?

Secondary question: Do I need to make a new invoice each time I modify the php file and editing/saving/downloading the PDF version is updated automatically based on the updated php file?

1 Like

These are tough questions man!

Ok 2 options:

  • Take a template of 1.6.2 and compare it with your template.
    I’ve seen some users use the 1.6.2 template until 1.6.4 comes out

See if you make it work thag way.
1.6.2 uses the old footer and that should still work.

Second option is to look really closely at that PR i gave you. It’s there for a reason.
It haa changes in the helper that helps the PDF generator with that new footer

Secondary question i’ll answer under this one

I don’t think you need to make new invoices every time.
There is only 1 file: “template.php” or in your case “custom.php”

Those statuses of the invoice don’t matter.
If you only want to download “sent” invoices, just mark it as “sent”.
If you can’t do that through the UI, do it through the database. Field name is “invoice_status”, i believe.

Personally i would test things out with “draft” invoices.

“custom.php” with the new footer and the changes from the PR is your best bet.
it has a tiny, tiny change in the template and a bigger change in the helper.
It just crashes (and logs!) When things go wrong.

Keep your test invoice at “draft” status and just keep trying.

There’s a program called “meld” to compare 2 files (or directories) with each other.

Each InvoicePlane version has a .zip file. It’s always on github in the “releases” section or on InvoicePlane’s website.

Download .zip (of for example 1.6.2), unzip and compare with your InvoicePlane version