I then commented out this initial user, but for some reason when sending invoices, and only invoices (quotes not affected) the sent confirmation email is sent to both [email protected] & [email protected].
Is there some other location in settings where emails are set for invoices sent confirmation emails? I can not find where [email protected] is set so I can remove this email from being sent invoice confirmation emails.
I ran this prior to the db edit. Now something is wrong with pfd generation. When creating a invoice there will be a error âSomething went wrongâ and not pd if generated. All of my pervious invoices pdfs have a basic design. Not the playful design I have in settings.
I define my environment variables in the .yml but it seems is it not being used now?
**environment:
APP_NAME: "Invoice Ninja"
APP_ENV: production
# Hier den erstellten Key einfĂźgen.
# Insert the generated key here.
# docker run --rm -it invoiceninja/invoiceninja php artisan key:generate --show
APP_KEY: base64:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
APP_DEBUG: 0
# URL und Port von nginx
APP_URL: "https://invoice.mydomain.com"
IS_DOCKER: true
PHANTOMJS_PDF_GENERATION: 0
PDF_GENERATOR: snappdf
TRUSTED_PROXIES: '*'
MULTI_DB_ENABLED: 0
DB_HOST: in-db
DB_DATABASE: ninja
DB_USERNAME: ninja
DB_PASSWORD: randompw
DB_PORT: 3306
PUID: 0
PGID: 0**
Would running php artisan optimize cause issues with pdf generation? If not would deleting that rouge user cause this?
Side note: Invoice Design setting flipping through the themes pdf generate and change themes as expected. the issues is with new and existing pdfâs.
Update: Changing the design theme to a different theme saving then going back to the playfull theme and selecting âupdate all recordsâ fixes all already generated invoices. Just having issues with new invoice pdf generation with the error âSomething went wrongâ
Well im not sure there is one inside the container since I defined them in the .yml. I looked in the container but I couldnât find it. I know if it is in there it is hidden. The image is the official image: image: invoiceninja/invoiceninja:5 but my deployment stack is different from the official documentation.
This was working prior to running php artisan optimize and the database edit. I thinking it is because the deleted user was "userId":1 I then changed my user from "userId":2 to "userId":1
laravel.log is showing this error
production.ERROR: Call to a member function present() on null {"userId":1,"exception":"[object] (Error(code: 0): Call to a member function present() on null at /var/www/app/app/Utils/HtmlEngine.php:405)
Youâll need a reply from @hillel or @david to help with the laravel error.
According to the official InvoiceNinja Docker installation instructions here it should be in the .env file. However, if you have an unofficial installation, I donât know how much help will be offered. Iâm not saying it wonât, I just donât know, because Iâm only another user like you. On some other open source software I use, if one does not install using the official methods, they donât offer free support. Not sure how they feel here.
I also donât know if php artisan optimize should be used on the Docker install without an .env file. Nowhere (that I could find) in the Docker installation documents does it say to use php artisan optimize.
Depending on how you did your Docker installation, the .env file would be in your default installation directory. Maybe dockerfiles or invoiceninja? If it is /invoiceninja (assuming itâs Linux based), you could use ls -la /invoiceninja and it will list all of the documents and directories within there and you can see if the .env file exists. You could also use find to search for your .env file.
Ive went over that documentation a many times, but had troubles with how im deploying my containers. As I said it was working prior to the edits i made to fix the hidden user email.
I will probably move the environment variables out of the .yml and into a .env file this weekend.
If you are on docker you wonât be using php artisan optimize, since the web server running php is a container. Instead, after you change the environment variables file used by docker you will need to restart the Invoice Ninja linux container so it gets picked up (docker-compose restart)
I have restarted that container several times. The only issue is when making a new invoice the âliveâ creation docent generate and a error at the top just says âsomething went wrongâ. I can save the invoice, back out then view it and generates fine.