1
script_fu
News 1.56 White page PDF errors! The Bug = TCPDF error: Unsupported image type: php?id=

When you click on the Pdf icon inside a news story the website gives you a white page with my error below.

TCPDF error: Unsupported image type: php?id=64

There has already been a post on instant zero about it. But it seems to be low on the list to fix.

Instant Zero News 1.56 Pdf Bug

Does any kind sole know how to fix this bug?

2
script_fu
Re: News 1.56 White page PDF errors! The Bug = TCPDF error: Unsupported image type: php?id=

I've been searching around some more. It looks like TCPDF does not support gif files. Wonderful because the XOOPS logo is pulled into the pdf by default.

So how does one go about getting XOOPS to pull a .png or .jpg instead of the logo.gif from public_html/images/logo.gif


Now we know what the problem is we just need a work around.


http://forum.joomla.org/index.php?topic=247896.msg1135284

3
script_fu
Re: News 1.56 White page PDF errors! The Bug = TCPDF error: Unsupported image type: php?id=

1
2
3
They say in these threads its solved. My issue is different.

Still stuck...

4
script_fu
Re: News 1.56 White page PDF errors! The Bug = TCPDF error: Unsupported image type: php?id=

This issue was posted wrong the error has nothing to do with the XOOPS logo. But in finding this out I did nail down how to change your XOOPS logo.gif to a .png or .jpg

In

public_html/modules/news look for

backendt.php & print.php

Now search for the word logo. Now you can replace the image with what ever you want.

I made another post in regards to making a .pdf in news with lightbox enabled error. Which you can see here

5
McDonald
Re: News 1.56 White page PDF errors! The Bug = TCPDF error: Unsupported image type: php?id=
  • 2008/2/1 21:42

  • McDonald

  • Home away from home

  • Posts: 1072

  • Since: 2005/8/15


Maybe it's an idea to upgrade TCPDF to the latest version (TCPDF 2.1.000) which seems to support JPG, PNG and GIF image formats.

See here at SourceForge.

Quote:
TCPDF 2.1.000 for both PH4 and PHP5 were released!

This is a main release that includes dozens of new features and bugfixes. The main feature is probably the automatic support for bidirectional languages such as Arabic, Hebrew, etc. Several graphic functions were added.

TCPDF is an Open Source PHP class for generating PDF files on-the-fly without requiring external extensions.
TCPDF is used by a large number of php projects such as AIOCP, Drupal, Joomla, Xoops, TCExam, etc.

Main features:
- supports all ISO page formats;
- supports UTF-8 Unicode and Right-To-Left languages;
- supports document encryption;
- includes methods to publish some xhtml code, supporting the following elements: h1, h2, h3, h4, h5, h6, b, u, i, a, img, p, br, strong, em, font, blockquote, li, ul, ol, hr, td, th, tr, table, sup, sub, small;
- includes a method to print various barcode formats using an improved version of "Generic Barcode Render Class" by Karim Mribti (http://www.mribti.com/barcode/) (require GD library:http://www.boutell.com/gd/)
- supports TrueTypeUnicode, TrueType, Type1 and encoding;
- supports custom page formats, margins and units of measure;
- includes methods for page header and footer management;
- supports automatic page break;
- supports automatic page numbering;
- supports automatic line break and text justification;
- supports JPEG, PNG anf GIF images;
- supports colors;
- supports links;
- support page compression (require zlib extension:http://www.gzip.org/zlib/);
- the source code is full documented in PhpDocumentor Style (http://www.phpdoc.org).

http://tcpdf.sf.net

6
script_fu
Re: News 1.56 White page PDF errors! The Bug = TCPDF error: Unsupported image type: php?id=

Thanks for the post McDonald... I will give this a shot tonight. Its 6 megs and on my connection will take all day. Since it was your post on one of the other topics concerning tcpdf and tinycontent or something.

Do you think the auto format/bbcode needed by extgallery hook hack would jam up pdf creation?

Or is the error directly related to the file format only. In my case it would be a .jpg picture?

Login

Who's Online

196 user(s) are online (126 user(s) are browsing Support Forums)


Members: 0


Guests: 196


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits