[horde] Turba error
Ruud Baart
r.j.baart at prompt.nl
Sun Apr 26 14:42:39 UTC 2026
Changing Horde.php:1318 from
$options['params'][$key] = addcslashes((string) $val, '"');
to
$options['params'][$key] = addcslashes((string) $val, '"');
helps. But that's probably just a band-aid and not a solution.
Op 26-4-2026 om 16:26 schreef Ruud Baart:
> horde/turba 5.0.0beta5
>
> horde/horde dev-refactor/vanilla-js-migration ef68f2e
>
>
> In web interface, address can't be accessed:
>
>
> A fatal error has occurred
>
>
> addcslashes(): Argument #1 ($string) must be of type string, true
> given
>
> in /aa/bb/domain.ab/horde/vendor/horde/core/src/Horde.php:1318
>
> 1. require_once()
> /aa/bb/domain.ab/horde/web/turba/addressbooks/edit.php:3
> 2. Turba_Form_EditAddressBook->__construct()
> /aa/bb/domain.ab/horde/vendor/horde/turba/addressbooks/edit.php:36
> 3. Horde::popupJs()
> /aa/bb/domain.ab/horde/vendor/horde/turba/lib/Form/EditAddressBook.php:154
> 4. Horde\Core\Horde::popupJs()
> /aa/bb/domain.ab/horde/vendor/horde/core/lib/Horde.php:941
> 5. addcslashes()
> /aa/bb/domain.ab/horde/vendor/horde/core/src/Horde.php:1318
>
>
> 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] => addcslashes(): Argument #1 ($string) must
> be of type string, true given
> [string:Error:private] => TypeError: addcslashes(): Argument #1
> ($string) must be of type string, true given in
> /aa/bb/domain.ab/horde/vendor/horde/core/src/Horde.php:1318
> Stack trace:
> #0 /aa/bb/domain.ab/horde/vendor/horde/core/src/Horde.php(1318):
> addcslashes()
> #1 /aa/bb/domain.ab/horde/vendor/horde/core/lib/Horde.php(941):
> Horde\Core\Horde::popupJs()
> #2
> /aa/bb/domain.ab/horde/vendor/horde/turba/lib/Form/EditAddressBook.php(154):
> Horde::popupJs()
> #3
> /aa/bb/domain.ab/horde/vendor/horde/turba/addressbooks/edit.php(36):
> Turba_Form_EditAddressBook->__construct()
> #4 /aa/bb/domain.ab/horde/web/turba/addressbooks/edit.php(3):
> require_once('...')
> #5 {main}
> [code:protected] => 0
> [file:protected] =>
> /aa/bb/domain.ab/horde/vendor/horde/core/src/Horde.php
> [line:protected] => 1318
> [trace:Error:private] => Array
> (
> [0] => Array
> (
> [file] =>
> /aa/bb/domain.ab/horde/vendor/horde/core/src/Horde.php
> [line] => 1318
> [function] => addcslashes
> )
>
> [1] => Array
> (
> [file] =>
> /aa/bb/domain.ab/horde/vendor/horde/core/lib/Horde.php
> [line] => 941
> [function] => popupJs
> [class] => Horde\Core\Horde
> [type] => ::
> )
>
> [2] => Array
> (
> [file] =>
> /aa/bb/domain.ab/horde/vendor/horde/turba/lib/Form/EditAddressBook.php
> [line] => 154
> [function] => popupJs
> [class] => Horde
> [type] => ::
> )
>
> [3] => Array
> (
> [file] =>
> /aa/bb/domain.ab/horde/vendor/horde/turba/addressbooks/edit.php
> [line] => 36
> [function] => __construct
> [class] => Turba_Form_EditAddressBook
> [type] => ->
> )
>
> [4] => Array
> (
> [file] =>
> /aa/bb/domain.ab/horde/web/turba/addressbooks/edit.php
> [line] => 3
> [args] => Array
> (
> [0] =>
> /aa/bb/domain.ab/horde/vendor/horde/turba/addressbooks/edit.php
> )
>
> [function] => require_once
> )
>
> )
>
> [previous:Error:private] =>
> )
More information about the horde
mailing list