Been using InvoiceNinja for a couple of years now and been working fantastic - I upgraded to the latest release (V5.9.2) from (V5.8.x) and noticed a few features have stopped working - I am sure this is down to config my end, but cannot work out where to start looking.
Firstly, emails are now longer sending. I had configured emailing in the .env file before but noticed that there are now settings within the GUI, so added my servers settings etc. and sent a test email - This works fine. However, when selecting an invoice and then selecting “email” I am told the email has been successfully queued, but no email is sent.
Also, the transactions are not auto-importing. I have connected by bank via Nordigen and if I go to “Settings → Bank Accounts”, it’s showing the correct balance of the account, however the transactions are no longer being automatically inputted in into the transactions list.
You might have hit the nail on the head there! I am using a hosting platform and the site is selected to run PHP 8.2, yet when running the command it is coming back as PHP 8.1.27.
Ah, okay! So found a cron job which is the following:
php8.2 /home/domainame/htdocs/domainname/artisan schedule:run >> /dev/null 2>&1
I run that locally via command line and missing transactions are now present and a queue of emails have been sent out.
Is there a way to delete the queue of emails? I only let it send a few, but I had tried multiple times to send an email and I dont want to spam my customers anymore
PHP Fatal error: Composer detected issues in your platform: Your Composer dependencies require a PHP version “>= 8.2.0”. You are running 8.1.27. in /home/domainname/htdocs/domainname/vendor/composer/platform_check.php on line 28.
Defo a PHP issue - While my control panel says PHP 8.2, is there a specific config file for Invoice Ninja I need to adjust to change the PHP version?
If I run the command you sent above with PHP8.2 artisan queue:flush, that works.
Just for completeness, if anyone else has this issue and uses CloudPanel, dont assume that setting the PHP settings on the site settings page controls the “default” PHP
All working fine now! For ref:
Yes, you always need to use the right version e.g. php8.2 or php8.3.
If you want to use “php” only, you can set PHP to your desired version:
update-alternatives --set php /usr/bin/php8.2
After that, “php” will be a symlink to /usr/bin/php8.2
Thank you Hillel for pointing my in the right direction (and so quickly too!)