[Chameleon] Information and advice on using Chameleon with ms4w

Normand Savard nsavard at mapgears.com
Tue Oct 16 09:45:54 EDT 2007


shiva ramnarine wrote:

>I am using the ms4w 2.2.3 version and the chameleon 2.4 version. i did what you said but can't make heads or tails of the message. I attached a copy.
>
>my project has to do with creating a simple web based application where the user opens a browser and enters the application. the application would allow them to view a map of our country and select an area. from this area the user would get information such as soil type which they could then use to search a database and get a list of tree species suited for that soil type. i thought using mapserver, php, apache and mysql would work? firstly what i am attempting to do is possible right, with chameleon? and if so can you recommend any other free easy to use software, that is if i cannot get chameleon to work? 
>
>thanks
>Shiva
>
>  
>
>>Date: Mon, 15 Oct 2007 09:04:33 -0400
>>From: nsavard at mapgears.com
>>To: shiva_ramnarine at hotmail.com
>>CC: chameleon at lists.maptools.org
>>Subject: Re: [Chameleon] Information and advice on using Chameleon with ms4w
>>
>>shiva ramnarine wrote:
>>
>>    
>>
>>>hi my name is shiva ramnarine, im new to chameleon and ms4w. i am interested in mapping and plan on doing a degree in GIS. i am currently doing a computer degree and decided that doing a project along these lines would be a good idea. (not a good programmer)
>>>
>>>i decided to try out chameleon and followed the instructions word for word but for some reason i cannot get my template.phtml to show. the page loads with no errors but it has no content or visible content i should say. i looked at the help files, read users comments on your site but have not been able to find anything useful. i have tried to remake the template file and the initializer file several times and all have failed. 
>>>
>>>by chance do you know what the error could be? i am running windows home with sp2, i have apache and php installed and on top of that i have the ms4w and chameleon installed (along with several other chameleon type applications fist, klab, etc.)
>>>
>>>to be honest i tried using the fist application first but had the same problem of my maps not showing. in the case of chameleon, nothing is showing.
>>>
>>> 
>>>
>>>      
>>>
>>Shiva,
>>
>>Which version of Chameleon and ms4w did you install?  Do you have any 
>>PHP errors?  In order to display the PHP errors you have to edit the 
>>php.ini file in c:\ms4w\apache\cgi-bin:
>>
>>set the errors reporting to be:
>>error_reporting  =  E_ALL
>>
>>set the errors logging on:
>>log_errors = On
>>
>>set the errors logging file name to be:
>>error_log="c:\tmp\phperrors.log"
>>
>>Verify the error messages in this file above.
>>
>>Norm
>>    
>>
>
>_________________________________________________________________
>Peek-a-boo FREE Tricks & Treats for You!
>http://www.reallivemoms.com?ocid=TXT_TAGHM&loc=us
>  
>
>------------------------------------------------------------------------
>
>[15-Oct-2007 13:26:08] PHP Warning:  Module 'gd' already loaded in Unknown on line 0
>[15-Oct-2007 13:26:08] PHP Warning:  Module 'pdf' already loaded in Unknown on line 0
>[15-Oct-2007 13:26:09] PHP Warning:  include(../ms4w/apps/chameleon/htdocs/chameleon.php) [<a href='function.include'>function.include</a>]: failed to open stream: No such file or directory in C:\ms4w\apps\myapp\htdocs\sample_basic.phtml on line 16
>[15-Oct-2007 13:26:09] PHP Warning:  include() [<a href='function.include'>function.include</a>]: Failed opening '../ms4w/apps/chameleon/htdocs/chameleon.php' for inclusion (include_path='.;\ms4w\Apache\php\PEAR') in C:\ms4w\apps\myapp\htdocs\sample_basic.phtml on line 16
>[15-Oct-2007 13:26:09] PHP Fatal error:  Class 'Chameleon' not found in C:\ms4w\apps\myapp\htdocs\sample_basic.phtml on line 25
>[15-Oct-2007 13:26:26] PHP Warning:  Module 'gd' already loaded in Unknown on line 0
>[15-Oct-2007 13:26:26] PHP Warning:  Module 'pdf' already loaded in Unknown on line 0
>[15-Oct-2007 13:26:32] PHP Warning:  Module 'gd' already loaded in Unknown on line 0
>[15-Oct-2007 13:26:32] PHP Warning:  Module 'pdf' already loaded in Unknown on line 0
>[15-Oct-2007 13:26:32] PHP Warning:  Module 'gd' already loaded in Unknown on line 0
>[15-Oct-2007 13:26:32] PHP Warning:  Module 'pdf' already loaded in Unknown on line 0
>[15-Oct-2007 13:26:32] PHP Warning:  Module 'gd' already loaded in Unknown on line 0
>[15-Oct-2007 13:26:32] PHP Warning:  Module 'pdf' already loaded in Unknown on line 0
>[15-Oct-2007 21:24:17] PHP Warning:  Module 'gd' already loaded in Unknown on line 0
>[15-Oct-2007 21:24:17] PHP Warning:  Module 'pdf' already loaded in Unknown on line 0
>[15-Oct-2007 21:24:17] PHP Warning:  include(../ms4w/apps/chameleon/htdocs/chameleon.php) [<a href='function.include'>function.include</a>]: failed to open stream: No such file or directory in C:\ms4w\apps\myapp\htdocs\sample_basic.phtml on line 16
>[15-Oct-2007 21:24:17] PHP Warning:  include() [<a href='function.include'>function.include</a>]: Failed opening '../ms4w/apps/chameleon/htdocs/chameleon.php' for inclusion (include_path='.;\ms4w\Apache\php\PEAR') in C:\ms4w\apps\myapp\htdocs\sample_basic.phtml on line 16
>[15-Oct-2007 21:24:17] PHP Fatal error:  Class 'Chameleon' not found in C:\ms4w\apps\myapp\htdocs\sample_basic.phtml on line 25
>[15-Oct-2007 21:24:34] PHP Warning:  Module 'gd' already loaded in Unknown on line 0
>[15-Oct-2007 21:24:34] PHP Warning:  Module 'pdf' already loaded in Unknown on line 0
>[15-Oct-2007 21:25:29] PHP Warning:  Module 'gd' already loaded in Unknown on line 0
>[15-Oct-2007 21:25:29] PHP Warning:  Module 'pdf' already loaded in Unknown on line 0
>[15-Oct-2007 21:26:18] PHP Warning:  Module 'gd' already loaded in Unknown on line 0
>[15-Oct-2007 21:26:18] PHP Warning:  Module 'pdf' already loaded in Unknown on line 0
>[15-Oct-2007 21:26:23] PHP Notice:  Undefined index:  login-url in C:\ms4w\apps\fist-0.5\htdocs\classes\fistMap_class.php on line 225
>[15-Oct-2007 21:26:23] PHP Notice:  Undefined index:  fist in C:\ms4w\apps\fist-0.5\htdocs\fistMain.php on line 35
>[15-Oct-2007 21:26:23] PHP Notice:  Undefined index:  fist in C:\ms4w\apps\fist-0.5\htdocs\fistMain.php on line 35
>[15-Oct-2007 21:26:25] PHP Warning:  Module 'gd' already loaded in Unknown on line 0
>[15-Oct-2007 21:26:25] PHP Warning:  Module 'pdf' already loaded in Unknown on line 0
>[15-Oct-2007 21:26:25] PHP Warning:  Module 'gd' already loaded in Unknown on line 0
>[15-Oct-2007 21:26:25] PHP Warning:  Module 'pdf' already loaded in Unknown on line 0
>[15-Oct-2007 21:26:25] PHP Warning:  Module 'gd' already loaded in Unknown on line 0
>[15-Oct-2007 21:26:25] PHP Warning:  Module 'pdf' already loaded in Unknown on line 0
>[15-Oct-2007 21:26:25] PHP Warning:  Module 'gd' already loaded in Unknown on line 0
>[15-Oct-2007 21:26:25] PHP Warning:  Module 'pdf' already loaded in Unknown on line 0
>[15-Oct-2007 21:26:26] PHP Warning:  Module 'gd' already loaded in Unknown on line 0
>[15-Oct-2007 21:26:26] PHP Warning:  Module 'pdf' already loaded in Unknown on line 0
>[15-Oct-2007 21:26:26] PHP Warning:  Module 'gd' already loaded in Unknown on line 0
>[15-Oct-2007 21:26:26] PHP Warning:  Module 'pdf' already loaded in Unknown on line 0
>[15-Oct-2007 21:26:26] PHP Notice:  Undefined offset:  -1 in C:\ms4w\apps\fist-0.5\htdocs\classes\fistMapExtents_class.php on line 107
>[15-Oct-2007 21:26:27] PHP Warning:  Module 'gd' already loaded in Unknown on line 0
>[15-Oct-2007 21:26:27] PHP Warning:  Module 'pdf' already loaded in Unknown on line 0
>[15-Oct-2007 21:26:27] PHP Notice:  Undefined index:  user in C:\ms4w\apps\fist-0.5\htdocs\index.php on line 36
>[15-Oct-2007 21:26:27] PHP Notice:  Undefined index:  groups in C:\ms4w\apps\fist-0.5\htdocs\index.php on line 36
>[15-Oct-2007 21:26:27] PHP Warning:  in_array() [<a href='function.in-array'>function.in-array</a>]: Wrong datatype for second argument in C:\ms4w\apps\fist-0.5\htdocs\classes\fistAdmin_class.php on line 541
>[15-Oct-2007 21:26:27] PHP Warning:  in_array() [<a href='function.in-array'>function.in-array</a>]: Wrong datatype for second argument in C:\ms4w\apps\fist-0.5\htdocs\classes\fistAdmin_class.php on line 541
>[15-Oct-2007 21:26:27] PHP Warning:  in_array() [<a href='function.in-array'>function.in-array</a>]: Wrong datatype for second argument in C:\ms4w\apps\fist-0.5\htdocs\classes\fistAdmin_class.php on line 541
>[15-Oct-2007 21:26:27] PHP Warning:  in_array() [<a href='function.in-array'>function.in-array</a>]: Wrong datatype for second argument in C:\ms4w\apps\fist-0.5\htdocs\classes\fistAdmin_class.php on line 541
>[15-Oct-2007 21:26:27] PHP Notice:  Undefined index:  view-user in C:\ms4w\apps\fist-0.5\htdocs\classes\fistAdmin_class.php on line 531
>[15-Oct-2007 21:26:27] PHP Notice:  Undefined index:  view-group in C:\ms4w\apps\fist-0.5\htdocs\classes\fistAdmin_class.php on line 540
>[15-Oct-2007 21:26:27] PHP Notice:  Undefined index:  view-user in C:\ms4w\apps\fist-0.5\htdocs\classes\fistAdmin_class.php on line 531
>[15-Oct-2007 21:26:27] PHP Notice:  Undefined index:  view-group in C:\ms4w\apps\fist-0.5\htdocs\classes\fistAdmin_class.php on line 540
>[15-Oct-2007 21:26:28] PHP Warning:  Module 'gd' already loaded in Unknown on line 0
>[15-Oct-2007 21:26:28] PHP Warning:  Module 'pdf' already loaded in Unknown on line 0
>[15-Oct-2007 21:26:29] PHP Warning:  Module 'gd' already loaded in Unknown on line 0
>[15-Oct-2007 21:26:29] PHP Warning:  Module 'pdf' already loaded in Unknown on line 0
>[15-Oct-2007 21:26:30] PHP Warning:  [MapServer Error]: msDBFGetItemIndex(): Item 'Land use' not found.
> in C:\ms4w\apps\fist-0.5\htdocs\classes\fistUMinnMapserverMap_class.php on line 586
>[15-Oct-2007 21:26:30] PHP Warning:  Module 'gd' already loaded in Unknown on line 0
>[15-Oct-2007 21:26:30] PHP Warning:  Module 'pdf' already loaded in Unknown on line 0
>[15-Oct-2007 22:31:19] PHP Warning:  Module 'gd' already loaded in Unknown on line 0
>[15-Oct-2007 22:31:19] PHP Warning:  Module 'pdf' already loaded in Unknown on line 0
>[15-Oct-2007 22:31:31] PHP Warning:  Module 'gd' already loaded in Unknown on line 0
>[15-Oct-2007 22:31:31] PHP Warning:  Module 'pdf' already loaded in Unknown on line 0
>[15-Oct-2007 22:35:32] PHP Warning:  Module 'gd' already loaded in Unknown on line 0
>[15-Oct-2007 22:35:32] PHP Warning:  Module 'pdf' already loaded in Unknown on line 0
>[15-Oct-2007 23:21:04] PHP Warning:  Module 'gd' already loaded in Unknown on line 0
>[15-Oct-2007 23:21:04] PHP Warning:  Module 'pdf' already loaded in Unknown on line 0
>[15-Oct-2007 23:21:31] PHP Warning:  Module 'gd' already loaded in Unknown on line 0
>[15-Oct-2007 23:21:31] PHP Warning:  Module 'pdf' already loaded in Unknown on line 0
>[15-Oct-2007 23:21:51] PHP Warning:  Module 'gd' already loaded in Unknown on line 0
>[15-Oct-2007 23:21:51] PHP Warning:  Module 'pdf' already loaded in Unknown on line 0
>[15-Oct-2007 23:21:59] PHP Warning:  Module 'gd' already loaded in Unknown on line 0
>[15-Oct-2007 23:21:59] PHP Warning:  Module 'pdf' already loaded in Unknown on line 0
>[15-Oct-2007 23:29:55] PHP Warning:  Module 'gd' already loaded in Unknown on line 0
>[15-Oct-2007 23:29:55] PHP Warning:  Module 'pdf' already loaded in Unknown on line 0
>[15-Oct-2007 23:29:56] PHP Warning:  Module 'gd' already loaded in Unknown on line 0
>[15-Oct-2007 23:29:56] PHP Warning:  Module 'pdf' already loaded in Unknown on line 0
>[15-Oct-2007 23:29:56] PHP Warning:  Module 'gd' already loaded in Unknown on line 0
>[15-Oct-2007 23:29:56] PHP Warning:  Module 'pdf' already loaded in Unknown on line 0
>[15-Oct-2007 23:29:56] PHP Warning:  Module 'gd' already loaded in Unknown on line 0
>[15-Oct-2007 23:29:56] PHP Warning:  Module 'pdf' already loaded in Unknown on line 0
>[15-Oct-2007 23:29:56] PHP Warning:  Module 'gd' already loaded in Unknown on line 0
>[15-Oct-2007 23:29:56] PHP Warning:  Module 'pdf' already loaded in Unknown on line 0
>[15-Oct-2007 23:29:57] PHP Notice:  Trying to get property of non-object in C:\ms4w\apps\chameleon\htdocs\common\phpwms\manage_servers.php.inc on line 106
>[15-Oct-2007 23:31:01] PHP Warning:  Module 'gd' already loaded in Unknown on line 0
>[15-Oct-2007 23:31:01] PHP Warning:  Module 'pdf' already loaded in Unknown on line 0
>[15-Oct-2007 23:31:13] PHP Warning:  Module 'gd' already loaded in Unknown on line 0
>[15-Oct-2007 23:31:13] PHP Warning:  Module 'pdf' already loaded in Unknown on line 0
>[15-Oct-2007 23:47:42] PHP Warning:  Module 'gd' already loaded in Unknown on line 0
>[15-Oct-2007 23:47:42] PHP Warning:  Module 'pdf' already loaded in Unknown on line 0
>  
>



Shiva,

Please always reply to the list not to me personally.  First of all I 
think you could use ms4w 2.2.6 and Chameleon 2.6.0-rc1 on maptools.org.  
I see that you change something in sample_basic.phtml.  Try to execute 
the sample_basic application without changing anything and tell me if 
you get any php errors.

About the application you want to build I think it's feasible but I'm 
not an expert.  If I understand correctly a user will click an area on 
the map and information about the soil type will be displayed.  From 
that, the user will then enter the soil type in a field, push a button 
and a search will be performed in a database.  Is that it?  Maybe some 
other developers on the list may confirm that this can be done with 
Chameleon.

Norm





More information about the Chameleon mailing list