weather classe crash horde test and horde

Bug #1588787 reported by Christophe Masson
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
php-horde (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

When i try https://<my horde server>/test.php i have the following error. I have a similar error when configuring horde if the database is configured.

For the test, i have comment in "/usr/share/horde/lib/Test.php"

       'Services_Weather' => array(
            'error' => 'Services_Weather is used by the METAR weather applet/block on the portal page.'

and now it's working.

I will try to make the same thing for adminhorde

Best regards
=====
Une erreur fatale s'est produite
syntax error, unexpected 'new' (T_NEW)

1. Horde_ErrorHandler::fatal()

Détails
Le message d'erreur complet est enregistré dans les fichiers de log d'Horde. Il est disponible ci-dessous uniquement pour les administrateurs. Les utilisateurs standard ne verront pas le détail de cette erreur.

ParseError Object
(
    [message:protected] => syntax error, unexpected 'new' (T_NEW)
    [string:Error:private] => ParseError: syntax error, unexpected 'new' (T_NEW) in /usr/share/php/Services/Weather.php:167
Stack trace:
#0 /usr/share/php/Horde/Autoloader.php(65): Horde_Autoloader->_include('/usr/share/php/...')
#1 [internal function]: Horde_Autoloader->loadClass('Services_Weathe...')
#2 [internal function]: spl_autoload_call('Services_Weathe...')
#3 /usr/share/horde/lib/Test.php(616): class_exists('Services_Weathe...')
#4 /usr/share/horde/test.php(135): Horde_Test->pearModuleCheck()
#5 {main}
    [code:protected] => 0
    [file:protected] => /usr/share/php/Services/Weather.php
    [line:protected] => 167
    [trace:Error:private] => Array
        (
            [0] => Array
                (
                    [file] => /usr/share/php/Horde/Autoloader.php
                    [line] => 65
                    [function] => _include
                    [class] => Horde_Autoloader
                    [type] => ->
                    [args] => Array
                        (
                            [0] => /usr/share/php/Services/Weather.php
                        )

                )

            [1] => Array
                (
                    [function] => loadClass
                    [class] => Horde_Autoloader
                    [type] => ->
                    [args] => Array
                        (
                            [0] => Services_Weather
                        )

                )

            [2] => Array
                (
                    [function] => spl_autoload_call
                    [args] => Array
                        (
                            [0] => Services_Weather
                        )

                )

            [3] => Array
                (
                    [file] => /usr/share/horde/lib/Test.php
                    [line] => 616
                    [function] => class_exists
                    [args] => Array
                        (
                            [0] => Services_Weather
                        )

                )

            [4] => Array
                (
                    [file] => /usr/share/horde/test.php
                    [line] => 135
                    [function] => pearModuleCheck
                    [class] => Horde_Test
                    [type] => ->
                    [args] => Array
                        (
                        )

                )

        )

    [previous:Error:private] =>
)

Revision history for this message
Christophe Masson (christophe-masson) wrote :

For the config crash, i have purge this two packages
php-services-weather
php-horde-service-weather

It's OK with the original test.php file.

It seems a good warkaround

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in php-horde (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.