Hi,
I have two installation of InvoiceNinja.
One with Softaculous in version 4.5.21 and another one installation in another server without Softaculous, in manual installation with git and composer (latest version of 4.x).
I can make all I want but the problem is the payment.
I can’t pay any invoice. I’m using Stripe and it work fine with my first Softaculous installation. With the manual installation I always have the same message “An error occured. Please refreshe the page and try-again.”.
I have no log. But in web console I can see an exception :
hillel
January 3, 2021, 7:51am
2
Hi,
It may be related to this issue:
opened 12:36PM - 30 Dec 20 UTC
closed 04:05PM - 02 Jan 21 UTC
question
Hello,
I had a working self-hosted Invoice Ninja install. All of a sudden, cr… eating new invoices would fail and emailing invoices from the already created ones would not work as well.
Checking laravel-error.log showed below:
[2020-12-30 12:30:28] production.ERROR: TypeError: t is undefined {"context":"JavaScript","user_id":1,"account_id":1,"user_name":"Firstname Lastname","method":"GET","user_agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:84.0) Gecko/20100101 Firefox/84.0","locale":"en","ip":"x.x.x.x","count":2,"is_console":"no","is_api":"no","db_server":"mysql","url":"log_error"} []
[2020-12-30 12:30:44] production.ERROR: TypeError: t is undefined {"context":"JavaScript","user_id":1,"account_id":1,"user_name":"Firstname Lastname","method":"GET","user_agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:84.0) Gecko/20100101 Firefox/84.0","locale":"en","ip":"x.x.x.x","count":3,"is_console":"no","is_api":"no","db_server":"mysql","url":"log_error"} []
[2020-12-30 12:31:14] production.ERROR: TypeError: t is undefined {"context":"JavaScript","user_id":1,"account_id":1,"user_name":"Firstname Lastname","method":"GET","user_agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:84.0) Gecko/20100101 Firefox/84.0","locale":"en","ip":"x.x.x.x","count":4,"is_console":"no","is_api":"no","db_server":"mysql","url":"log_error"} []
Please assist what possibly caused this error and how to resolve it?
Thank you.
Uooh ! Incredible, it works.
I havn’t the reflex to going to see post outer than this forum.
Thanks you so much !
But, remove modsec dont create a potential breach into the server ?
hillel
January 3, 2021, 3:25pm
5
I don’t know, you may want to consider upgrading to v5
Same problem with v5 and disabling modsec resolve the issue.
hillel
January 3, 2021, 3:46pm
7
I didn’t realize, we’ll look into it
cc @david
Thanks a lot @david and @hillel .
I asked my provider about the mod security problem.
They works on give us the possibility to configure it easily.