Loading...
 
Skip to main content

Development


problem with PDF generation

posts: 6 Spain

I am using the version 1.6 of tiki and I have an error with pdf generation but not always.

when does tiki try to call addnewtag (htmlparser.inc:298), I obtain an Undefined Index with "notin" on line 393 in htmlparser.inc. And it will generate another Fatal error (allowed memory exausted) on line 247 in pdflib.php.

Anyone can any idee of that problem?

posts: 1001 Canada
I don't know of 1.6-specific PDF gen problems, but the exhausted memory is fatal. If you don't know yet this is PHP's memory_limit (php.ini) which is default to 8M but Tiki deserves 12 or 16 for total comfort. PDF gen is known to be demanding for PHP memory.
posts: 6 Spain

I have reproduced the error when I try to generate pdf from cvs18 wiki page in tikiwiki.org and I obtain the next result:


---------------------------
Notice: Undefined index: notin in /usr/local/tiki18/lib/htmlparser/htmlparser.inc on line 393

Call Stack

  1. Function Location

1 {main}() /usr/local/tiki18/tiki-export_pdf.php:0
2 tikipdflib->insert_html() /usr/local/tiki18/tiki-export_pdf.php:125
3 htmlparser->parse() /usr/local/tiki18/lib/pdflib/pdflib.php:40
4 htmlparser->addnewtag() /usr/local/tiki18/lib/htmlparser/htmlparser.inc:298

Notice: Undefined index: notin in /usr/local/tiki18/lib/htmlparser/htmlparser.inc on line 393

Call Stack

  1. Function Location

1 {main}() /usr/local/tiki18/tiki-export_pdf.php:0
2 tikipdflib->insert_html() /usr/local/tiki18/tiki-export_pdf.php:125
3 htmlparser->parse() /usr/local/tiki18/lib/pdflib/pdflib.php:40
4 htmlparser->addnewtag() /usr/local/tiki18/lib/htmlparser/htmlparser.inc:298

Notice: Undefined index: notin in /usr/local/tiki18/lib/htmlparser/htmlparser.inc on line 393

Call Stack

  1. Function Location

1 {main}() /usr/local/tiki18/tiki-export_pdf.php:0
2 tikipdflib->insert_html() /usr/local/tiki18/tiki-export_pdf.php:125
3 htmlparser->parse() /usr/local/tiki18/lib/pdflib/pdflib.php:40
4 htmlparser->addnewtag() /usr/local/tiki18/lib/htmlparser/htmlparser.inc:298

Notice: Undefined index: notin in /usr/local/tiki18/lib/htmlparser/htmlparser.inc on line 393

Call Stack

  1. Function Location

1 {main}() /usr/local/tiki18/tiki-export_pdf.php:0
2 tikipdflib->insert_html() /usr/local/tiki18/tiki-export_pdf.php:125
3 htmlparser->parse() /usr/local/tiki18/lib/pdflib/pdflib.php:40
4 htmlparser->addnewtag() /usr/local/tiki18/lib/htmlparser/htmlparser.inc:298
%PDF-1.3 %âã??Ó 1 0 obj > endobj 2 0 obj > endobj 3 0 obj > /MediaBox 0.000 0.000 595.280 841.890 >> endobj 4 0 obj /PDF /Text endobj 5 0 obj > endobj 6 0 obj


posts: 6 Spain

I have reproduced the error when I try to generate pdf from cvs18 wiki page in tikiwiki.org and I obtain the next result:


---------------------------
Notice: Undefined index: notin in /usr/local/tiki18/lib/htmlparser/htmlparser.inc on line 393

Call Stack

  1. Function Location

1 {main}() /usr/local/tiki18/tiki-export_pdf.php:0
2 tikipdflib->insert_html() /usr/local/tiki18/tiki-export_pdf.php:125
3 htmlparser->parse() /usr/local/tiki18/lib/pdflib/pdflib.php:40
4 htmlparser->addnewtag() /usr/local/tiki18/lib/htmlparser/htmlparser.inc:298

Notice: Undefined index: notin in /usr/local/tiki18/lib/htmlparser/htmlparser.inc on line 393

Call Stack

  1. Function Location

1 {main}() /usr/local/tiki18/tiki-export_pdf.php:0
2 tikipdflib->insert_html() /usr/local/tiki18/tiki-export_pdf.php:125
3 htmlparser->parse() /usr/local/tiki18/lib/pdflib/pdflib.php:40
4 htmlparser->addnewtag() /usr/local/tiki18/lib/htmlparser/htmlparser.inc:298

Notice: Undefined index: notin in /usr/local/tiki18/lib/htmlparser/htmlparser.inc on line 393

Call Stack

  1. Function Location

1 {main}() /usr/local/tiki18/tiki-export_pdf.php:0
2 tikipdflib->insert_html() /usr/local/tiki18/tiki-export_pdf.php:125
3 htmlparser->parse() /usr/local/tiki18/lib/pdflib/pdflib.php:40
4 htmlparser->addnewtag() /usr/local/tiki18/lib/htmlparser/htmlparser.inc:298

Notice: Undefined index: notin in /usr/local/tiki18/lib/htmlparser/htmlparser.inc on line 393

Call Stack

  1. Function Location

1 {main}() /usr/local/tiki18/tiki-export_pdf.php:0
2 tikipdflib->insert_html() /usr/local/tiki18/tiki-export_pdf.php:125
3 htmlparser->parse() /usr/local/tiki18/lib/pdflib/pdflib.php:40
4 htmlparser->addnewtag() /usr/local/tiki18/lib/htmlparser/htmlparser.inc:298
%PDF-1.3 %âã??Ó 1 0 obj > endobj 2 0 obj > endobj 3 0 obj > /MediaBox 0.000 0.000 595.280 841.890 >> endobj 4 0 obj /PDF /Text endobj 5 0 obj > endobj 6 0 obj


posts: 6 Spain

I have changed the memory_limit from 8M to 16M in memory_limit (php.ini) and I obtain the message:

Undefined index: notin in /...../lib/htmlparser.inc on line 393
...

I have used the page cvs18 from tikiwiki.org to obtain it.