Can't complete horde webmail-install script

Bug #1599095 reported by Wojciech Myszka
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
php-horde-webmail (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

After running webmail-install I expected basic configuration and system ready for run and further configuration

After fresh system installation, invoking webmail-install script choosing: mysql, unix socket, no ssl, empty certification authority and disabled split reads script writes main configuration file

Writing main configuration file... done.

creates and updates database tables

Creating and updating database tables... done.

and stops with an error:

PHP Fatal error: Uncaught TypeError: Argument 1 passed to IMP_Application::exceptionHandler() must be an instance of Exception, instance of ParseError given in /usr/share/horde/imp/lib/Application.php:610
Stack trace:
#0 [internal function]: IMP_Application->exceptionHandler(Object(ParseError))
#1 {main}
  thrown in /usr/share/horde/imp/lib/Application.php on line 610

this message is repeated three times (and appears as a broadcast message from systemd-journal).

Basic apache server installation witch
a2query -s
000-default (enabled by site administrator)

a2query -m
alias (enabled by maintainer script)
env (enabled by maintainer script)
php7.0 (enabled by maintainer script)
socache_shmcb (enabled by site administrator)
autoindex (enabled by maintainer script)
setenvif (enabled by maintainer script)
mpm_prefork (enabled by maintainer script)
deflate (enabled by maintainer script)
authz_core (enabled by maintainer script)
auth_basic (enabled by maintainer script)
mime (enabled by maintainer script)
authn_core (enabled by maintainer script)
negotiation (enabled by maintainer script)
status (enabled by maintainer script)
rewrite (enabled by site administrator)
authz_host (enabled by maintainer script)
authz_user (enabled by maintainer script)
dir (enabled by maintainer script)
filter (enabled by maintainer script)
authn_file (enabled by maintainer script)
ssl (enabled by site administrator)
access_compat (enabled by maintainer script)

a2query -c
serve-cgi-bin (enabled by maintainer script)
other-vhosts-access-log (enabled by maintainer script)
charset (enabled by maintainer script)
javascript-common (enabled by maintainer script)
security (enabled by maintainer script)
localized-error-pages (enabled by maintainer script)
php-horde (enabled by maintainer script)

All configuration files (conf.php) are created.

Can not connect to site (there is an error: The server encountered an internal error or misconfiguration and was unable to complete your request.) and in apache log file: /usr/share/horde/.htaccess: Require not allowed here.

After commenting this line Require all granted (module authz_core loaded) I can connect to administrative interface of horde and can enter for configuration all applications but horde.
After entering horde configuration there is the same message:

Uncaught TypeError: Argument 1 passed to IMP_Application::exceptionHandler() must be an instance of Exception, instance of ParseError given in /usr/share/horde/imp/lib/Application.php:610 Stack trace: #0 [internal function]: IMP_Application->exceptionHandler(Object(ParseError)) #1 {main} thrown

and additionaly

ErrorException Object
(
    [message:protected] => Uncaught TypeError: Argument 1 passed to IMP_Application::exceptionHandler() must be an instance of Exception, instance of ParseError given in /usr/share/horde/imp/lib/Application.php:610
Stack trace:
#0 [internal function]: IMP_Application->exceptionHandler(Object(ParseError))
#1 {main}
  thrown
    [string:Exception:private] =>
    [code:protected] => 0
    [file:protected] => /usr/share/horde/imp/lib/Application.php
    [line:protected] => 610
    [trace:Exception:private] => Array
        (
            [0] => Array
                (
                    [function] => catchFatalError
                    [class] => Horde_ErrorHandler
                    [type] => ::
                    [args] => Array
                        (
                        )

                )

        )

    [previous:Exception:private] =>
    [severity:protected] => 1
    [logged] => 1
)

Additional info:

lsb_release -rd
Description: Ubuntu 16.04 LTS
Release: 16.04

php-horde-webmail:
  Installed: 5.2.12-1build1
  Candidate: 5.2.12-1build1
  Version table:
 *** 5.2.12-1build1 500
        500 http://pl.archive.ubuntu.com/ubuntu xenial/universe amd64 Packages
        500 http://pl.archive.ubuntu.com/ubuntu xenial/universe i386 Packages
        100 /var/lib/dpkg/status

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

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

Changed in php-horde-webmail (Ubuntu):
status: New → Confirmed
Revision history for this message
Andrei-Florian Staicu (andrei.staicu) wrote :

Hi,
After making the edit from here:
https://github.com/horde/horde/commit/a77c83657a1398cbb7ed89408118460d8499ecd4
i was able to see the real error, which is this:
ParseError: syntax error, unexpected 'new' (T_NEW) in /usr/share/php/Services/Weather.php:167
I found a temporary fix here:
https://bugs.launchpad.net/ubuntu/+source/php-horde/+bug/1588787
which is purging php-services-weather and php-horde-service-weather

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.