I upgraded to PHP 8.1 and Invoice Ninja v5.5.24-C93. Everything seems to be working but when I create and send an invoice it says “Succesfully queued invoice to be sent” but emails are not being sent.
I have debug enabled but I’m not seeing anything relevant to emails.
This is the most recent error: [2022-09-30 18:41:28] production.ERROR: file_get_contents(/usr/share/nginx/invoiceninja/vendor/beganovich/snappdf/versions/revision.txt): Failed to open stream: No such file or directory {“userId”:1,“exception”:"$
[stacktrace]
Also if I manually run: php artisan schedule:run >> /usr/share/nginx/invoiceninja/storage/logs/laravel.log 2>&1
I get: INFO No scheduled commands are ready to run.
This is the most recent error: [2022-09-30 18:41:28] production.ERROR: file_get_contents(/usr/share/nginx/invoiceninja/vendor/beganovich/snappdf/versions/revision.txt): Failed to open stream: No such file or directory {“userId”:1,“exception”:"$
This one definitely means the system is trying to use snappdf
you could try running this:
sudo -u www-data php artisan queue:listen
If you see a bunch of jobs starting to fire, it means your queue is not running.
I don’t get any errors in system logs either. I tried using my personal gmail as the SMTP and that email sent fine. It’s weird though because this same configuration was working fine on the prior version of PHP and Invoice ninja <5.5.
I’ve tried a few different configs that my webhost support had me try and got the same result where it appears to send but nothing happens.
it is strange that the system is not reporting back some kind of error. but i think if it is sending via personal gmail, then it most likely is an issue somewhere with your mail configuration.
It was working fine on the previous version. So I don’t understand why the same config isn’t working now. My webhost support whitelisted the IP I’m hosting Invoice Ninja on but I don’t think that’s the issue. If you think of anything else I can look into I’d appreciate it.