<div dir="ltr"><div><div><div>Hi James,<br></div>I'm just getting back to this printing issue now.  To answer your question, the directory specified in local_settings exists.  I *assume* it's  writable by the user that the php/web server code is running as, but how do I check this?<br>A while ago, I had a very similar error for the identify tool in v.2.8 and all was required was a "/" added to the end of the mapfile_root path in local_settings.  So I'm leaning towards this being a path issue as well.<br></div>Cheers.<br></div>Kevin<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Dec 14, 2016 at 9:15 PM, James Klassen <span dir="ltr"><<a href="mailto:klassen.js@gmail.com" target="_blank">klassen.js@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto"><div>Does the directory /tmp/out exist and is it writable by the user that the php/web server code is running as?</div><div dir="auto"><br></div><div dir="auto">(IIRC the PHP code doesn't create the directory.)</div><div dir="auto"><div class="gmail_extra" dir="auto"><br><div class="gmail_quote">On Dec 14, 2016 20:11, "Kevin Grootendorst" <<a href="mailto:kgrootendorst@gmail.com" target="_blank">kgrootendorst@gmail.com</a>> wrote:<br type="attribution"><blockquote class="m_5944245944920681622quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>Thanks for the feedback.  The path to my tmp file is the default path:<br>[paths]<br>root=/var/www/geomoose-2.8.1/m<wbr>aps/<br>mapserver_url=/cgi-bin/mapserv<br>temp=/tmp/out<br></div>I've experimented with different paths, but in each case, no file is created in the directory.<font color="#888888"><br><br></font></div><font color="#888888"><div>Kevin</div></font></div><div class="m_5944245944920681622elided-text"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Dec 14, 2016 at 12:41 PM, TC Haddad <span dir="ltr"><<a href="mailto:tchaddad@gmail.com" target="_blank">tchaddad@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Can you check that the path to your tmp directory is set correctly in local_settings.ini?<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Dec 14, 2016 at 7:42 AM, Kevin Grootendorst <span dir="ltr"><<a href="mailto:kgrootendorst@gmail.com" target="_blank">kgrootendorst@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><div>Dear users,<br></div>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:<br><img src="cid:ii_158fdf7991c90b43" alt="Inline image 2" width="492" height="78"><br><br></div>And in the Apache error log:<br><span style="color:rgb(0,0,255)">[Wed Dec 14 10:38:16.226718 2016] [:error] [pid 29622] [client <a href="http://24.157.101.143:65421" target="_blank">24.157.101.143:65421</a>] PHP Fatal error:  Uncaught exception 'MapScriptException' with message 'Failed to open map file "/tmp/out/sketch_1481729896296<wbr>22.map", or map file error.' in /var/www/geomoose-2.8.1/htdocs<wbr>/php/print_util.php:353\nStack trace:\n#0 /var/www/geomoose-2.8.1/htdocs<wbr>/php/print_util.php(353): ms_newMapObj('/tmp/out/sketch.<wbr>..', '/var/www/geomoo...')\n#1 /var/www/geomoose-2.8.1/htdocs<wbr>/php/print_util.php(223): renderVector(Array, 1600, 1400, Array)\n#2 /var/www/geomoose-2.8.1/htdocs<wbr>/php/print.php(133): renderImage(Object(DOMDocument<wbr>), Array, 1600, 1400, Array, false)\n#3 {main}\n  thrown in /var/www/geomoose-2.8.1/htdocs<wbr>/php/print_util.php on line 353, referer: <a href="http://www.mysite.ca/geomoose/geomoose.html" target="_blank">http://www.mysite.ca/geomoose/<wbr>geomoose.html</a><br><br></span></div><span style="color:rgb(0,0,255)"><font color="#000000">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.  <br></font></span></div><span style="color:rgb(0,0,255)"><font color="#000000">Any ideas?<br></font></span></div><span style="color:rgb(0,0,255)"><font color="#000000">Thanks, Kevin<br></font></span></div>
<br>______________________________<wbr>_________________<br>
Geomoose-users mailing list<br>
<a href="mailto:Geomoose-users@lists.osgeo.org" target="_blank">Geomoose-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/geomoose-users" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman<wbr>/listinfo/geomoose-users</a><br></blockquote></div><br></div>
</blockquote></div><br></div>
</div><br>______________________________<wbr>_________________<br>
Geomoose-users mailing list<br>
<a href="mailto:Geomoose-users@lists.osgeo.org" target="_blank">Geomoose-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/geomoose-users" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman<wbr>/listinfo/geomoose-users</a><br></blockquote></div><br></div></div></div>
</blockquote></div><br></div>