[Chameleon] Chameleon Digest, Vol 81, Issue 2
Fernando Sánchez García
i82sagaf at uco.es
Thu May 3 05:52:57 EST 2012
Thanks for your comment, I thought it was Ubuntu problem. I installed
all the gis in Ubuntu 12.04 32bit and the problem persists.
In the directory /var/lib/php5/ creates a file such as:
-rw-r--r-- 1 www-data www-data 0 2012-05-02 12:29 deleteme
drwxr-xr-x 2 www-data www-data 4096 2012-05-02 13:00 sess_4fa1124a4c1b0
drwxr-xr-x 3 www-data www-data 4096 2012-05-02 13:03 sess_4fa113d58b836
drwxr-xr-x 3 www-data www-data 4096 2012-05-02 13:28 sess_4fa11a52ecf87
drwxr-xr-x 3 www-data www-data 4096 2012-05-02 13:30 sess_4fa11ac13d4a7
drwxr-xr-x 3 www-data www-data 4096 2012-05-03 08:15 sess_4fa22030ecf5a
drwxr-xr-x 3 www-data www-data 4096 2012-05-03 08:33 sess_4fa2248dd36d3
drwxr-xr-x 2 www-data www-data 4096 2012-05-03 08:35 sess_4fa2272b9d3c6
drwxr-xr-x 3 www-data www-data 4096 2012-05-03 08:43 sess_4fa228e314a33
drwxr-xr-x 2 www-data www-data 4096 2012-05-03 10:00 sess_4fa23b23bcd80
drwxr-xr-x 3 www-data www-data 4096 2012-05-03 12:29 sess_4fa25d60a2ea9
-rw------- 1 www-data www-data 185 2012-05-03 12:26
sess_gmi7nemimpfsaf2lppn55m92c2
In the directory sess_4fa25d60a2ea9/ creates a file such as:
-rw-r--r-- 1 www-data www-data 15887 2012-05-03 12:29 1336040950-8569.map
-rw-r--r-- 1 www-data www-data 15887 2012-05-03 12:29 1336040951-2414.map
-rw-r--r-- 1 www-data www-data 15887 2012-05-03 12:29 1336040951-3346.map
-rw-r--r-- 1 www-data www-data 15887 2012-05-03 12:29 1336040957-2107.map
-rw-r--r-- 1 www-data www-data 15887 2012-05-03 12:29 1336040957-2317.map
-rw-r--r-- 1 www-data www-data 15887 2012-05-03 12:29 1336040959-3372.map
-rw-r--r-- 1 www-data www-data 15887 2012-05-03 12:29 1336040959-7593.map
-rw-r--r-- 1 www-data www-data 15887 2012-05-03 12:29 1336040960-7987.map
-rw-r--r-- 1 www-data www-data 15887 2012-05-03 12:29 1336040961-4889.map
-rw-r--r-- 1 www-data www-data 15864 2012-05-03 12:29 1336040963-2339.map
-rw-r--r-- 1 www-data www-data 15864 2012-05-03 12:29 1336040963-2976.map
-rw-r--r-- 1 www-data www-data 15948 2012-05-03 12:29 1336040972-4146.map
-rw-r--r-- 1 www-data www-data 15948 2012-05-03 12:29 1336040972-8593.map
-rw-r--r-- 1 www-data www-data 128 2012-05-03 12:27
8b4b39babc2d1b7a1b23490574832862.shp
-rw-r--r-- 1 www-data www-data 108 2012-05-03 12:27
8b4b39babc2d1b7a1b23490574832862.shx
-rw-r--r-- 1 www-data www-data 14967 2012-05-03 12:26 mapDHTML_adjust.map
drwxr-xr-x 2 www-data www-data 4096 2012-05-03 12:29 queryresultdir
-rw-r--r-- 1 www-data www-data 13898 2012-05-03 12:29 session_file
I searched the internet solution to the problem of session variables
in php in ubuntu but I haven't found anything. What has changed in
recent years to Ubuntu now may not work correctly php session variables?
chameleon-request at lists.maptools.org escribió:
> Send Chameleon mailing list submissions to
> chameleon at lists.maptools.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://lists.maptools.org/mailman/listinfo/chameleon
> or, via email, send a message with subject or body 'help' to
> chameleon-request at lists.maptools.org
>
> You can reach the person managing the list at
> chameleon-owner at lists.maptools.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Chameleon digest..."
>
>
> Today's Topics:
>
> 1. Error rendering map image (Fernando S?nchez Garc?a)
> 2. Re: Error rendering map image (Julien-Samuel Lacroix)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Wed, 02 May 2012 12:45:58 +0200
> From: Fernando S?nchez Garc?a <i82sagaf at uco.es>
> Subject: [Chameleon] Error rendering map image
> To: chameleon at lists.maptools.org
> Message-ID: <20120502124558.129977aqcz6926w6 at webmail.uco.es>
> Content-Type: text/plain; charset=ISO-8859-1; DelSp="Yes";
> format="flowed"
>
> Hi, I know this list is not very active, but I have to ask for help.
> Some years ago I developed a gis with apache + php + mapserver +
> postgresql + postgis + chameleon. I had two systems: one in Windows XP
> 32bit and the other with Ubuntu Server 9.10 32bit. I upgraded to
> v3.0.2 MS4W with (MapServer 5.6.6, PHP 5.3.6, Apache 2.2.17 with
> OpenSSL 0.9.8o) with Chameleon 2.6rc, PostgreSQL 9 and PostGIS 1.5 on
> windows and have installed on the server a Ubuntu Server 11.10 64bit
> with Mapserver 5.6.6, PHP 5.3.6-13, Apache 2.2.20, Chameleon 2.6rc,
> PostgreSQL 9 and PostGIS 1.5.
> In windows everything works fine without any error, but in linux all
> the gis works well except the generation of map images. Chameleon
> gives me the following error:
>
> "Error rendering map image:
> A fatal error has occurred restoring your session.
> Please restart the application ".
>
> This error does not always appear. Sometimes that happens when
> mapserver-chameleon loads the image and sometimes when I use the
> widget "LocateByAttribute" and other times with the widget
> "ClearQuery" that I once sent Dejan Gambin to clear the search
> LocateByAttribute.
>
> I located the file that launches "drawmap.php" the error message on
> line 1493:
>
> "imagestring ($ oImage, 3, $ x, $ y, "Error rendering map image", $
> nRed) and in line 372 -> error_image ("A fatal error has occurred
> restoring your session. \ nPlease restart the application.")"
>
> possibly because it meets the conditional $ oMapSession-> omap == null
>
> I don't understand very well that happens and because it happens
> occasionally.
> I have tried several web browsers: IE, Firefox, Chrome, etc, and have
> even installed all the gis in Ubuntu 11.10 32-bit and error occurs.
>
> I installed the software "HttpWatch" (net monitoring) to see the
> operation and if I repeat for example the following sequence:
> 1. Press "LocateByAttribute"
> 2. Find an item.
> 3. Clear search with "ClearQuery".
> The error occurs and this is what HttWactch shows me:
>
> http://150.214.120.135/chameleon/common//wrapper/drawmap.php?map_session_mode=1&REQUEST=KEYMAP&sid=4fa0f7fc09c89 (image is
> displayed
> correctly)
>
> http://150.214.120.135/chameleon//widgets/LocateByAttribute/search.phtml?sid=4fa0f7fc09c89&usejavascript=true&searchall=true&pointzoombuffer=5&highlight=true
> (loaded
> correctly)
>
> http://150.214.120.135/chameleon/UpdateMap.php?sid=4fa0f7fc09c89&U=1335949954027223 (loaded correctly and on the Content show-> "<html><body
> onload="p=document.layers?parentLayer:window.parent;p.goCWCJSAPI.ResourceLoaded();;p.goCWCJSAPI.CheckCallStack()";><form>
> <br>
> <input type='hidden' name='NB_RESOURCE' value='0'/>
> </form></body></html>")
>
> http://150.214.120.135/chameleon/common//wrapper/drawmap.php?map_session_mode=1&run_query=0&sid=4fa0f7fc09c89&streaming=true&UniqId=1335949954377920
> (ERROR: "Error rendering map image:");
>
> Please can anyone help? Thanks.
>
>
>
>
>
> ------------------------------
>
> Message: 2
> Date: Wed, 02 May 2012 11:36:36 -0400
> From: Julien-Samuel Lacroix <jlacroix at mapgears.com>
> Subject: Re: [Chameleon] Error rendering map image
> To: chameleon at lists.maptools.org
> Message-ID: <4FA15484.3090303 at mapgears.com>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> Hello,
>
> This problem usually happens when the PHP session is not being read
> correctly. On Ubuntu the session file are in /var/lib/php5/
>
> Do you see any file in that directory?
>
> It's probably a problem with the PHP session and not with Chameleon
> itself...
>
> Julien
>
> On 12-05-02 06:45 AM, Fernando S?nchez Garc?a wrote:
>> Hi, I know this list is not very active, but I have to ask for help.
>> Some years ago I developed a gis with apache + php + mapserver +
>> postgresql + postgis + chameleon. I had two systems: one in Windows XP
>> 32bit and the other with Ubuntu Server 9.10 32bit. I upgraded to
>> v3.0.2 MS4W with (MapServer 5.6.6, PHP 5.3.6, Apache 2.2.17 with
>> OpenSSL 0.9.8o) with Chameleon 2.6rc, PostgreSQL 9 and PostGIS 1.5 on
>> windows and have installed on the server a Ubuntu Server 11.10 64bit
>> with Mapserver 5.6.6, PHP 5.3.6-13, Apache 2.2.20, Chameleon 2.6rc,
>> PostgreSQL 9 and PostGIS 1.5.
>> In windows everything works fine without any error, but in linux all
>> the gis works well except the generation of map images. Chameleon
>> gives me the following error:
>>
>> "Error rendering map image:
>> A fatal error has occurred restoring your session.
>> Please restart the application ".
>>
>> This error does not always appear. Sometimes that happens when
>> mapserver-chameleon loads the image and sometimes when I use the
>> widget "LocateByAttribute" and other times with the widget
>> "ClearQuery" that I once sent Dejan Gambin to clear the search
>> LocateByAttribute.
>>
>> I located the file that launches "drawmap.php" the error message on
>> line 1493:
>>
>> "imagestring ($ oImage, 3, $ x, $ y, "Error rendering map image", $
>> nRed) and in line 372 -> error_image ("A fatal error has occurred
>> restoring your session. \ nPlease restart the application.")"
>>
>> possibly because it meets the conditional $ oMapSession-> omap == null
>>
>> I don't understand very well that happens and because it happens
>> occasionally.
>> I have tried several web browsers: IE, Firefox, Chrome, etc, and have
>> even installed all the gis in Ubuntu 11.10 32-bit and error occurs.
>>
>> I installed the software "HttpWatch" (net monitoring) to see the
>> operation and if I repeat for example the following sequence:
>> 1. Press "LocateByAttribute"
>> 2. Find an item.
>> 3. Clear search with "ClearQuery".
>> The error occurs and this is what HttWactch shows me:
>>
>> http://150.214.120.135/chameleon/common//wrapper/drawmap.php?map_session_mode=1&REQUEST=KEYMAP&sid=4fa0f7fc09c89 (image is
>> displayed
>> correctly)
>>
>> http://150.214.120.135/chameleon//widgets/LocateByAttribute/search.phtml?sid=4fa0f7fc09c89&usejavascript=true&searchall=true&pointzoombuffer=5&highlight=true
>> (loaded
>> correctly)
>>
>> http://150.214.120.135/chameleon/UpdateMap.php?sid=4fa0f7fc09c89&U=1335949954027223 (loaded correctly and on the Content show-> "<html><body
>> onload="p=document.layers?parentLayer:window.parent;p.goCWCJSAPI.ResourceLoaded();;p.goCWCJSAPI.CheckCallStack()";><form>
>> <br>
>> <input type='hidden' name='NB_RESOURCE' value='0'/>
>> </form></body></html>")
>>
>> http://150.214.120.135/chameleon/common//wrapper/drawmap.php?map_session_mode=1&run_query=0&sid=4fa0f7fc09c89&streaming=true&UniqId=1335949954377920
>> (ERROR: "Error rendering map image:");
>>
>> Please can anyone help? Thanks.
>>
>>
>>
>> _______________________________________________
>> Chameleon mailing list
>> Chameleon at lists.maptools.org
>> http://lists.maptools.org/mailman/listinfo/chameleon
>
> --
> Julien-Samuel Lacroix
> Mapgears
> http://www.mapgears.com/
>
>
> ------------------------------
>
> _______________________________________________
> Chameleon mailing list
> Chameleon at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/chameleon
>
>
> End of Chameleon Digest, Vol 81, Issue 2
> ****************************************
>
More information about the Chameleon
mailing list