Upgrading On Shared Hosting - Error

Hosted Version:
Installed Version:
5.11.41
Latest Version:
5.11.49

Tested on Invoice Ninja
Version slightly different but same issue
Installed Version:
5.11.43
Latest Version:

5.11.49

Checked the los no errors in the laravel.log

Let me know if I am missing something.

Replicated the steps in order to generate log files.

I also noticed before I could do the upgrade in the Softacoulous panel but see that is no longer there.

1 Like

Hi,

Are there any related errors in storage/logs?

hi @hillel

There is nothing in the storage logs.
Would there be an upgrade option on the Softaculous panel as well?

@hillel did some changes to the php version now logging errors.

Changed from 8.2 → 8.3

Found the following

[2025-03-05 05:40:02] production.ERROR: Class “PDO” not found {“exception”:"[object] (Error(code: 0): Class "PDO" not found at /home/**/domains/invoice./public_html/vendor/laravel/framework/src/Illuminate/Database/Connection.php:118)
[stacktrace]

However I have enabled them on the PHP version.

I’m not sure, it looks like a configuration issue

Checking the issue with the hosting provider as well.

but this is the latest errors

2025-03-05 05:59:59] production.ERROR: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 36864 bytes) {“userId”:1,“exception”:"[object] (Symfony\Component\ErrorHandler\Error\FatalError(code: 0): Allowed memory size of 1073741824 bytes exhausted (tried to allocate 36864 bytes) at /home//domains/invoice..co.za/public_html/app/Http/Controllers/SelfUpdateController.php:101)
[stacktrace]
#0 {main}
“}
[2025-03-05 06:00:02] production.ERROR: Class “PDO” not found {“exception”:”[object] (Error(code: 0): Class "PDO" not found at /home//domains/***.co.za/public_html/vendor/laravel/framework/src/Illuminate/Database/Connection.php:118)
[stacktrace]

Ever since I’ve been exploring Invoice Ninja on a quality AU Hosting server, I’ve always experienced these issues “Something went wrong”
I’ve become reliant on Softaculous to Backup and Update.
https://softaculous.com/apps/ecommerce/Invoice_Ninja

From the error is looks like you may need to increase the PHP memory limit on the server.

It may help to manually copy over the latest release tar.

How much Memory does Ivoice Ninja need?

The upgrade can require a lot, I think we recommend 1GB minimum

That’s CraZy! :open_mouth:
I’ve 1 Gig of PHP memory on my host and Invoice Ninja has always failed updating from withing the admin dashboard. Although Softaculous does update IN when they eventually get to it.

If you use Softaculous to update then it isn’t needed

The memory limit is set to 1gb

Currently chatting with hosting provider, so not sure if it will make a difference but I have identified the following module is not installed * common on php.

Currently diagnosing to see what the issue is.

@hillel just want to ensure I am correct path with regards to the modules.

Also wanted to know how come Softacoulous dont have the update option, is there a delay?

Sorry, I’m not sure I understand your question related to modules.

Yes, Softaculous usually has a short delay as they need to test the release.

Sorry, I’m not sure I understand your question related to modules.

  • I wanted to verify which php modules are required. My apologies.

I am currently testing with the hosting provider to find the root cause, so if we may keep the thread open. Will post results once it has been fixed.

1 Like

I asked my AU Quality Hosting Privider the exact same question a little while ago. Here is their reply :slight_smile:

"The ‘Common’ PHP extension here is essentially an indication of the extensions, licenses, and support files that are installed within the php-common package, which are installed and utilised by your current PHP installation

Rather than the requirements listing every single one of the PHP extensions that are installed within this package, the requirements list these as ‘common’

So in answer to your question, as the extensions that you will require within this package are already enabled, you will not have issues"

I’ve also 1Gb of PHP memory allocated and have always experienced this “Something went wrong” error. :face_with_symbols_over_mouth:

Softaculous can take a couple of weeks before they release an update. In that time Invoice Ninja would have gone through a bunch of updates themselves, so Softaculous never has a chance of having the latest Invoice Ninja package.
Why updates work with Softaculous and not from within Invoice Ninja Dashboard? I could take a guess and assume it’s something to do with how the Hosting Company has allocated resources to Softaculous. But frankly I’m just glad it updates after spending hours and hours reading and experimenting. :roll_eyes:

I’ve only just updated to 5.11.49 from within Softaculous but Invoice Ninja latest package is 5.11.51. Maybe in a couple of weeks I’ll be on this release and Invoice Ninja will be at version 6.10.55 :joy:

Also, I’d like to add Softaculous backup and restore has proven to be rock solid. I’ve deliberately Deleted the whole File structure and Dropped the Database tables. After using the Softaculous restore functions, Invoice Ninja was back up and running withing minutes :+1:
If you’re going Self Hosted, I’d highly recommend using Softaculous to install and manage Invoice Ninja.

1 Like

Note: You can update and backup decoupled from the webserver with inmanage CLI script.

If you are familiar with the commandline and have SSH access to your server.

inmanage update script here in forum

@Peter_C I think I am going to do that as well, As I also using quality hosting provider and we have checked everything.

@dros going to test this weekend.

But like @Peter_C softacuoulous takes time to update and the update from the Invoice Dashboard dont work would be nice if we could get it working thou.