[Cartoweb-users] CartocommonExceptionMessage : Error [8, Object of class PdfBlock could not be converted to int,

Alexandre Saunier alexandre.saunier at camptocamp.com
Thu Feb 23 10:35:32 EST 2006


Hello,

it seems there was a small bug in the exportPdf plugin (not visible 
depending on the PHP version?). I have commited a fix in the CVS version.

If you don't want to use CVS, replace in 
cartoweb3/plugins/exportPdf/client/ClientExportPdf.php:

- line 324
!in_array($this->blocks[$id]->caption, $this->blocks)) {
by
!in_array($this->blocks[$id]->caption, array_keys($this->blocks))) {

- line 344
!in_array($this->blocks[$id]->headers, $this->blocks)) {
by
!in_array($this->blocks[$id]->headers, array_keys($this->blocks))) {

or replace the whole file by the attached one (after decompressing it).

AS

Adriano Hantequeste Gomes wrote:
> Hi All,
> 
> 
> This error ocor only mark "QueryResult" on Print map
> 
> ###################################################
> 
> Class : CartocommonExceptionMessage : Error [8, Object of class
> PdfBlock could not be converted to int,
> C:\wamp\www\cartoweb3\plugins\exportPdf\client\ClientExportPdf.php,
> 324]
> Backtrace:
> 
> file: UNKNOWN - UNKNOWN
> call: Common::cartowebErrorHandler(8, "Object of class PdfBlock could
> not be converted to int",
> "C:\wamp\www\cartoweb3\plugins\exportPdf\client\ClientExportPdf.p...",
> 324, Array(3))
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ClientExportPdf.php.zip
Type: application/zip
Size: 10984 bytes
Desc: not available
Url : http://lists.maptools.org/pipermail/cartoweb-users/attachments/20060223/a4db9a9a/ClientExportPdf.php-0001.zip


More information about the Cartoweb-users mailing list