AW: [Mapbender-users] MB 2.5: Problem with module MonitorCapabilities

Christoph Baudson christoph.baudson at wheregroup.com
Wed Nov 26 05:35:54 EST 2008


Schönhammer schrieb:
> Hi Mr. Schulz,
>
> thanks for the tipp.
>
> ( yes, I had a lot of trouble with php: first i had no cli compiled, then another php.ini for cli is used as for the apache-modul, ...)
>
> I thought, I had solved all those troubles. But unfortenately I did not see, that in mod_monitorCapabilities_main line 150 the "php5" is used.
>
> On my server "php5" was indeed another php-version. Okay problem solved. The WMS are monitored. This problem is solved.
>
> But there are new error messages now (which have no effect for monitoring the wms) . I get (a hundred times ;-) ) the messages:
>
> PHP Warning:  Missing argument 4 for Mapbender_point::__construct(), called in /home/mapbender/mapbender_2.5/http/classes/class_point.php on line 116 and defined in /home/mapbender/mapbender_2.5/http/classes/class_point.php on line 34
>   

This is just a warning and should not worry you. However, I will change 
the code in a future version in order to get rid of that warning.

Thanks

Christoph Baudson

> greetings
> Herbert Schoenhammer
>
>
>
>   
>> -----Ursprüngliche Nachricht-----
>> Von: mapbender_users-bounces at lists.osgeo.org
>> [mailto:mapbender_users-bounces at lists.osgeo.org] Im Auftrag
>> von Michael Schulz
>> Gesendet: Mittwoch, 26. November 2008 10:41
>> An: Mapbender User List
>> Betreff: Re: [Mapbender-users] MB 2.5: Problem with module
>> MonitorCapabilities
>>
>>
>> Hi Mr. Schönhammer,
>>
>> just a wild guess: monitorCapabilities_main uses the commandline php
>> to actually call monitorCapabilites_write, if you get an undefined
>> function error this sounds like the cli php that is used, differs from
>> the one that is used for mapbender via apache cgi or module. Could
>> that be the case?
>>
>> Have a look at mod_monitorCapabilities_main line 150, there the
>> command line is constructed, the PHP_PATH is set in mapbender.conf. If
>> you call this "PHP_PATH php -v" from the shell you'll get the used php
>> version.
>>
>> Greetings, Michael Schulz
>>
>> 2008/11/26 Schönhammer, Herbert <Schoenhammer.Herbert at regensburg.de>:
>>     
>>> Hi list,
>>>
>>> At this point of time I'm using MB 2.4.1. The module
>>>       
>> MonitorCapabilities is
>>     
>>> working well.
>>>
>>> Now I want to use the module MonitorCapabilites with MB 2.5.
>>>
>>> I start the monitoring process with:  php
>>>       
>> ./mod_monitorCapabilities_main.php
>>     
>>> user:root gui:xyz
>>>
>>> The script reports a fatal error: call to undefined function
>>> mb_internal_encoding() in
>>> /home/mapbender/mapbender_2.5/core/globalSettings.php on line 22.
>>>
>>> All WMS are reported as "Monitoring process timed out". But
>>>       
>> (of course) they
>>     
>>> are reachable !
>>>
>>> Records in table mb_monitor are stored. But there is
>>>       
>> obviously a problem
>>     
>>> getting the capabilities-document. The server's access_log
>>>       
>> does NOT report a
>>     
>>> getcapabilites-request.
>>>
>>> Has anyone an idea what to do ?
>>>
>>> greetings
>>> Herbert Schoenhammer
>>>
>>> The complete otuput of ./mod_monitorCapabilities_main.php  is:
>>>
>>> Starting monitoring cycle...
>>>
>>> WMS services are requested for availability.
>>> Capabilities documents are requested and all changes
>>>       
>> synchronized with the
>>     
>>> database cache.
>>>
>>> PHP Notice:  A session had already been started - ignoring
>>>       
>> session_start()
>>     
>>> in /home/mapbender/mapbender_2.5/core/globalSettings.php on line 22
>>> PHP Fatal error:  Call to undefined function
>>>       
>> mb_internal_encoding() in
>>     
>>> /home/mapbender/mapbender_2.5/core/globalSettings.php on line 27
>>> PHP Notice:  A session had already been started - ignoring
>>>       
>> session_start()
>>     
>>> in /home/mapbender/mapbender_2.5/core/globalSettings.php on line 22
>>> PHP Fatal error:  Call to undefined function
>>>       
>> mb_internal_encoding() in
>>     
>>> /home/mapbender/mapbender_2.5/core/globalSettings.php on line 27
>>> PHP Notice:  A session had already been started - ignoring
>>>       
>> session_start()
>>     
>>> in /home/mapbender/mapbender_2.5/core/globalSettings.php on line 22
>>> PHP Fatal error:  Call to undefined function
>>>       
>> mb_internal_encoding() in
>>     
>>> /home/mapbender/mapbender_2.5/core/globalSettings.php on line 27
>>> PHP Notice:  A session had already been started - ignoring
>>>       
>> session_start()
>>     
>>> in /home/mapbender/mapbender_2.5/core/globalSettings.php on line 22
>>> PHP Fatal error:  Call to undefined function
>>>       
>> mb_internal_encoding() in
>>     
>>> /home/mapbender/mapbender_2.5/core/globalSettings.php on line 27
>>> PHP Notice:  A session had already been started - ignoring
>>>       
>> session_start()
>>     
>>> in /home/mapbender/mapbender_2.5/core/globalSettings.php on line 22
>>> PHP Fatal error:  Call to undefined function
>>>       
>> mb_internal_encoding() in
>>     
>>> /home/mapbender/mapbender_2.5/core/globalSettings.php on line 27
>>> PHP Notice:  A session had already been started - ignoring
>>>       
>> session_start()
>>     
>>> in /home/mapbender/mapbender_2.5/core/globalSettings.php on line 22
>>> PHP Fatal error:  Call to undefined function
>>>       
>> mb_internal_encoding() in
>>     
>>> /home/mapbender/mapbender_2.5/core/globalSettings.php on line 27
>>> PHP Notice:  A session had already been started - ignoring
>>>       
>> session_start()
>>     
>>> in /home/mapbender/mapbender_2.5/core/globalSettings.php on line 22
>>> PHP Fatal error:  Call to undefined function
>>>       
>> mb_internal_encoding() in
>>     
>>> /home/mapbender/mapbender_2.5/core/globalSettings.php on line 27
>>> Monitoring Cycle completed (total: 8 wms).
>>>
>>> please wait 300 seconds for the monitoring to finish...
>>>
>>> PHP Notice:  A session had already been started - ignoring
>>>       
>> session_start()
>>     
>>> in /home/mapbender/mapbender_2.5/core/globalSettings.php on line 22
>>> PHP Fatal error:  Call to undefined function
>>>       
>> mb_internal_encoding() in
>>     
>>> /home/mapbender/mapbender_2.5/core/globalSettings.php on line 27
>>> 912: status -1
>>> 913: status -1
>>> 916: status -1
>>> 929: status -1
>>> 930: status -1
>>> 931: status -1
>>> 934: status -1
>>> 937: status -1
>>>
>>>
>>>
>>> _______________________________________________
>>> Mapbender_users mailing list
>>> Mapbender_users at lists.osgeo.org
>>> http://lists.osgeo.org/mailman/listinfo/mapbender_users
>>>
>>>
>>>       
>>
>> --
>> -----------------------------------------------------------
>> Michael Schulz
>> mschulz at webgis.de
>>
>> in medias res
>> Gesellschaft für Informationstechnologie mbH
>>
>> In den Weihermatten 66
>> 79108 Freiburg
>>
>> Tel  +49 (0)761 556959-5
>> Fax +49 (0)761 556959-6
>>
>> http://www.webgis.de / http://www.zopecms.de
>> -----------------------------------------------------------
>> Geschäftsführer: Stefan Giese, Dr. Christof Lindenbeck
>> Eingetragen im Handelsregister HRB 5930 beim Amtsgericht Freiburg
>> _______________________________________________
>> Mapbender_users mailing list
>> Mapbender_users at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapbender_users
>>
>>     
> _______________________________________________
> Mapbender_users mailing list
> Mapbender_users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapbender_users
>   


-- 
********************************************
Where2B-Konferenz
Die Geo-IT Konferenz der WhereGroup
vom 9.-10. Dezember 2008 in Bonn
Web: www.where2b-conference.com
******************************************** 
_______________________________________

W h e r e G r o u p GmbH & Co. KG

Siemensstraße 8
53121 Bonn
Germany

Christoph Baudson
Anwendungsentwickler

Fon: +49 (0)228 / 90 90 38 - 15
Fax: +49 (0)228 / 90 90 38 - 11
christoph.baudson at wheregroup.com
www.wheregroup.com
Amtsgericht Bonn, HRA 6788
_______________________________________

Komplementärin:
WhereGroup Verwaltungs GmbH
vertreten durch:
Olaf Knopp, Peter Stamm
_______________________________________



More information about the Mapbender_users mailing list