6.0.0-beta6
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
3/30/26
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#14452] Cannot redeclare class Horde_Hooks
*
Your Email Address
*
Spam protection
Enter the letters below:
.__.. .. ..___.___ | ||__||\/|[__ [__ |__\| || || [___
Comment
>>> Where did you see that you need to create a *.local.php version of >>> the hooks file? >> >> I anticipated this pattern from other places to prevent updates from >> overwriting my changes. > > Understandable, though the header of the hooks file explains > differently since this doesn't work with files that contain class > declarations. > > >>> This file declares the Horde_Hooks class, therefore >>> cannot be loaded more than once. All hooks need to be created in the >>> hooks.php file. >> >> I don't have a hooks.php file, only the hooks.local.php. >> I moved hooks.local.php to hooks.php with the same result. It doesn't >> make the error disappear. > > Horde is distributed with a hooks.php.dist file that needs to be > moved to hooks.php if any hooks need to be defined. If you are still > getting this error, you must still have another file being loaded > that contains the Horde_Hooks class declaration (or for some reason > you have it multiple times in your own file). >
Attachment
Watch this ticket
N
ew Ticket
M
y Tickets
S
earch
Q
uery Builder
R
eports
Saved Queries
Open Bugs
Bugs waiting for Feedback
Open Bugs in Releases
Open Enhancements
Enhancements waiting for Feedback
Bugs with Patches
Enhancements with Patches
Release Showstoppers
Stalled Tickets
New Tickets
Horde 5 Showstoppers