[horde] php8 fatal errors
Ferdinand Gruber
fer.grub at yahoo.de
Sat Jan 14 21:53:12 UTC 2023
Hi,
since upgrade from PHP7 to PHP8 horde creates a lot of fatal errors:
*Fatal error*: Uncaught ArgumentCountError: Too few arguments to
function Horde_ErrorHandler::errorHandler(), 4 passed in
/usr/share/php/PEAR/Horde/Injector/DependencyFinder.php on line 61 and
exactly 5 expected in /usr/share/php/PEAR/Horde/ErrorHandler.php:153
Stack trace: #0
/usr/share/php/PEAR/Horde/Injector/DependencyFinder.php(61):
Horde_ErrorHandler::errorHandler() #1
/usr/share/php/PEAR/Horde/Injector/DependencyFinder.php(42):
Horde_Injector_DependencyFinder->getParameterDependency() #2
/usr/share/php/PEAR/Horde/Injector/Binder/Implementation.php(88):
Horde_Injector_DependencyFinder->getMethodDependencies() #3
/usr/share/php/PEAR/Horde/Injector/Binder/Implementation.php(70):
Horde_Injector_Binder_Implementation->_getInstance() #4
/usr/share/php/PEAR/Horde/Injector/Binder/AnnotatedSetters.php(78):
Horde_Injector_Binder_Implementation->create() #5
/usr/share/php/PEAR/Horde/Injector.php(238):
Horde_Injector_Binder_AnnotatedSetters->create() #6
/usr/share/php/PEAR/Horde/Injector.php(272):
Horde_Injector->createInstance() #7
/usr/share/php/PEAR/Horde/Injector.php(267):
Horde_Injector->getInstance() #8
/usr/share/php/PEAR/Horde/Injector/Binder/Factory.php(119):
Horde_Injector->getInstance() #9
/usr/share/php/PEAR/Horde/Injector.php(238):
Horde_Injector_Binder_Factory->create() #10
/usr/share/php/PEAR/Horde/Injector.php(272):
Horde_Injector->createInstance() #11 /usr/share/php/PEAR/Horde.php(82):
Horde_Injector->getInstance() #12
/usr/share/php/PEAR/Horde/ErrorHandler.php(74): Horde::log() #13
/usr/share/php/PEAR/Horde/ErrorHandler.php(209):
Horde_ErrorHandler::fatal() #14 [internal function]:
Horde_ErrorHandler::catchFatalError() #15 {main} thrown in
*/usr/share/php/PEAR/Horde/ErrorHandler.php* on line *153*
My system is openSUSE version 15.4.
After upgrade from SUSE 15.3 to 15.4 PEAR was not installed.
So I installed the package php8-pear manually.
The include_path in php.ini is set to:
include_path= ".:/usr/share/php8:/usr/share/php/PEAR"
The PEAR folder exists and seems up to date.
Thank you in advance for every hint.
--
Regards from Austria
Ferdinand Gruber
More information about the horde
mailing list