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

Michael Schulz mschulz at webgis.de
Wed Nov 26 04:41:02 EST 2008


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


More information about the Mapbender_users mailing list