6.0.0-beta4
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
3/10/26
History
Attachments
Comment
Watch
Download
Comment on [#13548] fatal error if in backend 'preferred' is an array
*
Your Email Address
*
Spam protection
Enter the letters below:
. ,. ..__.\ / __ \./ \ /[__] >< / ` | \/ | |/ \\__.
Comment
> After upgrade to the newest version, ingo (and imp) crashed with a > fatal error > No "script" element found in backend configuration. > > In the backend definition of ingo 'script' was defined. > The error traced back to > _getBackend() ....ingo/lib/Session.php:47 > where I found the reason: > > In file ingo/lib/Session.php (line 126): > foreach ($val['preferred'] as $val) { > if (($val == $_SERVER['SERVER_NAME']) || > ($val == $_SERVER['HTTP_HOST'])) { > $backend = $val; > } > } > > This code is only used, if 'preferred' in the backend definition is > an array. > $val is used in two meanings and the 'foreach' overwrites the first one. > It should be more like this: > > foreach ($val['preferred'] as $v) { > if (($v == $_SERVER['SERVER_NAME']) || > ($v == $_SERVER['HTTP_HOST'])) { > $backend = $v; > } > } > > sorry, don't know how make a patch for this >
Attachment
Watch this ticket
New Ticket
My Tickets
Search
Query Builder
Reports
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