Application not reachable after update

Hello,

Last week, I upgraded our system from version 5.8.46 to 5.10.8 and have since encountered two significant issues. Firstly, I cannot access the app via the web, as it returns a 404 error message. Secondly, since installing the new React app, I consistently receive a 500 server error whenever I make changes.

Could you provide any guidance or troubleshooting tips to help resolve these issues? I would appreciate any assistance to avoid reverting back to version 5.8.

Thank you for your help.

Hi,

There should be details about the 500 error in storage/logs

It may help to run php artisan migrate

Hi hillel,

Thank you for your support. I forgot to say that the application is hosted through Softaculous so i am unable to run any commands.

I have enabled the debug mode and when i try to save something i get the following message: 500: Internal Server Error • Undefined array key “Invoice”
I am still unable to connect from a web browser as i get a 404 | Nothing to see here!.

I checked the app log files and got the following issues:

> PHP Fatal error: Composer detected issues in your platform: Your Composer dependencies require a PHP version “>= 8.2.0”. You are running 8.1.29. in /home/XXXXX/public_html/invoice.mdit.uk/vendor/composer/platform_check.php on line 28.
For this issue i double checked and the PHP version is set to 8.2 for IN.

[12-Feb-2024 20:46:01 UTC] PHP Warning: Failed to set memory limit to 512 bytes (Current memory usage is 2097152 bytes) in Unknown on line 0
For this issue i have set the memory to 512MB so not sure i am getting this error too.

Many thanks for your support.

Well, here is one major error right here. The minimum required version of PHP is now 8.2 for InvoiceNinja to work properly. If you have both versions installed, it can cause errors. You will also need to check your .env file and either nginx or apache2 config files, and your cron job to see what version of PHP is being pointed to. Errors will come up if you’re pointing to two different versions.

If possible, I would recommend increasing PHP memory to 1024M as you’ll get much better performance, even on the smallest server. It looks like you’re memory might have accidentally been set to 512 bytes and not 512M.

This is telling you that it’s trying to currently use 2M, so it cannot set memory usage lower than you’re currently using.

Thank you for your response.

The issue is that these settings are correct on my panel but for some reason the app does not recognise them.

Yesterday i upgraded to the latest version .10 and the app is now working and no errors are recorded in the log file. However, when i access the app from the web browser (even from private) i am still getting 404 | Nothing to see here! error.

My apologies, I’m not sure what this means.

A 404 error is different than your originally posted 500 error. The 404 means it cannot find the page you are looking for at that moment.

Have you tried appending the following to the end of your URL in the browser?

/update?secret=

That might help.

Hi northhill,

Thank you for your support. Initially i was getting two errors, 404 and 500.

Now i can access the application via the windows or iPad app but not from a web browser as i am still getting the 404 error. I tried the /update?secret= but nothing is happening. I also tried from private but nothing.

I just updated to .11 Now if i visit /dashboard i can access the app. Previously the url was (https://invoice.mydomain.com/public/index.php) now it works as https://invoice.mydomain.com/dashboard

1 Like