Updating invoice ninja requires php8.2

Hi guys,

So I updated my Invoice Ninja without realizing that it requires php8.2

Now When I try to install php8.2 following the steps as per How to install/upgrade PHP 8.2 on Debian and Ubuntu systems • PHP.Watch, it tells me after I try to add the repository it throws me this:

Hit:1 http://nova.clouds.archive.ubuntu.com/ubuntu lunar InRelease
Hit:2 http://nova.clouds.archive.ubuntu.com/ubuntu lunar-updates InRelease                                                          
Hit:3 http://nova.clouds.archive.ubuntu.com/ubuntu lunar-backports InRelease                                                        
Ign:4 https://ppa.launchpadcontent.net/ondrej/php/ubuntu lunar InRelease                         
Err:5 https://ppa.launchpadcontent.net/ondrej/php/ubuntu lunar Release     
  404  Not Found [IP: 443]
Hit:6 http://security.ubuntu.com/ubuntu lunar-security InRelease
Reading package lists... Done
E: The repository 'https://ppa.launchpadcontent.net/ondrej/php/ubuntu lunar Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

Is there a way to fix it (I am a bit useless when it comes to these kinds of errors)


I’m not sure about the specific error you’re seeing but you should be able to downgrade by manually copying over the zip file of the previous version you were using.

You may want to first make a backup of the database and .env file.

Well I wiped my vps. Reinstalled it. But now keep getting a Server Error 500 when accessing the setup wizard.

I have changed the .env file as per requirement for db and password. but still no luck.

^ It is based on php 8.3 Installed v5.9.2 due to it is only latest zip file

Are there any details about the 500 error in storage/logs?

There isnt any thing.

Not sure, if you’re seeing a 500 error in the app the details will be logged in either the web server error logs or storage/logs.

I have checked the nginx logs but nothing there

Have you checked storage/logs in the project folder?

Where is that located ?

It’s in the folder where you installed the app

Okay found the laravel.log

It shows this

2024-06-09 18:49:19] production.INFO: account table not found
[2024-06-09 18:50:02] production.INFO: account table not found
[2024-06-09 18:50:11] production.INFO: account table not found
[2024-06-09 18:50:16] production.INFO: account table not found
[2024-06-09 18:50:22] production.INFO: account table not found

I suggest checking the database credentials in the .env file are correct and that the database has all of the tables.

How would I check the database for tables ?

I created a new db and still the same issue

If you’re updating the app I assume you’d want to use your existing database?

If you’ve created a new database I suggest running php artisan migrate

I was about to say the same. Setup page loaded

Is there a way to make it dark mode ?
Love the new design of invoice Ninja

Great to hear! There’s an option on /#/settings/user_details/preferences

1 Like