[Geomoose-users] Printing not working
Kevin Grootendorst
kgrootendorst at gmail.com
Fri Jan 6 08:19:44 PST 2017
Hi James,
I double checked permissions on the tmp folder, and indeed, I had to set
permissions to write.
So now I am able to write the print files to the specified folder. There
is no map data/content appearing in the print files, so that is my next
problem to solve.
Thanks for the help and suggestions.
Kevin
On Wed, Dec 14, 2016 at 9:15 PM, James Klassen <klassen.js at gmail.com> wrote:
> Does the directory /tmp/out exist and is it writable by the user that the
> php/web server code is running as?
>
> (IIRC the PHP code doesn't create the directory.)
>
> On Dec 14, 2016 20:11, "Kevin Grootendorst" <kgrootendorst at gmail.com>
> wrote:
>
> Thanks for the feedback. The path to my tmp file is the default path:
> [paths]
> root=/var/www/geomoose-2.8.1/maps/
> mapserver_url=/cgi-bin/mapserv
> temp=/tmp/out
> I've experimented with different paths, but in each case, no file is
> created in the directory.
>
> Kevin
>
> On Wed, Dec 14, 2016 at 12:41 PM, TC Haddad <tchaddad at gmail.com> wrote:
>
>> Can you check that the path to your tmp directory is set correctly in
>> local_settings.ini?
>>
>> On Wed, Dec 14, 2016 at 7:42 AM, Kevin Grootendorst <
>> kgrootendorst at gmail.com> wrote:
>>
>>> Dear users,
>>> I'm getting an error that I can't seem to decipher. I'm trying to use
>>> the Print tool in GeoMoose. I'm presented with the title, size options,
>>> etc., but when I click 'Go', I get the following error in Firebug:
>>> [image: Inline image 2]
>>>
>>> And in the Apache error log:
>>> [Wed Dec 14 10:38:16.226718 2016] [:error] [pid 29622] [client
>>> 24.157.101.143:65421] PHP Fatal error: Uncaught exception
>>> 'MapScriptException' with message 'Failed to open map file
>>> "/tmp/out/sketch_148172989629622.map", or map file error.' in
>>> /var/www/geomoose-2.8.1/htdocs/php/print_util.php:353\nStack trace:\n#0
>>> /var/www/geomoose-2.8.1/htdocs/php/print_util.php(353):
>>> ms_newMapObj('/tmp/out/sketch...', '/var/www/geomoo...')\n#1
>>> /var/www/geomoose-2.8.1/htdocs/php/print_util.php(223):
>>> renderVector(Array, 1600, 1400, Array)\n#2 /var/www/geomoose-2.8.1/htdocs/php/print.php(133):
>>> renderImage(Object(DOMDocument), Array, 1600, 1400, Array, false)\n#3
>>> {main}\n thrown in /var/www/geomoose-2.8.1/htdocs/php/print_util.php
>>> on line 353, referer: http://www.mysite.ca/geomoose/geomoose.html
>>>
>>> In my experience, this is likely a path issue. I have checked my
>>> tmp/out folder and there is no file there, so perhaps that is throwing the
>>> error.
>>> Any ideas?
>>> Thanks, Kevin
>>>
>>> _______________________________________________
>>> Geomoose-users mailing list
>>> Geomoose-users at lists.osgeo.org
>>> http://lists.osgeo.org/mailman/listinfo/geomoose-users
>>>
>>
>>
>
> _______________________________________________
> Geomoose-users mailing list
> Geomoose-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/geomoose-users
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geomoose-users/attachments/20170106/617cb00a/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 8247 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/geomoose-users/attachments/20170106/617cb00a/attachment-0001.png>
More information about the Geomoose-users
mailing list