.env not changed

Hello,
I installed v5, which went well. I even migratd from my current v4 to v5 which was successfull as well. But I noticed that the .env file in the v5 hasn’t changed! it is the same one! it is as if the information haven’t been inserted into it!
There there are these issues:

  • can’t see a pdf or download an invoice
  • i upload a logo, it said it was successfully uploaded but it is not there in an invoice!

Ps. If i changed or add anything it is saved!

So, any idea why the .env was not changed! is that behind the other error!
Thank you.

Hi,

The migration won’t affect the v5 .env file.

I suggest checking that the APP_URL value is correct in the .env file. You may need to correct it and then re-upload your logo.

So, I edit the information of the .env manually (including the DB and SMTP)
I changed the REACT_URL=mydomain
checked again! Nothing
the Logo:
when I upload, it said successful… but then nothing… even the preview of the logo is just grey…

Concerning PDF viewing:
I have PDF_GENERATOR=hosted_ninja
I run a system check,
system check
Do i have just to chage to PDF_GENERATOR=snappdf or that requires other operations!
Thank you.

Do you see any errors in the browser console?

I don’t think changing to SnapPDF will resolve this issue.

When trying to view a pdf
error-pdf

Even the download option on top right is not active
pdf-error

there is the blue circle turning and turning… I waited for it for a while nothing… then i checked the “Delivery note” al all of the sudden the pdf is there with all option, (email… print/download…"


As you can see in the previous picture, the logo is not there!

Are there any errors in the browser console?

It would be helpful to see what URL is failing with a 404.

Do you think if I activate the debug in .env file that will show something!

now it is “XMLHttpRequest error.” after turning on the debug

Please see my comment above for the next step to debug the problem.

There is a lot of errors here is the full copy/paste attached in the file
errors.txt (9.0 KB)

Can you make that file private or delete it just after consulting it.
Thank you.

now if if click on dismiss
500: SQLSTATE[HY000] [2002] No such file or directory (Connection: mysql, SQL: select table_name as name, (data_length + index_length) as size, table_comment as comment, engine as engine, table_collation as collation from information_schema.tables where table_schema = ‘ninja’ and table_type in (‘BASE TABLE’, ‘SYSTEM VERSIONED’) order by table_name)

Try removing /public from the APP_URL in the .env file, you may also need to re-upload your logo.

Great that works!!! the logo is appearing on the invoice now…

Still the PDF! Do you have any solution for that! Why it shows only if I check the “Delivery note”
Thank you.
Even if I want to dwonload the invoice, nothing happens…

Sorry, not sure I follow. What isn’t woking?