Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#37 2006-01-29 19:53:57

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: [plugin] [ORPHAN] wan_pdf

problem 2: is solved in current version

Thank you!!

Offline

#38 2006-01-30 02:05:25

chess
Plugin Author
Registered: 2005-11-10
Posts: 19
Website

Re: [plugin] [ORPHAN] wan_pdf

Thanks for adding all these feature, Wanni. Truly excellent plugin! Thank you for your hard work.

Offline

#39 2006-01-30 10:20:33

Zanza
Plugin Author
Registered: 2005-08-18
Posts: 699
Website

Re: [plugin] [ORPHAN] wan_pdf

> wanni wrote:
@Zanza: Mystirous. I can’t reproduce this. Is the pdf written to the files-directory an what name does it have?

I’m still in 1.0version: the pdf is written, but is empty (it has only the site name in the header, but it doesn’t have the title nor the contents: like if all the data aren’t parsed). The name, that should come from the title, is empty.

I suspect the problem is in the lack of parsing of all document data: could it be due to paths problem? The procedure seems to work, it’s only the data lacking.

Php both 4 and 5, so I don’t think the issue have to to with php version.

I’ll give a try to 2.0, but I think the problem is somewhere in the paths.

Z

Offline

#40 2006-01-30 10:40:40

Zanza
Plugin Author
Registered: 2005-08-18
Posts: 699
Website

Re: [plugin] [ORPHAN] wan_pdf

I tried 2.0, no success. Files with empty title, without body or any data are created. Could be something in the way the lib calls the data from the db? Path, or maybe some setting in this…

Z-

Offline

#41 2006-01-30 10:45:34

wanni
Archived Plugin Author
Registered: 2005-11-11
Posts: 32

Re: [plugin] [ORPHAN] wan_pdf

Strange, very strange. I only used the global variable $thisarticle. Did you try if there is any output in debug-mode? What textpattern version do you use?

Offline

#42 2006-01-30 13:41:18

Zanza
Plugin Author
Registered: 2005-08-18
Posts: 699
Website

Re: [plugin] [ORPHAN] wan_pdf

I have 4.03. After passing in debug mode, I can’t get file to download. It opens in a blank page. I’m trying to output the $thisarticle array in your plugin, but i get nothing.

When I echo $rs array during the check of pdf existance, I get:

1_e5988669cbddf8a508ec936bf5a20320_.pdf

The article id isn’t 1.

I can’t understand what I’m doing wrong, or what’s the problem…

Z-

Offline

#43 2006-01-30 15:20:05

Zanza
Plugin Author
Registered: 2005-08-18
Posts: 699
Website

Re: [plugin] [ORPHAN] wan_pdf

Okay, I made some steps ahead. My error: I was putting the wab_pdf tag in page template, not in article form… Sorry.

Now I get the correct title link and correct title for the file. The header is filled with sitename and title of article, but… body is empty! No body, no excerpt, nothing. 1 blanck page.

The more, I get the following messagges in debug mode:

<code>
tag_error <txp:wan_pdf name=“scarica questo articolo in pdf” /> -> Notice: Undefined index: rights on line 340
tag_error <txp:wan_pdf name=“scarica questo articolo in pdf” /> -> Notice: Undefined index: STYLE on line 168
tag_error <txp:wan_pdf name=“scarica questo articolo in pdf” /> -> Notice: Undefined index: STYLE on line 168
tag_error <txp:wan_pdf name=“scarica questo articolo in pdf” /> -> Notice: Undefined index: STYLE on line 168
tag_error <txp:wan_pdf name=“scarica questo articolo in pdf” /> -> Notice: Undefined index: STYLE on line 168
tag_error <txp:wan_pdf name=“scarica questo articolo in pdf” /> -> Notice: Undefined index: author on line 108
</code>
I have the last version of plugin and css…

Z-

Last edited by Zanza (2006-01-30 15:20:43)

Offline

#44 2006-01-30 16:15:08

chess
Plugin Author
Registered: 2005-11-10
Posts: 19
Website

Re: [plugin] [ORPHAN] wan_pdf

It looks like if you turn off Textile and set the advanced options to “convert linebreaks” then you get a blank article. The title is there but the body is blank.

Offline

#45 2006-01-30 16:19:09

chess
Plugin Author
Registered: 2005-11-10
Posts: 19
Website

Re: [plugin] [ORPHAN] wan_pdf

What is also strange is that certain characters, like a dash —, or a double quote, “”, are turned into question marks in the pdf.

Offline

#46 2006-01-30 16:33:56

Niconemo
Member
From: Rhône-Alpes, France
Registered: 2005-04-18
Posts: 557

Re: [plugin] [ORPHAN] wan_pdf

Same problem for me :

Title : OK
Body : blank

Textile is on (I’ve tested on a fresh install)
PHP : 5.0.4

Edit.
In debug mode : same alerts as Zanza :
<code>
tag_error <txp:wan_pdf/> -> Notice: Undefined index: rights on line 340
tag_error <txp:wan_pdf/> -> Notice: Undefined index: STYLE on line 168
tag_error <txp:wan_pdf/> -> Notice: Undefined index: STYLE on line 168
tag_error <txp:wan_pdf/> -> Notice: Undefined index: STYLE on line 168
tag_error <txp:wan_pdf/> -> Notice: Undefined index: STYLE on line 168
tag_error <txp:wan_pdf/> -> Notice: Undefined index: STYLE on line 168
tag_error <txp:wan_pdf/> -> Notice: Undefined index: STYLE on line 168
tag_error <txp:wan_pdf/> -> Notice: Undefined index: STYLE on line 168
tag_error <txp:wan_pdf/> -> Notice: Undefined index: STYLE on line 168
tag_error <txp:wan_pdf/> -> Notice: Undefined index: author on line 108
</code>

These errors are displayed only once (while creating the PDF I guess).

Last edited by Niconemo (2006-01-30 16:56:44)


Nico

Offline

#47 2006-01-30 16:36:36

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: [plugin] [ORPHAN] wan_pdf

What is also strange is that certain characters, like a dash —, or a double quote, “”, are turned into question marks in the pdf.

I noticed that as well. Also, in 2.0, it doesn’t show the site name and article title in the head, but instead X_NAME and X_TITLE.

Offline

#48 2006-01-30 17:16:49

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: [plugin] [ORPHAN] wan_pdf

When I try to open a page with an article that has an image tag in the body, I get this:

<small>Fatal error: Cannot instantiate non-existent class: xhtml2pdf in /home/virtual/site87/fst/var/www/html/casadonamaria/textpattern/lib/txplib_misc.php(459) : eval()’d code on line 106</small>

Pages with articles without images display fine.

EDIT: Having read the next post I suppose it can have something to do with the fact that I turned Textile off for this article… I’ll have another try with Textile on.

Last edited by doggiez (2006-01-30 17:33:04)

Offline

Board footer

Powered by FluxBB