When I Create a Reoccurring Invoice, if I try and edit it (for eg from monthly to daily)
500: Server Error
If I try and delete it:
500: Server Error
And the bad part, If I logout and try and login:
500: Server Error
And then im completely locked out of I.N
Looking in storage/logs/laravel.log it is throwing an error:
[2020-12-30 08:34:16] production.ERROR: Call to a member function copy() on null {“userId”:1,“exception”:"[object] (Error(code: 0): Call to a member function copy() on null at /var/www/html/ninja/app/Models/RecurringInvoice.php:376)
production.ERROR: Call to a member function copy() on null {“userId”:1,“exception”:"[object] (Error(code: 0): Call to a member function copy() on null at /var/www/html/ninja/app/Models/RecurringInvoice.php:376)
On reoccurring invoices i can edit them and delete them now which would break things before.
But one issue still remains:
If i start the cycle, when i click stop it says “Successfully stopped reoccurring invoice” but it doesn’t look like it actually stopped it. Also the option to stop the reoccuring invoice is still there and you can click it again and it says “Successfully stopped reoccurring invoice”
Ill test this and see if they are actually stopped or its just cosmetic that the stop button doesn’t change back to start. I started 2 reoccurring daily invoice jobs and stopped one of them.
Heres a picture of one of the menu’s after I clicked stop and a message popped up saying it was successfully stopped.
@david
So although the 500 errors don’t show up anymore and it lets you delete / modify / start the reoccurring invoices now, i don’t think they are actually firing. Ive tried a couple of times after rebuilding the server and if i set to daily interval and click start, after a few days there are still no invoices. Im currently on v5.0.47-C38
Is there any other troubleshooting I can do for you?
Cron tab file looks like default and i dont see any cron jobs?
No records in jobs table that i can see. I see other records to do with emailing etc… but no change when i press start. The status in the GUI says ‘pending’.
I setup cron job and reoccurring invoices do seem to fire now (Testing in v5.0.53-C39) but when i click stop it still says ‘active’ in the GUI?
Ill see if the reoccuring invoice i clicked stop on fires again tomorrow on a daily job im testing with and let you know.