[kronolith] Non-static method Date_Calc::dateDiff() cannot be called statically
Ronny Forberger
ronnyforberger at ronnyforberger.de
Thu Jun 22 12:49:39 UTC 2023
Hi,
After upgrade to Debian Bookworm from Debian Bullseye, I get the following error message on my Horde 5.2.22 installation:
Ein schwerer Fehler ist aufgetreten:
Non-static method Date_Calc::dateDiff() cannot be called statically
in /usr/share/php/www/horde/kronolith/lib/Day.php:115
1. Horde_Core_Block_Layout_View->toHtml() /usr/share/php/www/horde/services/portal/index.php:35
2. Horde_Core_Block->getContent() /usr/share/php/Horde/Core/Block/Layout/View.php:98
3. Horde_Core_Block->_call() /usr/share/php/Horde/Core/Block.php:175
4. Kronolith_Block_Summary->_content() /usr/share/php/Horde/Core/Block.php:278
5. Kronolith_Day->diff() /usr/share/php/www/horde/kronolith/lib/Block/Summary.php:157
Details
Die vollständige Fehlermeldung wurde in Hordes Logdatei geschrieben und für Administratoren weiter unten ausgegeben. Benutzer, die keine Administratoren sind, bekommen diese Details nicht zu sehen.
Error Object
(
[message:protected] => Non-static method Date_Calc::dateDiff() cannot be called statically
[string:Error:private] => Error: Non-static method Date_Calc::dateDiff() cannot be called statically in /usr/share/php/www/horde/kronolith/lib/Day.php:115
Stack trace:
#0 /usr/share/php/www/horde/kronolith/lib/Block/Summary.php(157): Kronolith_Day->diff()
#1 /usr/share/php/Horde/Core/Block.php(278): Kronolith_Block_Summary->_content()
#2 /usr/share/php/Horde/Core/Block.php(175): Horde_Core_Block->_call()
#3 /usr/share/php/Horde/Core/Block/Layout/View.php(98): Horde_Core_Block->getContent()
#4 /usr/share/php/www/horde/services/portal/index.php(35): Horde_Core_Block_Layout_View->toHtml()
#5 {main}
[code:protected] => 0
[file:protected] => /usr/share/php/www/horde/kronolith/lib/Day.php
[line:protected] => 115
[trace:Error:private] => Array
(
[0] => Array
(
[file] => /usr/share/php/www/horde/kronolith/lib/Block/Summary.php
[line] => 157
[function] => diff
[class] => Kronolith_Day
[type] => ->
)
[1] => Array
(
[file] => /usr/share/php/Horde/Core/Block.php
[line] => 278
[function] => _content
[class] => Kronolith_Block_Summary
[type] => ->
)
[2] => Array
(
[file] => /usr/share/php/Horde/Core/Block.php
[line] => 175
[function] => _call
[class] => Horde_Core_Block
[type] => ->
)
[3] => Array
(
[file] => /usr/share/php/Horde/Core/Block/Layout/View.php
[line] => 98
[function] => getContent
[class] => Horde_Core_Block
[type] => ->
)
[4] => Array
(
[file] => /usr/share/php/www/horde/services/portal/index.php
[line] => 35
[function] => toHtml
[class] => Horde_Core_Block_Layout_View
[type] => ->
)
)
[previous:Error:private] =>
)
I installed the php-date package on Debian to fix the Date_Calc class not found issue.
Horde is installed via Pear.
Do I have the right php package installed to provide the class Date_Calc?
Any ideas what the above error could be related to and how to fix it?
Best regards,
Ronny Forberger
Ronny Forberger
E: ronnyforberger at ronnyforberger.de
W: http://www.ronnyforberger.de
More information about the kronolith
mailing list