[Cartoweb-users] one more exportPdf

Oliver Christen oliver.christen at camptocamp.com
Thu Oct 11 03:51:29 EDT 2007


Hi
it seems fpdf can not read or open a file (470dc21a_1921_7.png in the 
backtrace below).
does the file exist in that folder? does it look ok (open it in a graphic 
editor)? and are all the rights on the files and folder correct ?

regards
Oliver

>
> Class : CartocommonException
> Message : Error [2, fread() [function.fread]: Length parameter must be
> greater than 0, /usr/share/php/fpdf/fpdf.php, 1563]
> Backtrace:
>
> file: UNKNOWN - UNKNOWN
> call: Common::cartowebErrorHandler(2, "fread() [function.fread]: Length
> pa...", "/usr/share/php/fpdf/fpdf.php", 1563, Array(13))
>
> file: 1563 - /usr/share/php/fpdf/fpdf.php
> call: fread(Resource(#8080), -2147482907)
>
> file: 912 - /usr/share/php/fpdf/fpdf.php
> call:
> FPDF->_parsepng("/var/www/cartoweb3/htdocs/generated/images/470dc21a_1921_7.png")
>
> file: 1027 - /var/www/cartoweb3/plugins/exportPdf/client/CwFpdf.php
> call:
> FPDF->Image("/var/www/cartoweb3/htdocs/generated/images/470dc21a_1921_7.png",
> 20.25, 20.25, 257, 170, "", "")
>
> file: 518 - /var/www/cartoweb3/plugins/exportPdf/client/CwFpdf.php
> call:
> CwFpdf->addImage("/var/www/cartoweb3/htdocs/generated/images/470dc21a_1921_7.png",
> 20.25, 20.25, 257, 170)
>



More information about the Cartoweb-users mailing list