[horde] Horde & php8
cheese at nosuchhost.net
cheese at nosuchhost.net
Wed Aug 23 13:32:11 UTC 2023
hi all
i tried horde on a fresh debian-installation (bookworm). installed the
packages from the install-cd and NOT from pear.horde.org. bookworm is on
php 8.2 already.
php 8.1 gets active support until 25 Nov 2023 with security updates until
25 Nov 2024
php 8.2 has active support until 8 Dec 2024 with security updates until 8
Dec 2025
https://www.php.net/supported-versions.php
if needed and someone willing to code: i could try to get sponsoring for
those efforts, i would need an estimate for that.
i seem to be in a dead end at starting either /usr/bin/groupware-install
or /usr/bin/webmail-install
both error out at:
Installing Horde Groupware
PHP Deprecated: Creation of dynamic property ErrorException::$logged is
deprecated in /usr/share/php/Horde/Core/Log/Object.php on line 231
Deprecated: Creation of dynamic property ErrorException::$logged is
deprecated in /usr/share/php/Horde/Core/Log/Object.php on line 231
...
Configuring database settings
PHP Fatal error: Declaration of Horde_Form_Type_pgp::init($gpg, $temp_dir
= null, $rows = null, $cols = null) must be compatible with
Horde_Form_Type_longtext::init($rows = 8, $cols = 80, $helper = []) in
/usr/share/php/Horde/Form/Type.php on line 843
Fatal error: Declaration of Horde_Form_Type_pgp::init($gpg, $temp_dir =
null, $rows = null, $cols = null) must be compatible with
Horde_Form_Type_longtext::init($rows = 8, $cols = 80, $helper = []) in
/usr/share/php/Horde/Form/Type.php on line 843
and here it ends without any working configuration.
portal of horde seems to work (rudimentary). but entering the
admin-interface breaks with:
A fatal error has occurred
array_merge(): Argument #2 must be of type array, null given
in /usr/share/php/Horde/Vfs/Base.php:125
1. Horde_Core_Nosql->getDrivers()
/usr/share/horde/admin/config/index.php:298
2. Horde_Core_Nosql->{closure}() /usr/share/php/Horde/Core/Nosql.php:78
3. Horde_Core_Factory_Vfs->create() /usr/share/php/Horde/Core/Nosql.php:72
4. Horde_Vfs_Base->__construct()
/usr/share/php/Horde/Core/Factory/Vfs.php:54
5. Horde_Vfs_Base->setParams() /usr/share/php/Horde/Vfs/Base.php:81
6. array_merge() /usr/share/php/Horde/Vfs/Base.php:125
Details
The full error message is logged in Horde's log file, and is shown below
only to administrators. Non-administrative users will not see error
details.
TypeError Object
(
[message:protected] => array_merge(): Argument #2 must be of type
array, null given
[string:Error:private] => TypeError: array_merge(): Argument #2 must
be of type array, null given in /usr/share/php/Horde/Vfs/Base.php:125
...
i think this is expected as the above groupware-install did not finish.
some gollem-test.php seem to work
yours
josef
On Thu, 6 Jul 2023, Michael Schlueter wrote:
> Am 07.04.23 um 20:51 schrieb A. Schulze:
>> Hi all,
>>
>> just my thoughts:
>>
>> I use to use Debian's packages to run horde. So I checked it's state in
>> Debian:
>>
>> - Horde is still available for the upcoming Debian release (bookwork).
>> - On https://sources.debian.org one could see some patches that are used
>> to build Debian packages.
>> - Debian 12 will use PHP 8.2, see
>> https://packages.debian.org/search?keywords=php&searchon=names&suite=all§ion=all
>> - Horde packages are available for Debian Bookworm:
>> https://packages.debian.org/search?keywords=php-horde&searchon=names&suite=all§ion=all
>> - sources including patches for the packages are available on
>> https://sources.debian.org
>>
>> Maybe the patches are inspiration for people discussing about "Horde
>> project status" last days.
>>
>> I did not try to run horde on Debian Bookworm (still use Bullseye), but I
>> expect most of the features will be available.
>> The changes required to run horde on PHP8 are known but simply not back
>> upstream.
>>
>> Andreas
>
>
> Hi Andreas,
>
> A few days ago I installed PHP 8.1 in addition to PHP 7.4 to figure out was
> is needed to make horde working with PHP 8.1. With only picking some cherries
> with git from the master branch most of horde is working:
>
> IMP:
> 1053586
> https://github.com/horde/imp/commit/10535860c24f2677671fbbc0d97129c994225c37
> (already on FRAMEWORK_5_2 branch but not released)
>
> Kronoth:
> c508f6d
> https://github.com/horde/kronolith/commit/c508f6d729f9f70354970be9af2a59b94eb3c0c8
>
> History:
> 689a0a8
> https://github.com/horde/History/commit/689a0a89e03786d02718f96db269fc04b5d24d65
>
> Ingo:
> ad24579
> https://github.com/horde/ingo/commit/ad2457989c0d6737621d5ec89678d36e6c4e2538
>
>
> So far I see two issues:
>
> 1. Adressbook turba ony shows the first entry (after that I can see a 500
> Internal Server error). Log shows:
> Got error 'PHP message: PHP Fatal error: Declaration of
> Horde_Form_Type_pgp::init($gpg, $temp_dir = null, $rows = null, $cols = null)
> must be compatible with Horde_Form_Type_longtext::init($rows = 8, $cols = 80,
> $helper = []) in /usr/share/php/Horde/Form/Type.php on line 843', referer:
> https://johalla.org/turba/
>
> 2. Creating a new mail shows following error:
>
> ValueError Object
> (
> [message:protected] => ReflectionMethod::__construct(): Argument #2
> ($method) cannot be null when argument #1 ($objectOrMethod) is an object
> [string:Error:private] => ValueError: ReflectionMethod::__construct():
> Argument #2 ($method) cannot be null when argument #1 ($objectOrMethod)
> is an object in
> /usr/share/php/Horde/Core/Ajax/Application/Handler.php:91
> Stack trace:
> #0 /usr/share/php/Horde/Core/Ajax/Application/Handler.php(91):
> ReflectionMethod->__construct()
> #1 /usr/share/php/Horde/Core/Ajax/Application.php(271):
> Horde_Core_Ajax_Application_Handler->has()
> #2 /usr/share/php/Horde/Core/Ajax/Application.php(84):
> Horde_Core_Ajax_Application->_getHandler()
> #3 /usr/share/php/Horde/Core/Factory/Ajax.php(44):
> Horde_Core_Ajax_Application->__construct()
> #4 /srv/www/horde/imp/lib/Dynamic/Compose.php(239):
> Horde_Core_Factory_Ajax->create()
> #5 /srv/www/horde/imp/lib/Dynamic/Base.php(90): IMP_Dynamic_Compose->_init()
> #6 /srv/www/horde/imp/dynamic.php(33): IMP_Dynamic_Base->__construct()
> #7 {main}
>
> Today I had a look in all the patches from the Debian project. I was a bit
> surprised that the Kronoth changes were not included because the "Non-static
> method Date_Calc::dateDiff() cannot be called statically" was the first thing
> I saw then running PHP8.1.
> Unfortunately I found no obvious Debian patch which might fix my two issues.
>
> @Michael Rubinsky: What do you think. Would it be worth to take the patches
> from debian and merge them to the FRAMEWORK_5_2 branches and release new pear
> packages? If yes I can prepare the patches and create pull request for all
> the horde packages. Who could merge the pull request and release the
> packages?
>
> Cheers,
> Michael
>
More information about the horde
mailing list