I can’t take all the credit, I followed this debugging process using the mpdf.php library from the InvoicePlane software distrib, and I found the error in the HTTPD logs then. Something in InvoicePlane must be suppressing these PHP errors from getting logged.
Seems to be a bug with library itself, it wasn’t touch since the update to mPDF 5.7.4.
Which file did you downloaded? From the 6.0 version? Because 5.7.4 is the “latest stable”.
You’re right, something is very weird. I just downloaded the Invoice Plane zip file on my laptop as well as the MPDF file I linked yesterday, and I am finding no difference. Even the md5sum of the two files match.
It’s curious, because I downloaded the zip file directly on my server yesterday and unzipped it on the command line, just like I just now did on my laptop.
Maybe it has something to do with the version of the “unzip” binary on our servers? What version of Linux were you running when you extracted the file zaziork?
No i can’t imagine that unzipping changes a file in that way. That’s really strange but I’ll send out a notice that you found the cause for this problem.
On both systems I used wget to fetch the Zip file from your server (wget https://invoiceplane.com/download/v1.4.3 -O invoiceplane.zip && unzip invoiceplane.zip).
I did this on my laptop (Linux Mint Debian Edition) and my invoice server (CentOS 7). Curiously both versions of the “unzip” binary appear to be the same.
However, I got different MD5 hashes after extracting the zip file.
c585bf5fd30f08c47c27f718376f9ca6 application/helpers/mpdf/mpdf.php
1216833cd85e5af3887984f49c091d27 application/helpers/mpdf/mpdf.php
I downloaded the new zipped archive to my server and verified both hashes.
The hash for the new mpdf.php was different to the mpdf.php that I downloaded yesterday (from the aforementioned link), however I substituted the new version and everything still works fine.
The file was unzipped on the base system, which is Centos 7. But the application is actually deployed in a Docker container, running Ubuntu 14.04.2. I transfer the files through a directory mounted inside a persistent container.
everything was going well, but we have started noticing that the Report is skipping invoices. Looked into log and this is what it shows: http://paste.ee/p/f4s3W
Can anyone assist, I have a problem when saving, or updating invoice, quotes or clients details. The system does not save instantly, it keeps the old details if im updating and also no new data shows if i’m creating. The changes only take effect after some hours or so.
I tried everything to make it work but nothing seem to work.
I’ve had similiar problems with a Nginx/php-fpm setup. The PDF generation / view requests CSS via the configured domain (e.g. http://example.com/assets/default/css/templates.css). If you have IP blocking configured through e.g. a firewall or server config this may cause the PDF generation to fail.
you are correct, I tried InvoicePlane at a local machine and wouldn’t work with the pdf but on the production server it’s working fine. thanx and sorry for the trouble