[Chameleon] Session lock, PHP Warning
Jason Fournier
jfournier at dmsolutions.ca
Mon Jun 13 22:28:18 EDT 2005
Gail,
Your mapfile renders fine on my system. Everything in your Chameleon admin page looks correct.
I would ask that you re-attempt the simple PHP script sent earlier and see if it reveals any additional information:
<?php
dl('php_mapscript_44.dll'); //or whatever version you are using
$oMap = ms_newMapObj( "/Inetpub/wwwroot/path/to/samples/map/chameleon.map" );
$oImage = $oMap->draw();
$szURL = $oImage->saveWebImage();
echo "<img src=$szURL>";
?>
Questions:
1) How long does it take for this page to process?
2) Are there any errors in the browser?
3) Are there any errors in the PHP log?
4) Are there any errors in the IIS log for this site?
Please post your findings to the list ... there are many sharp individuals who may be able to assist as well.
Thanks,
Jason
Gail Millin wrote:
>
>>Does the directory
>
> c:/Inetpub/wwwroot/tmp/sess_42ad6c72c00b1/ exist?
>
> Yes it does in my tmp directory
>
> If so, are there any files in there?
>
> There are 3 files: -
>
> 1118661747-6210.map
> lock file
> session_file
>
>
>>What is session.save_path set to in php.ini?
>
>
> session.save_path = c:/Inetpub/wwwroot/tmp
>
> Thanks
>
> Gail
>
>>
>>
>>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";gszCurrentLang
>
> ua
>
>>>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_42ad8c715
>
> aa
>
>>>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
>>
>>
>
>
>
> ----------------------------------------
> 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
> -----------------------------------------
>
>
--
________________________
Jason Fournier
DM Solutions Group Inc.
jfournier at dmsolutions.ca
www.dmsolutions.ca
613.565.5056 x18
More information about the Chameleon
mailing list