[Chameleon] Session lock, PHP Warning

Jason Fournier jfournier at dmsolutions.ca
Mon Jun 13 10:05:20 EDT 2005


Does the directory c:/Inetpub/wwwroot/tmp/sess_42ad6c72c00b1/ exist?  If so, are there any files in there?

What is session.save_path set to in php.ini?

Jason



Gail Millin wrote:
> Hi List,
> 
> I am getting no image appearing in the viewer the rest of 
> the page loads fine including the projection definitions. 
> 
> I am getting the following warning when running the sample 
> viewer for chameleon in the PHP logfile: - 
> 
> 
> [13-Jun-2005 12:26:18] PHP Warning:  fopen
> (c:/Inetpub/wwwroot/tmp/sess_42ad6c72c00b1/lock): failed to 
> open stream: No such file or directory in 
> C:\Inetpub\wwwroot\chameleon\htdocs\common\session\session.p
> hp on line 135
> [13-Jun-2005 12:26:18] PHP Warning:  fread(): Length 
> parameter must be greater than 0. in 
> C:\Inetpub\wwwroot\chameleon\htdocs\common\session\session.p
> hp on line 213
> 
> Also my session logfile tells me drawmap is pausing before 
> opening (see below) : -
> 
> 14:57.3635 : sample_basic_plainbuttons.phtml : 
> initializeSession( sid, ,  )
> 14:57.3708 : sample_basic_plainbuttons.phtml : creating a 
> new session because .. has zero characters 
> 14:57.3712 : sample_basic_plainbuttons.phtml : creating a 
> new session with id 
> 14:57.3717 : sample_basic_plainbuttons.phtml : Opened() 
> c:/Inetpub/wwwroot/tmp, sid
> 14:57.3719 : sample_basic_plainbuttons.phtml : session_id() 
> says 42ad8c715aa15
> 14:57.3730 : sample_basic_plainbuttons.phtml : created lock 
> file in open()
> 14:57.3732 : sample_basic_plainbuttons.phtml : Read() 
> 42ad8c715aa15
> 14:58.4342 : sample_basic_plainbuttons.phtml : Write() 
> 42ad8c715aa15 
> gszRemoteAdd|s:14:"130.88.200.176";gszAppWebPath|s:45:"http:
> //camber.mc.man.ac.uk/chameleon/samples/";gszAppPath|s:43:"C
> :\Inetpub\wwwroot\chameleon\samples\htdocs";gszCurrentLangua
> ge|s:5:"en-
> CA";gszCoreWebPath|s:37:"http://camber.mc.man.ac.uk/chameleo
> n/";gszCorePath|s:36:"C:\Inetpub\wwwroot\chameleon\htdocs/";
> gszTmpPath|s:42:"c:/Inetpub/wwwroot/tmp/sess_42ad8c715aa15/"
> ;gszTmpMapPath|s:42:"c:/Inetpub/wwwroot/tmp/sess_42ad8c715aa
> 15/";gszDefaultLanguage|s:5:"en-
> CA";gnMapSessionMode|s:1:"1";gaszSkinSearchPath|a:2:
> {i:0;s:13:"skins/default";i:1;s:12:"skins/sample";}
> gszTmpWebPath|s:12:"/tmp/ms_tmp/";gszTmpImgPath|s:28:"/Inetp
> ub/wwwroot/tmp/ms_tmp/";gszButtonCachePath|s:36:"/Inetpub/ww
> wroot/tmp/ms_tmp/buttons/";gszButtonCacheWebPath|s:20:"/tmp/
> ms_tmp/buttons/";gszImgType|s:3:"PNG";gszMapTitleFontName|s:
> 4:"Vera";gszLegendFontName|s:4:"Vera";gErrorManager|O:12:"er
> rormanager":4:
> {s:11:"nErrorCount";i:0;s:12:"aszErrorList";a:0:{}
> s:18:"mszOldErrorHandler";s:0:"";s:12:"mnErrorLevel";N;}
> gszMapscriptModule|s:20:"php_mapscript_44.dll";gszWMSParseFi
> le|s:68:"/Inetpub/wwwroot/chameleon/htdocs/common/wmsparse/w
> in32/wmsparse.exe";gszCurrentState|s:15:"1118669938-
> 7553";gszMapName|s:64:"C:\Inetpub\wwwroot\chameleon\samples\
> htdocs/../map/chameleon.map";gszMapPath|s:50:"C:\Inetpub\www
> root\chameleon\samples\htdocs/../map";gnTimeout|i:120;aszLan
> g|a:0:{}
> KEYMAP_SRS|s:10:"epsg:42304";KEYMAP_INIT|s:1:"1";ERRORREPORT
> POPUPSTYLERESOURCE|s:41:"TextButtonssample_basic_plainbutton
> s.html";QUERYPOPUPSTYLERESOURCE|s:0:"";aoAnnotation|a:0:{}
> 14:58.4834 : sample_basic_plainbuttons.phtml : Closed()
> 14:58.4836 : sample_basic_plainbuttons.phtml : checking 
> lock file c:/Inetpub/wwwroot/tmp/sess_42ad8c715aa15/lock
> 14:58.4841 : sample_basic_plainbuttons.phtml : removed lock 
> file c:/Inetpub/wwwroot/tmp/sess_42ad8c715aa15/lock
> 14:58.5150 : drawmap.php : initializeSession( sid, ,  )
> 14:58.5158 : drawmap.php : Opened() c:/Inetpub/wwwroot/tmp, 
> sid
> 14:58.5160 : drawmap.php : session_id() says 42ad8c715aa15
> 14:58.5165 : drawmap.php : pausing in open()
> 14:59.7097 : drawmap.php : pausing in open()
> 
> Why would this be happening? No image is coming up at the 
> moment I think it might have to do with the creation of the 
> lock file???? Has anyone else had this problem?
> 
> I am using Windows Server 2003, IIS6, Chameleon 2.0, and 
> PHP 4.3.11
> 
> Any help or suggestions I would really appreciate
> 
> Thanks
> 
> Gail
> 
> ----------------------------------------
> Gail Rebecca Millin
> Geodata Interoperability Support Officer
> ----------------------------------------
> MIMAS
> Manchester Computing
> The University of Manchester
> Oxford Road
> Manchester
> M13 9PL
> 
> E-mail: Gail.Millin at manchester.ac.uk
> Website: http://www.mimas.ac.uk/spatial
> -----------------------------------------
> 
> _______________________________________________
> Chameleon mailing list
> Chameleon at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/chameleon
> 

-- 
________________________
Jason Fournier

DM Solutions Group Inc.
jfournier at dmsolutions.ca
www.dmsolutions.ca
613.565.5056 x18



More information about the Chameleon mailing list