500: Server Error - after saving - api/v1/companies/

Ok, after extensive research I did the following:

  1. I ran: php artisan migrate (within the root folder of my InvoiceNinja installation)
  2. Deleted these files: 2021_10_29_115919_update_designs.php, 2021_11_03_131308_onboarding.php (all versions if multiple exists they are mentioned in the Terminal after you run php artisan migrate),
  3. Visited: https://invoice.mydomain.nl/update?secret=XXXXX (XXXXX can be found in your .env file)
  4. Again, I ran php artisan migrate.
  5. I ran php artisan optimize.

Hopefully the problem will be solved now in the long run…Perhaps these steps can help others.

1 Like