Migration-problems: no imported taxes, email didn't work

v4.5.50 to v5.10.60
Shared Hosting

I still have various problems after the migration. The most important point is that the tax rates of the individual invoices have not been transferred. We have customers in Germany and Austria and therefore different tax rates depending on the invoice recipient. I would have to add them manually, but with over 6000 invoices this is simply not an option. Then the emails don’t work. And unfortunately I can’t manage to recreate our old invoice layout in HTML…

Hi,

  • Tax rates: the taxes are included in the migration, I suggest checking that the tax settings are correct.
  • Emails: are you seeing any errors? Please post a screenshot of the health check.
  • Invoice layout: what specific problems are you running into, the new designs are much more flexible than in v4.

I forced the migration again and this time the tax rates were transferred correctly. Luckily…

I have already tried so many settings for the emails that I can no longer say what all came up as an error message. At the moment I have used the setting for SMTP in the backend and filled in all the fields accordingly. The .env contains the following values:
MAIL_MAILER="smtp”
MAIL_HOST="mail. name .de”
MAIL_PORT="465”
MAIL_USERNAME="contact@domain”
MAIL_PASSWORD="password”
MAIL_ENCRYPTION="ssl”
MAIL_FROM_ADDRESS="contact@ domain”
MAIL_FROM_NAME="SR Verlag GmbH”

If I then want to send a test mail, I get the following popup:
The “” scheme is not supported; supported schemes for mailer “smtp” are: “smtp”, ‘smtps’.

And as far as the template design is concerned: A colleague with programming skills created an HTML template for v4, which unfortunately no longer works. The colleague is no longer there and I can’t program. That’s why I’m currently in the process of adapting one of the templates accordingly. Too bad, but it can’t be changed.

Updating to the latest version should resolve the email error you’re seeing.

Okay, that’s what I suspected after my Google research. It’s that bug in Laravel, right? Unfortunately Softaculous hasn’t installed the update yet, so I’ll wait for that. Thank you very much!

I believe the bug was caused by a change in an underlying library, not sure it’s accurate to say it’s a Laravel bug.

FYI… you can update to the latest version by manually copying over the latest release tar.

1 Like

I tried to simply overwrite all files, but that messed up the installation and didn’t work.

Now I still have the problem that the default invoice terms and the invoice footer are not transferred. They simply do not appear on the invoices. Only when I enter them manually. But after logging in again, they are gone again.

Do you see the problem when using a standard design?

Also, can you reproduce the problem in the demo?

I use the business template.

Which demo do you mean?

The demo of the app, I provided the link in my comment

your .env looks wrong:

MAIL_MAILER=smtp
MAIL_PORT=587
MAIL_ENCRYPTION=TLS
MAIL_HOST=mail.name.de
[email protected]
MAIL_FROM_NAME='Your NAME'
[email protected]
MAIL_PASSWORD=YOURPASSWORD

Sorry for edit, i use more then one company

Which PHP version are you using? because the “” are still with PHP 8.2 for one of my customers and without 8.3 for me.

Yes, it’s the same behavior in the demo. The conditions and footer are only saved for the respective invoices. The global settings are not applied.

Thank you, I will check the settings. I am using PHP 8.2, will check with 8.3 too…

Are the directory permissions correct?

I also put off my migration quite a bit and then did the whole thing with snapshots of my LXC and another subdomain etc.

PHP 8.3 unfortunately does not change anything

The corrections should all fit because I installed everything through Softaculous on shared hosting.

I would first have to set up a test instance to take a closer look at Softaculous. However, since I virtualize everything via Proxmox and LXC, it doesn’t pay off.

Since there is still some kind of control panel under Softaculous, I would have to check again whether there is anything wrong here.

You don’t get any error messages for sending mail, do you?

After copying the .tar you have already executed https://deinedomain.de/update?secret=COPYFROMYOUR.ENV, haven’t you?

Update instructions Free Source Available Invoicing, Expenses & Time-Tracking | Invoice Ninja

I have now found out that the default invoice terms and the invoice footer are at least included in new invoices. For the migrated invoices that I still wrote under v4, I have to enter them manually and save them that way. Is this the intended behavior?

The same behavior also occurs in the demo. The existing invoices ignore the global settings. New invoices take them into account.

I unpacked the TAR file and tried to simply overwrite all the data in the installation folder. But at 95% the upload crashed (at the file autoload.php). There were also error messages before I started. That’s why I’d rather just wait for Softaculous to provide the update. It’s less stressful.

That’s the correct behavior, terms for existing invoices are not changed when saving.

If you want to update with the tar you’ll want to copy it first and then extract it.