Page 1 of 2
Blank Page 3.0.3
Posted: 07 Oct 2016, 17:15
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!
Re: Blank Page 3.0.3
Posted: 07 Oct 2016, 18:23
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
Re: Blank Page 3.0.3
Posted: 11 Oct 2016, 01:44
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.
Re: Blank Page 3.0.3
Posted: 11 Oct 2016, 11:19
by Jan
Hi, can you paste a screenshot how your rendered PDF looks like?
Jan
Re: Blank Page 3.0.3
Posted: 11 Oct 2016, 15:12
by dpur293
Re: Blank Page 3.0.3
Posted: 13 Oct 2016, 05:25
by dpur293
Any thoughts?
Re: Blank Page 3.0.3
Posted: 14 Oct 2016, 18:40
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
Re: Blank Page 3.0.3
Posted: 14 Oct 2016, 19:13
by dpur293
I tried that, nothing works. Is there a place where I need to specify the content div?
Re: Blank Page 3.0.3
Posted: 14 Oct 2016, 19:28
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
Jan
Re: Blank Page 3.0.3
Posted: 05 Dec 2016, 18:00
by crusader