ToolMayNARD Posted July 8, 2015 Share Posted July 8, 2015 Hello, I have a problem with my Prestashop installation. I cannot see any PDF that should be automatically created. I only get a blank page. I turned on DEBUG mode and set my .htaccess to show every error may occur. I tried to look for similar problem into this forum, but found nothing. Any suggestion? Thanks Mauro Link to comment Share on other sites More sharing options...
tuk66 Posted July 8, 2015 Share Posted July 8, 2015 What is your version? Do you use a PDF related module or patch? Link to comment Share on other sites More sharing options...
ToolMayNARD Posted July 8, 2015 Author Share Posted July 8, 2015 Version 1.6.0.11. I'm not aware of any 3rd party PDF module that made some modification Link to comment Share on other sites More sharing options...
tuk66 Posted July 8, 2015 Share Posted July 8, 2015 Fewer options. It must be something special in your store. Link to comment Share on other sites More sharing options...
ToolMayNARD Posted July 8, 2015 Author Share Posted July 8, 2015 Probably, problem is also that this is a function that I started to test only recently... and immediately it didn't work. I verified with a new installation of PS that it works. Real problem is that I get only a blank page: no errors. DEBUG mode is on and error_reporting is E_ALL, so every error should be sent to output. :-( Link to comment Share on other sites More sharing options...
ToolMayNARD Posted July 11, 2015 Author Share Posted July 11, 2015 (edited) Hello, I started to investigate further on this problem. I put some echo here and there and I found the problem start with the render() method called in PDF.php class file (model) just before calling writePage method. I suspect that there is some problem with path of the images. For example, the actual instance of the PDF Generator Object has a header that contains the logo. Code is like that: <img src="/data/www/ps.skypoint.it/html/img/skypoint-srl-logo-1422456475.jpg" style="width:367px; height:40px;" /> In short, the src property of img tag has the absolute path where my logo is placed in the hosting server. Or maybe, to the writePage() mathod arrives something that the PDF renderer doesn't like...but what? Bests Mauro Edited July 11, 2015 by ToolMayNARD (see edit history) Link to comment Share on other sites More sharing options...
ToolMayNARD Posted July 11, 2015 Author Share Posted July 11, 2015 Update... it's not a problem of image path. Compared output with a fresh installation and it's the same. Going further with placing some "echoes" here and there I found that script hangs just after AddPage() method call into writePage() method of PDFGenerator class. Mauro Link to comment Share on other sites More sharing options...
tuk66 Posted July 11, 2015 Share Posted July 11, 2015 Is your logo JPG image? I mean a real JPG image, not PNG with JPG extension. Link to comment Share on other sites More sharing options...
ToolMayNARD Posted July 11, 2015 Author Share Posted July 11, 2015 I think that you made a bingo... But how do I manage various backgrounds with a jpg that doesn't allow for transparent background?!? Link to comment Share on other sites More sharing options...
tuk66 Posted July 11, 2015 Share Posted July 11, 2015 I can't be. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now