Invoiceplane keeps ending my session

Hi

I had installed invoice plane on my VPS in 2019, but never really used it.

I have upgraded to 1.6.0 but everytime I login the session ends in under a minute. In ipconfig.php the session expiration is the default

SESS_EXPIRATION=864000

ERROR - 2023-05-19 12:59:13 --> Severity: error --> Exception: Could not find image file (file:///home/alintat/invoices.***/uploads/alintacorp-invoice-plane.png) /home/alintat/invoices.***/vendor/mpdf/mpdf/src/Image/ImageProcessor.php 589
ERROR - 2023-05-19 13:02:00 --> Could not find the language line "online_payment_apiKeyPublic"
ERROR - 2023-05-19 13:02:00 --> Could not find the language line "online_payment_apiKeyPublic"
ERROR - 2023-05-19 13:02:33 --> Could not find the language line "online_payment_apiKeyPublic"
ERROR - 2023-05-19 13:02:33 --> Could not find the language line "online_payment_apiKeyPublic"
ERROR - 2023-05-19 13:03:22 --> Could not find the language line "online_payment_apiKeyPublic"
ERROR - 2023-05-19 13:03:22 --> Could not find the language line "online_payment_apiKeyPublic"
ERROR - 2023-05-19 13:03:29 --> Could not find the language line "invoice_logo_removed"
ERROR - 2023-05-19 13:03:29 --> Could not find the language line "online_payment_apiKeyPublic"
ERROR - 2023-05-19 13:03:29 --> Could not find the language line "online_payment_apiKeyPublic"
ERROR - 2023-05-19 13:05:24 --> Could not find the language line "online_payment_apiKeyPublic"
ERROR - 2023-05-19 13:05:24 --> Could not find the language line "online_payment_apiKeyPublic"
ERROR - 2023-05-19 13:05:44 --> Could not find the language line "online_payment_apiKeyPublic"
ERROR - 2023-05-19 13:05:44 --> Could not find the language line "online_payment_apiKeyPublic"
ERROR - 2023-05-19 13:38:56 --> Severity: error --> Exception: Call to a member function format() on bool /home/alintat/invoices.***/application/helpers/date_helper.php 122
ERROR - 2023-05-19 13:44:41 --> Could not find the language line "online_payment_apiKeyPublic"
ERROR - 2023-05-19 13:44:41 --> Could not find the language line "online_payment_apiKeyPublic"

There is another problem, I will attempt to change the invoice templates to add the logo from a remote server. The image for the logo is in that location, and accessible.

ERROR - 2023-05-19 12:59:13 --> Severity: error --> Exception: Could not find image file (file:///home/alintat/invoices.***/uploads/alintacorp-invoice-plane.png) 

I would really appreciate any assistance with the issues above. I will definitely be coming back to the forum to assist where I can.

Thank you for the challenges. Let’s solve the second problem first (PDF, external logo). See this link: In version 1.6.0 the logo isn't shown on the PDF by vespino · Pull Request #897 · InvoicePlane/InvoicePlane · GitHub
It’s a very easy fix. It’s solved in 1.6.1 beta version.

Now the first problem.
I have 2 workarounds:

  1. Save the session in the database?
  2. The location where InvoicePlane stores the session files is a bit weird. Check out this file:
    application/config/config.php the session save path is the temp directory of your VPS.

I don’t have a solution for you right now, but of you think of a better place for those session files, i’ll come up with the solution (config variable).

@UnderDog you’re a legend. I managed to resolve the logo issue.

I did go through the config file and tweaked the save path to a tmp folder I created within the sub domain path folder. I saw the option to change the session driver to database, however I cannot find the different variables and options on the wiki page.

Please could you point me in the right direction.

See all the links i posted in the thread on slack

Hi UnderDog!
I have the same problem, the session ends after a minute or some seconds.

My problem is related to frequently IP chances, since website is under cloudflare proxy, and cloudflare proxy changes IP frequently.

It is possible to change invoice plane to consider True-Client-IP-Header (CF-Connecting-IP) instead cloudflare IP?

Thanks!

It is possible to change invoice plane to consider True-Client-IP-Header (CF-Connecting-IP) instead cloudflare IP?

It’s difficult to say.
We rely heavily in CodeIgniter version 3, so if it’s in the CodeIgniter source, we cab use it as well.

If you want to make a pull-request for InvoicePlane to deal with what you’re asking for, feel free to do so.