Jump to content

PDF problems


Recommended Posts

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

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

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 by ToolMayNARD (see edit history)
Link to comment
Share on other sites

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...