it works if I set <imgFormat>jpeg</imgFormat> in config_default.xml and IMAGETYPE jpeg in pmapper_demo.map With png output I get error messages as above. createimg.log reports no error. I didn't modify demo config_default.xml and mapfile. I'm pretty sure that I built php against libpng but I didn't found it in phpinfo. Could this be the problem?
thank you very much Giorgio 2011/12/19 Thomas RAFFIN <traf...@sirap.fr> > Adn you have removed all png files after applying the rights? What about > the "createimage.log" (or something like that) in this directory ? > > Le 19/12/2011 18:27, VT a écrit : > > Thomas, > > chmod u+rwx legend > chmod go+rwx legend > > but it gives me the same error and creates again the 0 byte file. > > Maybe something wrong with png creation? > > thank you > > Giorgio > > 2011/12/19 Thomas RAFFIN <traf...@sirap.fr> > >> Hi, >> >> Have you already made that: >> http://svn.pmapper.net/trac/wiki/DocQuickinstall#Directoryimageslegend >> (after deleting the existing files) ? >> Maybe your case require a chmod u+.... on the directory >> >> Thomas >> >> Le 19/12/2011 17:59, VT a écrit : >> > Walter, >> > deleted all files in /images/legend but problem is not solved. >> > I get again the message >> > "Uncaught exception 'MapScriptException' with message 'Failed >> >> writing image to /var/www/pmapper-4.2.0/images/ >> > legend/countries_i0.png" >> > The strange thing is that it creates a 0 bytes countries_i0.png (now the >> > only file) into the folder. >> > -rw-r--r-- 1 www-data www-data 0 2011-12-19 17:54 countries_i0.png >> > >> > thanks >> > >> > Giorgio >> > >> > >> > 2011/12/19 Walter Lorenzetti<lorenze...@gis3w.it> >> > >> >> Hi Giorgio, >> >> >> >> you are right to change mode and owned of images/legend, but you've to >> >> change also files inside permissions... >> >> >> >> The fast way for the first time is to delete every files in the >> >> images/legend folder. >> >> >> >> W >> >> >> >> >> >> Il 19/12/2011 15:39, VT ha scritto: >> >>> Hi all, >> >>> I installed pmapper 4.2 (Ubuntu 10.04, php5.3.2) and tried to >> configure >> >> it >> >>> with demo data. >> >>> I chmoded and chowned images/legend folder: >> >>> ** >> >>> drwxr-sr-x 2 root 2002 4096 2011-12-19 12:39 cursors >> >>> -rw-r--r-- 1 root 2002 201 2006-11-19 15:03 downsimple.png >> >>> -rw-r--r-- 1 root 2002 1406 2006-11-19 15:03 favicon.ico >> >>> -rw-r--r-- 1 root 2002 1787 2007-12-09 16:27 indicator.gif >> >>> drwxr-sr-x 2 root 2002 4096 2011-12-19 12:39 indicators >> >>> -rw-r--r-- 1 root 2002 65 2006-12-30 12:43 infolink.gif >> >>> -rw-r--r-- 1 root 2002 150 2006-11-19 15:03 layer.gif >> >>> -rw-r--r-- 1 root 2002 127 2006-11-19 15:03 layers.gif >> >>> drwxrwsrwx 2 www-data www-data 4096 2011-12-19 12:39 legend >> >>> -rw-r--r-- 1 root 2002 1718 2006-11-19 15:03 loading.gif >> >>> drwxr-sr-x 2 root 2002 4096 2011-12-19 12:39 logos >> >>> -rw-r--r-- 1 root 2002 70 2007-01-03 22:45 menudown.gif >> >>> drwxr-sr-x 2 root 2002 4096 2011-12-19 12:39 menus >> >>> *** >> >>> >> >>> but when I try to open demo url: >> >>> http://127.0.0.1/pmapper-4.2.0/map_default.phtml >> >>> >> >>> I get this message: >> >>> Fatal error: Uncaught exception 'MapScriptException' with message >> 'Failed >> >>> writing image to >> /var/www/pmapper-4.2.0/images/legend/countries_i0.png' >> >> in >> >>> /var/www/pmapper-4.2.0/incphp/init/initmap.php:523 Stack trace: #0 >> >>> /var/www/pmapper-4.2.0/incphp/init/initmap.php(523): >> >>> imageObj->saveImage('/var/www/pmappe...') #1 >> >>> /var/www/pmapper-4.2.0/incphp/init/initmap.php(402): >> >>> Init_map->createLegendList() #2 >> >>> /var/www/pmapper-4.2.0/incphp/init/initmap.php(69): >> >> Init_map->_initLegend() >> >>> #3 /var/www/pmapper-4.2.0/incphp/init/init.php(34): >> >>> Init_map->initAllParameters() #4 >> >>> /var/www/pmapper-4.2.0/map_default.phtml(48): >> >>> include_once('/var/www/pmappe...') #5 {main} thrown in >> >>> /var/www/pmapper-4.2.0/incphp/init/initmap.php on line 523 >> >>> >> >>> Here is the phperror log: >> >>> [19-Dec-2011 15:19:54] PHP Fatal error: Uncaught exception >> >>> 'MapScriptException' with message 'Failed writing image to >> >>> /var/www/pmapper-4.2.0/images/legend/countries_i0.png' in >> >>> /var/www/pmapper-4.2.0/incphp/init/initmap.php:523 >> >>> Stack trace: >> >>> #0 /var/www/pmapper-4.2.0/incphp/init/initmap.php(523): >> >>> imageObj->saveImage('/var/www/pmappe...') >> >>> #1 /var/www/pmapper-4.2.0/incphp/init/initmap.php(402): >> >>> Init_map->createLegendList() >> >>> #2 /var/www/pmapper-4.2.0/incphp/init/initmap.php(69): >> >>> Init_map->_initLegend() >> >>> #3 /var/www/pmapper-4.2.0/incphp/init/init.php(34): >> >>> Init_map->initAllParameters() >> >>> #4 /var/www/pmapper-4.2.0/map_default.phtml(48): >> >>> include_once('/var/www/pmappe...') >> >>> #5 {main} >> >>> thrown in /var/www/pmapper-4.2.0/incphp/init/initmap.php on line 523 >> >>> >> >>> Mapscript is regularly loaded in phpinfo: >> >>> >> >>> MapScript >> >>> MapServer Version MapServer version 6.0.1 OUTPUT=GIF OUTPUT=PNG >> >>> OUTPUT=JPEG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE >> SUPPORTS=ICONV >> >>> SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER >> >>> SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER >> >>> SUPPORTS=THREADS SUPPORTS=GEOS INPUT=POSTGIS INPUT=OGR INPUT=GDAL >> >>> INPUT=SHAPEFILE >> >>> PHP MapScript Version ($Revision: 11619 $ $Date: 2011-04-27 >> 11:23:07 >> >>> -0400 (Wed, 27 Apr 2011) $) >> >>> >> >>> Any help appreciated >> >>> >> >>> Thanks >> >>> >> >>> Giorgio >> >>> >> >> >> ------------------------------------------------------------------------------ >> >>> Learn Windows Azure Live! Tuesday, Dec 13, 2011 >> >>> Microsoft is holding a special Learn Windows Azure training event for >> >>> developers. It will provide a great way to learn Windows Azure and >> what >> >> it >> >>> provides. You can attend the event by watching it streamed LIVE >> online. >> >>> Learn more at http://p.sf.net/sfu/ms-windowsazure >> >>> _______________________________________________ >> >>> pmapper-users mailing list >> >>> pmapper-users@lists.sourceforge.net >> >>> https://lists.sourceforge.net/lists/listinfo/pmapper-users >> >> >> >> -- >> >> >> >> Walter Lorenzetti phD >> >> email: lorenze...@gis3w.it >> >> skype: aiki74 >> >> Cell: (+39) 347-6597931 Tel+Fax: (+39) 0588 85021 >> >> Viale Giuseppe Verdi n. 24, 51016 >> >> Montecatini Terme,Pistoia >> >> P.IVA 01686280478 >> >> Italy >> >> >> >> >> >> >> >> >> ------------------------------------------------------------------------------ >> >> Learn Windows Azure Live! Tuesday, Dec 13, 2011 >> >> Microsoft is holding a special Learn Windows Azure training event for >> >> developers. It will provide a great way to learn Windows Azure and >> what it >> >> provides. You can attend the event by watching it streamed LIVE online. >> >> Learn more at http://p.sf.net/sfu/ms-windowsazure >> >> _______________________________________________ >> >> pmapper-users mailing list >> >> pmapper-users@lists.sourceforge.net >> >> https://lists.sourceforge.net/lists/listinfo/pmapper-users >> >> >> > >> ------------------------------------------------------------------------------ >> > Learn Windows Azure Live! Tuesday, Dec 13, 2011 >> > Microsoft is holding a special Learn Windows Azure training event for >> > developers. It will provide a great way to learn Windows Azure and what >> it >> > provides. You can attend the event by watching it streamed LIVE online. >> > Learn more at http://p.sf.net/sfu/ms-windowsazure >> > _______________________________________________ >> > pmapper-users mailing list >> > pmapper-users@lists.sourceforge.net >> > https://lists.sourceforge.net/lists/listinfo/pmapper-users >> > >> > >> >> >> ------------------------------------------------------------------------------ >> Learn Windows Azure Live! Tuesday, Dec 13, 2011 >> Microsoft is holding a special Learn Windows Azure training event for >> developers. It will provide a great way to learn Windows Azure and what it >> provides. You can attend the event by watching it streamed LIVE online. >> Learn more at http://p.sf.net/sfu/ms-windowsazure >> _______________________________________________ >> pmapper-users mailing list >> pmapper-users@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/pmapper-users >> > > ------------------------------------------------------------------------------ Write once. Port to many. Get the SDK and tools to simplify cross-platform app development. Create new or port existing apps to sell to consumers worldwide. Explore the Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join http://p.sf.net/sfu/intel-appdev _______________________________________________ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users