[Chameleon] Session lock, PHP Warning

Gail Millin Gail.Millin at manchester.ac.uk
Tue Jun 14 12:12:21 EDT 2005


Jason,
 
> Your mapfile renders fine on my system.  Everything in 
your Chameleon admin page looks correct.  

Thats good news 

> 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>";
> ?>

I have run the above script using URL 
http://camber.mc.man.ac.uk/script.php and as you can see a 
red cross appears in the left had corner
 
> Questions:
> 1) How long does it take for this page to process?
For the chameleon sample pages to appear this is occurring 
immediately but then the images never appear. please see 
http://camber.mc.man.ac.uk/chameleon/samples/index.html
 
> 2) Are there any errors in the browser?
No there is just a message at the bottom of IE 
saying "Downloading picture (pathway of 
drawmap.php)"Finally a red cross appears first for the 
keymap image and then secondly for the main image

> 3) Are there any errors in the PHP log?
Not errors as such but Warnings and Notices (I have 
attached the log file for anyone to view who might know 
what the problem is.

> 4) Are there any errors in the IIS log for this site?
Not that I could see

> Please post your findings to the list ... there are many 
sharp individuals who may be able to assist as well.

There is a session logfile aswell that seems to show the 
processes and ends with "drawmap.php : pausing in open()" I 
don't know why this is??? I have also attached the session 
log file

Kind Regards

Gail
> 
> 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
> 
> 


----------------------------------------
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
-----------------------------------------



-------------- next part --------------
A non-text attachment was scrubbed...
Name: php.log
Type: application/octet-stream
Size: 898 bytes
Desc: not available
Url : http://lists.maptools.org/pipermail/chameleon/attachments/20050614/9b3c99cd/php-0001.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: session.log
Type: application/octet-stream
Size: 52887 bytes
Desc: not available
Url : http://lists.maptools.org/pipermail/chameleon/attachments/20050614/9b3c99cd/session-0001.obj


More information about the Chameleon mailing list