Update on mapbender-3.0.8.1, the some php and http-errors

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Update on mapbender-3.0.8.1, the some php and http-errors

useher
Hello Group!
These days i did an update from version 3.0.6.1 on 3.8.0. which worked good for the most parts. The underlying PHP is version 7.0 which was the only version with all necessary modules in the repository. openSuse Leap 15.0 seems to ignore version 7.1.
After the update there are some annoying errors.
First on the login-screen mapbender/user/login apears a errormessage

"The server returned a "500 Internal Server Error"


in the upper part of the screen. Below that, the login is ok an works fine. This is bad, because everey user first sees a large errormessage and i have no clue where it comes from. After login, the message disappears, so i think it is bound to the login-screen, the logfile shows this:

[2019-06-18 07:51:44] request.INFO: Matched route "mapbender_core_login_logout". {"route_parameters":{"_controller":"Mapbender\\CoreBundle\\Controller\\LoginController::logoutAction","_route":"mapbender_core_login_logout"},"request_uri":"https://intranet.ib-kauppert.de/mb3/user/logout"} []
[2019-06-18 07:51:44] request.CRITICAL: Uncaught PHP Exception Symfony\Component\Debug\Exception\FatalThrowableError: "Call to a member function getUser() on null" at /srv/www/htdocs/mapbender-starter-v3.0.8.1/owsproxy/src/OwsProxy3/CoreBundle/EventListener/LoggingListener.php line 57 {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\FatalThrowableError(code: 0): Call to a member function getUser() on null at /srv/www/htdocs/mapbender-starter-v3.0.8.1/owsproxy/src/OwsProxy3/CoreBundle/EventListener/LoggingListener.php:57)"} []
[2019-06-18 07:51:49] request.INFO: Matched route "mapbender_core_login_login". {"route_parameters":{"_controller":"Mapbender\\CoreBundle\\Controller\\LoginController::loginAction","_route":"mapbender_core_login_login"},"request_uri":"https://intranet.ib-kauppert.de/mb3/user/login"} []
[2019-06-18 07:51:49] request.CRITICAL: Uncaught PHP Exception Symfony\Component\Debug\Exception\FatalThrowableError: "Call to a member function getUser() on null" at /srv/www/htdocs/mapbender-starter-v3.0.8.1/owsproxy/src/OwsProxy3/CoreBundle/EventListener/LoggingListener.php line 57 {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\FatalThrowableError(code: 0): Call to a member function getUser() on null at /srv/www/htdocs/mapbender-starter-v3.0.8.1/owsproxy/src/OwsProxy3/CoreBundle/EventListener/LoggingListener.php:57)"} []

Maybe this is problem is related to the next one:

I have probably a Problem loading the php-etension intl. When I start php on the console it shows the message

PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib64/php7/extensions/intl.so' - /usr/lib64/php7/extensions/intl.so: undefined symbol: _ZNK8icu_57_117StringEnumeration5cloneEv in Unknown on line 0

This seems to cause a Problem in the Print-Client, which causes the map not to load and show also an

The server returned a "500 Internal Server Error".

The logfile shows this error:

[2019-06-18 08:04:10] request.INFO: Matched route "mapbender_core_application_application". {"route_parameters":{"_format":"html","_controller":"Mapbender\\CoreBundle\\Controller\\ApplicationController::applicationAction","slug":"mittelrhein","_route":"mapbender_core_application_application"},"request_uri":"https://intranet.ib-kauppert.de/mb3/application/mittelrhein"} []
[2019-06-18 08:04:10] request.CRITICAL: Uncaught PHP Exception Symfony\Component\Debug\Exception\UndefinedFunctionException: "Attempted to call function "locale_get_default" from the global namespace." at /srv/www/htdocs/mapbender-starter-v3.0.8.1/mapbender/src/Mapbender/PrintBundle/Element/PrintClient.php line 155 {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\UndefinedFunctionException(code: 0): Attempted to call function \"locale_get_default\" from the global namespace. at /srv/www/htdocs/mapbender-starter-v3.0.8.1/mapbender/src/Mapbender/PrintBundle/Element/PrintClient.php:155)"} []


If i deactivate the Printclient everything works fine.
So my first question is, can this be caused by the problem with the php7-intl.so library and how can I handle this error  (i have no clue about php)? If not, the second question is, where does it come from and how can i get them handled. The printclient is not so important, but an error-message on the login-screen is really annoying.

If you need more logs or other info please tell me.
Thank you very much in advance
Uwe Seher

_______________________________________________
Mapbender_users mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/mapbender_users
Reply | Threaded
Open this post in threaded view
|

Re: Update on mapbender-3.0.8.1, the some php and http-errors

David Patzke

Hi Uwe,

as far as I can see, your php-intl uses an old version of ICU. Maybe you can try to update this package manually https://software.opensuse.org/package/php7-intl .

For the 500 error, please temporary deactivate the logging function of thr OWSProxy in your config.yml with

ows_proxy3_core:
    logging: false
This is a bug in the current release and will be fixed asap.

Best regards
David Patzke
On 18.06.19 10:22, Uwe Seher wrote:
Hello Group!
These days i did an update from version 3.0.6.1 on 3.8.0. which worked good for the most parts. The underlying PHP is version 7.0 which was the only version with all necessary modules in the repository. openSuse Leap 15.0 seems to ignore version 7.1.
After the update there are some annoying errors.
First on the login-screen mapbender/user/login apears a errormessage

"The server returned a "500 Internal Server Error"


in the upper part of the screen. Below that, the login is ok an works fine. This is bad, because everey user first sees a large errormessage and i have no clue where it comes from. After login, the message disappears, so i think it is bound to the login-screen, the logfile shows this:

[2019-06-18 07:51:44] request.INFO: Matched route "mapbender_core_login_logout". {"route_parameters":{"_controller":"Mapbender\\CoreBundle\\Controller\\LoginController::logoutAction","_route":"mapbender_core_login_logout"},"request_uri":"https://intranet.ib-kauppert.de/mb3/user/logout"} []
[2019-06-18 07:51:44] request.CRITICAL: Uncaught PHP Exception Symfony\Component\Debug\Exception\FatalThrowableError: "Call to a member function getUser() on null" at /srv/www/htdocs/mapbender-starter-v3.0.8.1/owsproxy/src/OwsProxy3/CoreBundle/EventListener/LoggingListener.php line 57 {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\FatalThrowableError(code: 0): Call to a member function getUser() on null at /srv/www/htdocs/mapbender-starter-v3.0.8.1/owsproxy/src/OwsProxy3/CoreBundle/EventListener/LoggingListener.php:57)"} []
[2019-06-18 07:51:49] request.INFO: Matched route "mapbender_core_login_login". {"route_parameters":{"_controller":"Mapbender\\CoreBundle\\Controller\\LoginController::loginAction","_route":"mapbender_core_login_login"},"request_uri":"https://intranet.ib-kauppert.de/mb3/user/login"} []
[2019-06-18 07:51:49] request.CRITICAL: Uncaught PHP Exception Symfony\Component\Debug\Exception\FatalThrowableError: "Call to a member function getUser() on null" at /srv/www/htdocs/mapbender-starter-v3.0.8.1/owsproxy/src/OwsProxy3/CoreBundle/EventListener/LoggingListener.php line 57 {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\FatalThrowableError(code: 0): Call to a member function getUser() on null at /srv/www/htdocs/mapbender-starter-v3.0.8.1/owsproxy/src/OwsProxy3/CoreBundle/EventListener/LoggingListener.php:57)"} []

Maybe this is problem is related to the next one:

I have probably a Problem loading the php-etension intl. When I start php on the console it shows the message

PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib64/php7/extensions/intl.so' - /usr/lib64/php7/extensions/intl.so: undefined symbol: _ZNK8icu_57_117StringEnumeration5cloneEv in Unknown on line 0

This seems to cause a Problem in the Print-Client, which causes the map not to load and show also an

The server returned a "500 Internal Server Error".

The logfile shows this error:

[2019-06-18 08:04:10] request.INFO: Matched route "mapbender_core_application_application". {"route_parameters":{"_format":"html","_controller":"Mapbender\\CoreBundle\\Controller\\ApplicationController::applicationAction","slug":"mittelrhein","_route":"mapbender_core_application_application"},"request_uri":"https://intranet.ib-kauppert.de/mb3/application/mittelrhein"} []
[2019-06-18 08:04:10] request.CRITICAL: Uncaught PHP Exception Symfony\Component\Debug\Exception\UndefinedFunctionException: "Attempted to call function "locale_get_default" from the global namespace." at /srv/www/htdocs/mapbender-starter-v3.0.8.1/mapbender/src/Mapbender/PrintBundle/Element/PrintClient.php line 155 {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\UndefinedFunctionException(code: 0): Attempted to call function \"locale_get_default\" from the global namespace. at /srv/www/htdocs/mapbender-starter-v3.0.8.1/mapbender/src/Mapbender/PrintBundle/Element/PrintClient.php:155)"} []


If i deactivate the Printclient everything works fine.
So my first question is, can this be caused by the problem with the php7-intl.so library and how can I handle this error  (i have no clue about php)? If not, the second question is, where does it come from and how can i get them handled. The printclient is not so important, but an error-message on the login-screen is really annoying.

If you need more logs or other info please tell me.
Thank you very much in advance
Uwe Seher

_______________________________________________
Mapbender_users mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/mapbender_users

_______________________________________________
Mapbender_users mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/mapbender_users
Reply | Threaded
Open this post in threaded view
|

Re: Update on mapbender-3.0.8.1, the some php and http-errors

useher
Hi David!

Thank you for the answer. I have changed the entry and the error is still there.
Does Mapbender run with PHP 7.2 or greater? This will make things much easier.

Best regards
Uwe Seher

Am Mi., 19. Juni 2019 um 14:53 Uhr schrieb David Patzke <[hidden email]>:

Hi Uwe,

as far as I can see, your php-intl uses an old version of ICU. Maybe you can try to update this package manually https://software.opensuse.org/package/php7-intl .

For the 500 error, please temporary deactivate the logging function of thr OWSProxy in your config.yml with

ows_proxy3_core:
    logging: false
This is a bug in the current release and will be fixed asap.

Best regards
David Patzke
On 18.06.19 10:22, Uwe Seher wrote:
Hello Group!
These days i did an update from version 3.0.6.1 on 3.8.0. which worked good for the most parts. The underlying PHP is version 7.0 which was the only version with all necessary modules in the repository. openSuse Leap 15.0 seems to ignore version 7.1.
After the update there are some annoying errors.
First on the login-screen mapbender/user/login apears a errormessage

"The server returned a "500 Internal Server Error"


in the upper part of the screen. Below that, the login is ok an works fine. This is bad, because everey user first sees a large errormessage and i have no clue where it comes from. After login, the message disappears, so i think it is bound to the login-screen, the logfile shows this:

[2019-06-18 07:51:44] request.INFO: Matched route "mapbender_core_login_logout". {"route_parameters":{"_controller":"Mapbender\\CoreBundle\\Controller\\LoginController::logoutAction","_route":"mapbender_core_login_logout"},"request_uri":"https://intranet.ib-kauppert.de/mb3/user/logout"} []
[2019-06-18 07:51:44] request.CRITICAL: Uncaught PHP Exception Symfony\Component\Debug\Exception\FatalThrowableError: "Call to a member function getUser() on null" at /srv/www/htdocs/mapbender-starter-v3.0.8.1/owsproxy/src/OwsProxy3/CoreBundle/EventListener/LoggingListener.php line 57 {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\FatalThrowableError(code: 0): Call to a member function getUser() on null at /srv/www/htdocs/mapbender-starter-v3.0.8.1/owsproxy/src/OwsProxy3/CoreBundle/EventListener/LoggingListener.php:57)"} []
[2019-06-18 07:51:49] request.INFO: Matched route "mapbender_core_login_login". {"route_parameters":{"_controller":"Mapbender\\CoreBundle\\Controller\\LoginController::loginAction","_route":"mapbender_core_login_login"},"request_uri":"https://intranet.ib-kauppert.de/mb3/user/login"} []
[2019-06-18 07:51:49] request.CRITICAL: Uncaught PHP Exception Symfony\Component\Debug\Exception\FatalThrowableError: "Call to a member function getUser() on null" at /srv/www/htdocs/mapbender-starter-v3.0.8.1/owsproxy/src/OwsProxy3/CoreBundle/EventListener/LoggingListener.php line 57 {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\FatalThrowableError(code: 0): Call to a member function getUser() on null at /srv/www/htdocs/mapbender-starter-v3.0.8.1/owsproxy/src/OwsProxy3/CoreBundle/EventListener/LoggingListener.php:57)"} []

Maybe this is problem is related to the next one:

I have probably a Problem loading the php-etension intl. When I start php on the console it shows the message

PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib64/php7/extensions/intl.so' - /usr/lib64/php7/extensions/intl.so: undefined symbol: _ZNK8icu_57_117StringEnumeration5cloneEv in Unknown on line 0

This seems to cause a Problem in the Print-Client, which causes the map not to load and show also an

The server returned a "500 Internal Server Error".

The logfile shows this error:

[2019-06-18 08:04:10] request.INFO: Matched route "mapbender_core_application_application". {"route_parameters":{"_format":"html","_controller":"Mapbender\\CoreBundle\\Controller\\ApplicationController::applicationAction","slug":"mittelrhein","_route":"mapbender_core_application_application"},"request_uri":"https://intranet.ib-kauppert.de/mb3/application/mittelrhein"} []
[2019-06-18 08:04:10] request.CRITICAL: Uncaught PHP Exception Symfony\Component\Debug\Exception\UndefinedFunctionException: "Attempted to call function "locale_get_default" from the global namespace." at /srv/www/htdocs/mapbender-starter-v3.0.8.1/mapbender/src/Mapbender/PrintBundle/Element/PrintClient.php line 155 {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\UndefinedFunctionException(code: 0): Attempted to call function \"locale_get_default\" from the global namespace. at /srv/www/htdocs/mapbender-starter-v3.0.8.1/mapbender/src/Mapbender/PrintBundle/Element/PrintClient.php:155)"} []


If i deactivate the Printclient everything works fine.
So my first question is, can this be caused by the problem with the php7-intl.so library and how can I handle this error  (i have no clue about php)? If not, the second question is, where does it come from and how can i get them handled. The printclient is not so important, but an error-message on the login-screen is really annoying.

If you need more logs or other info please tell me.
Thank you very much in advance
Uwe Seher

_______________________________________________
Mapbender_users mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/mapbender_users
_______________________________________________
Mapbender_users mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/mapbender_users

_______________________________________________
Mapbender_users mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/mapbender_users