[4.x] Unable to access Invoice Ninja

Ideally I would like to move to 5.x but merging databases has proved wildly difficult for me.

Error 500 in browser, from laravel-error.log:
production.ERROR: Class "PDO" not found {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\FatalThrowableError(code: 0): Class \"PDO\" not found at /home/richar11/public_html/<dbname>/config/database.php:16)"} []

No recent changes, shared hosting.

I can not figure this out for the life of me, any help is greatly appreciated, thank you

Hi,

My guess is something changed without you knowing about it, maybe the info here will help:

1 Like

I put a phpinfo.php file in and it’s showing PHP 8.2.21, when I have the Multi PHP Selector set for that entire domain to 7.4 currently, as I want to upgrade to 5.x.

I am working with my hosting company in a chat to figure this out, hopefully we can.

For anyone who has this issue in the future, make sure you check the PHP version info of your Invoice Ninja install with a phpinfo.php file, uploaded to Invoice Ninja’s /public directory, then access it directly with your web browser!