[horde] Turba 5 / Horde 6 | LDAP Search | Non-static method Horde_Form::getType() cannot be called statically

Ralf Lang ralf.lang at ralf-lang.de
Mon Dec 12 13:51:58 UTC 2022


Hi Samuel,

Am 12.12.2022 um 14:24 schrieb Samuel Wolf:
> Hello,
>
> I try to add a LDAP address book in turba 5 via backends.local.php.
> As soon I enable columns of this address book I get this error after 
> search:
>
> A fatal error has occurred
> Non-static method Horde_Form::getType() cannot be called statically
> in 
> /var/www/horde-deployment/vendor/horde/turba/templates/browse/row.inc:75
>
> 1. Turba_View_List->display() 
> /var/www/horde-deployment/vendor/horde/turba/search.php:297
> 2. Turba_View_List->getPage() 
> /var/www/horde-deployment/vendor/horde/turba/lib/View/List.php:194
> 3. Turba_View_List->_get() 
> /var/www/horde-deployment/vendor/horde/turba/lib/View/List.php:278
> 4. include() 
> /var/www/horde-deployment/vendor/horde/turba/lib/View/List.php:442
>
> 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.
>
> Error Object
> (
>     [message:protected] => Non-static method Horde_Form::getType() 
> cannot be called statically
>     [string:Error:private] => Error: Non-static method 
> Horde_Form::getType() cannot be called statically in 
> /var/www/horde-deployment/vendor/horde/turba/templates/browse/row.inc:75
> Stack trace:
> #0 
> /var/www/horde-deployment/vendor/horde/turba/lib/View/List.php(442): 
> include()
> #1 
> /var/www/horde-deployment/vendor/horde/turba/lib/View/List.php(278): 
> Turba_View_List->_get()
> #2 
> /var/www/horde-deployment/vendor/horde/turba/lib/View/List.php(194): 
> Turba_View_List->getPage()
> #3 /var/www/horde-deployment/vendor/horde/turba/search.php(297): 
> Turba_View_List->display()
> #4 {main}
> [...]
>
> Is there a package (horde_form) missing?
>
> composer require horde/form ^3
> [...]
> Nothing to install, update or remove

Good catch, I had a look at this items. Looks like I need to qualify 
getType as static. This *might* break other calls to it but it shouldn't.



More information about the horde mailing list