Hello,
I started testing out version 4 a few weeks ago on a shared hosting platform. I have since moved to Cloudways, which unfortunately only allows one php version for the whole server, rather than per application. As I have other applications using php7.4, I decided to go with version 5.
I’ve installed and reinstalled v5 a few times while testing it, usually due to it having problems after fiddling with it and doing a clean install to get it working again.
I’m self hosting on Cloudways and have version 5.1.31 installed. I have two companies set up, which are services I offer with different branding.
Some issues I’ve found so far while testing.
-
I have some issues regarding mailing invoices. First issue is, they’re only sent after running ‘php artisan queue:work’, even though I’ve changed the .env setting to QUEUE_CONNECTION = database, nothing happens until the command is run. Once I run the queue command via ssh, the only way out of it is to use Ctrl Z, which stops it running. Should it, and can it, be left running? Is there a better way for it to run in the first place?
The cronjob for sending invoices and reminders is set to 5 minutes and I followed the Cloudways guide and looks like this:
*/5 * * * * cd /home/master/applications/userfolder/public_html/ && php /home/master/applications/userfolder/public_html/artisan ninja:send-invoices #CloudwaysApps
It has the follwoing error in the laravel logs:
production.ERROR: Method App\Console\Commands\SendRemindersCron::webHookExpiredQuotes does not exist. {“exception”:"[object] (BadMethodCallException(code: 0): -
I can’t see separate SMTP settings for each company, like there was in version 4, I only see company specific ‘reply to’ settings. This means the emails can only come from one address via one SMTP setup for all companies rather than using separate SMTP setups and email addresses for each company. This doesn’t seem right, or am I missing something?
-
My invoice and quote emails keep arriving in spam even though I have corrected my spf settings, and checked them via an email testing site. Maybe this is related to point 2 where I have a different ‘from’ email address to the ‘reply to’ address?
-
If I check the Delivery Note option I get a server 500 error and I can’t see the pdf, when I untick it the pdf reappears.
-
Oddly, even though the email is working, if I run ‘php artisan ninja:send-test-emails’ I get the following error:
ErrorException
Trying to get property ‘type_id’ of non-object
at app/Services/PdfMaker/Design.php:254
250▕ */
251▕ public function productTable(): array
252▕ {
253▕ $product_items = collect($this->entity->line_items)->filter(function ($item) {
➜ 254▕ return $item->type_id == 1;
255▕ });
256▕
257▕ if (count($product_items) == 0) {
258▕ return [];
1 app/Services/PdfMaker/Design.php:254
Illuminate\Foundation\Bootstrap\HandleExceptions::handleError()
2 [internal]:0
App\Services\PdfMaker\Design::App\Services\PdfMaker{closure}()
- If I run ‘php artisan test’ the following fail comes up:
FAIL Tests\Integration\DownloadHistoricalInvoiceTest
✓ activity accessible
✓ backup exists
⨯ backup download
Expected status code 200 but received 500.
Failed asserting that 200 is identical to 500.
at vendor/phpunit/phpunit/phpunit:61
57▕ unset($options);
58▕
59▕ require PHPUNIT_COMPOSER_INSTALL;
60▕
➜ 61▕ PHPUnit\TextUI\Command::main();
62▕
- Running ‘php artisan ninja:check-data’ - results in the following “x invoices records with incorrect client company id” message coming up. If I try and add anything to the ID field of the company, I now get the following line “x activities records with incorrect client company id” as well.
So, I know I have written a lot but any pointers would be greatly appreciated here, thanks.