Blank Page 3.0.3

Phoca PDF - creating PDF documents in Joomla! CMS
dpur293
Phoca Newbie
Phoca Newbie
Posts: 8
Joined: 28 Sep 2016, 22:54

Blank Page 3.0.3

Post by dpur293 »

I'm still getting a blank page when rendering PDFs with the new version. No errors though.

Just rendering simple text, not sure what I'm missing. Have been looking at this topic I found here in the forum:

viewtopic.php?f=37&t=56658

The last post says "set in 3.0.3" but I'm not sure if its an automatic fix or something I need to specify.

Please let me know if you can help and / or if you I may be able to hire you to work on this for us.

Thanks!
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Blank Page 3.0.3

Post by Jan »

Hi, can I see the site where this occurs?

Did you try to enable debug mode and php error reporting (or see errorLog on your server). Blank page mostly means a php error:

https://www.phoca.cz/documents/16-joomla ... rs-on-site

Jan
If you find Phoca extensions useful, please support the project
dpur293
Phoca Newbie
Phoca Newbie
Posts: 8
Joined: 28 Sep 2016, 22:54

Re: Blank Page 3.0.3

Post by dpur293 »

I just looked with debug mode on and it gave no errors.

I did notice this difference between my PDF button code and the one on your demo:

Code: Select all

MINE:
<li class="print-icon"><a href="/custom-fabricated-copper-products.pdf?tmpl=component" onclick="window.open(this.href,'win2','status=no,toolbar=no,scrollbars=yes,titlebar=no,menubar=no,resizable=yes,width=640,height=480,directories=no,location=no'); return false;" title="PDF" rel="nofollow"><span class="glyphicon glyphicon-file icon-file"></span>PDF</a></li>	

YOUR DEMO:
<a href="/demo/phocapdf-demo?format=phocapdf" title="PDF" onclick="window.open(this.href,'win2','status=no,toolbar=no,scrollbars=yes,titlebar=no,menubar=no,resizable=yes,width=640,height=480,directories=no,location=no'); return false;" rel="nofollow"><img src="/demo/images/M_images/pdf_button.png" alt="PDF"></a>	
Could that be the issue? I messed with the button code and got nowhere.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Blank Page 3.0.3

Post by Jan »

Hi, can you paste a screenshot how your rendered PDF looks like?

Jan
If you find Phoca extensions useful, please support the project
dpur293
Phoca Newbie
Phoca Newbie
Posts: 8
Joined: 28 Sep 2016, 22:54

Re: Blank Page 3.0.3

Post by dpur293 »

dpur293
Phoca Newbie
Phoca Newbie
Posts: 8
Joined: 28 Sep 2016, 22:54

Re: Blank Page 3.0.3

Post by dpur293 »

Any thoughts?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Blank Page 3.0.3

Post by Jan »

Hi, I see, so this means, there is no error rendered and the PDF is correctly created (I mean the PDF format).

So seems the content will be somehow in conflict.

Are you able to print some really simple article (test article) with e.g. only one word?

Jan
If you find Phoca extensions useful, please support the project
dpur293
Phoca Newbie
Phoca Newbie
Posts: 8
Joined: 28 Sep 2016, 22:54

Re: Blank Page 3.0.3

Post by dpur293 »

I tried that, nothing works. Is there a place where I need to specify the content div?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Blank Page 3.0.3

Post by Jan »

Hi, no, Phoca PDF gets the content from article only - there is no need to specify anything. Sometimes it can happen, that the article text include e.g. some bad encoding (mostly when users copy the text from applications like Word is, etc.)

Such hidding formatting can then cause the problems. So this is why I asked, if it works with some simple text (not copied) - e.g. create article, "toggle editor" (switch to html source code) and paste <p>Text</p> and save it and test if the PDF produces the content :idea:

Jan
If you find Phoca extensions useful, please support the project
crusader
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 05 Dec 2016, 12:41

Re: Blank Page 3.0.3

Post by crusader »

Post Reply