Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PDF's not generating in v5 #4022

Closed
Codebreaker101 opened this issue Aug 28, 2020 · 7 comments
Closed

PDF's not generating in v5 #4022

Codebreaker101 opened this issue Aug 28, 2020 · 7 comments
Labels

Comments

@Codebreaker101
Copy link

I've setup invoice ninja v5 in a VM using Method 1 and 2 of this guide.

When generating invoice PDF I get a 404 error.
When previewing invoice design I get an file with no styles and I'm not able to load any design.

Additionally there are no logs that I can find that show any errors or warnings. (storage/logs/laravel.log, /var/log/nginx/error.log). During setup, test pdf was generated successfully.

php: 7.3.19-1~deb10u1
node: v12.18.3
npm: 6.14.6
composer: 1.10.10

@beganovich
Copy link
Member

beganovich commented Aug 28, 2020

Hello,

Thanks for reporting this to us. However, before we mark this as an issue, let's make sure your environment is configured properly.

There are two things you should check:

.env file contains the correct link to your website.
You can find .env file in the root folder of your Invoice Ninja. Open it and check for APP_URL property. Make sure it contains the right URL.

Run: php artisan optimize in case you changed it to reflect it through the system.

Storage directory might not be linked:

Run: `php artisan storage:link' and try again.

Let us know the outcome.

Thanks!

@Codebreaker101
Copy link
Author

Reinstalled everything today with the latest commit c9be746 and the PDF generation seems to work. But now there is a new issue. Changing localization causes blank page.

@Codebreaker101
Copy link
Author

@beganovich
Copy link
Member

You said:

I've setup invoice ninja v5 in a VM using Method 1 and 2 of this guide.

Can you let us know was it method 1 or 2?

@Codebreaker101
Copy link
Author

It was method 2

@beganovich
Copy link
Member

This is expected behaviour then. When you pull from git, it uses latest code which might not be stable fully.

We suggest going with release (method 1).

@Codebreaker101
Copy link
Author

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants