Skip to content

"PHP Fatal error: Cannot declare class" error in /horde/services/portal/ #28

@midahp

Description

@midahp

After updating to the new version I get a fatal error after I log in and get redirected to /horde/services/portal/:

PHP Fatal error:  Cannot declare class Kronolith_Application, because the name is already in use in {path_to_horde_dir}/vendor/horde/kronolith/lib/Application.php on line 39

When I add a if !class_exists('Kronolith_Application') block around the class, that error is disappears but I get the same error for ingo:

PHP Fatal error:  Cannot declare class Ingo_Application, because the name is already in use in {path_to_horde_dir}/vendor/horde/ingo/lib/Application.php on line 43

When I enter another url like /kronolith/ or /ingo/ directly, it works fine.

As a workaround I changed https://github.com/horde/Core/blob/FRAMEWORK_6_0/lib/Horde/Registry.php#L859 to if (class_exists($classname, false)) {

But that will probably cause other problems. At least in other installations.

So I am not sure if this is a specific problem with the /horde/services/portal page or a more general issue.

I use php 8.3 with the following horde versions:

"composer show" output
fig/event-dispatcher-util    1.3.1                     Useful utility classes and traits for implementing the PSR events standard
horde/activesync             v3.0.0alpha4              ActiveSync server library
horde/alarm                  v3.0.0alpha5              Alarm library
horde/argv                   v3.0.0alpha6              Command-line argument parsing library
horde/auth                   v3.0.0alpha9              Authentication and user management library
horde/autoloader             v3.0.0alpha5              Autoloader library
horde/browser                v3.0.0alpha4              Browser detection library
horde/cache                  v3.0.0alpha5              Caching library
horde/cli                    v3.0.0alpha5              Command line interface library
horde/cli_modular            v3.0.0alpha5              Modular command line interface library
horde/compress               v3.0.0alpha4              Compression library
horde/compress_fast          v2.0.0alpha4              Fast compression library
horde/constraint             v3.0.0alpha4              Constraint library
horde/content                v3.0.0alpha7              Tagging application
horde/controller             v3.0.0alpha4              Controller library
horde/core                   v3.0.0beta2               Core Horde Framework library
horde/crypt                  v3.0.0alpha4              Cryptography library
horde/crypt_blowfish         v2.0.0alpha4              Blowfish encryption library
horde/css_parser             v2.0.0alpha4              CSS parser library
horde/cssminify              v2.0.0alpha4              CSS minification library
horde/data                   v3.0.0alpha4              Data import and export library
horde/date                   v3.0.0alpha4              Date library
horde/date_parser            v3.0.0alpha4              Date parser library
horde/dav                    v2.0.0alpha4              WebDAV, CalDAV, and CardDAV library
horde/db                     v3.0.0alpha6              Database abstraction library
horde/editor                 v3.0.0alpha5              WYSIWYG editor library
horde/eventdispatcher        v1.0.0alpha2              A simple PSR-14 EventDispatcher / ListenerProvider system for Horde
horde/exception              v3.0.0alpha4              Exception handler library
horde/form                   v3.0.0beta3               Form library
horde/group                  v3.0.0alpha6              User groups library
horde/hashtable              v2.0.0alpha6              Hash table client library
horde/history                v3.0.0alpha4              History tracking library
horde/horde                  v6.0.0beta1               Horde base application
horde/horde-installer-plugin v3.0.3                    Horde.org Framework's composer 2.x plugin
horde/hordectl               v1.0.0alpha5              Scenario deployer library
horde/http                   v3.0.0beta1               HTTP client library
horde/http_server            v1.0.0beta1               HTTP Request Handling Library adhering to PSR-15 standard. This evolved out of horde/controller.
horde/icalendar              v3.0.0alpha4              iCalendar and vCard library
horde/idna                   v2.0.0alpha4              IDNA normalization library
horde/image                  v3.0.0alpha5              Image library
horde/imap_client            v3.0.0alpha5              IMAP client library
horde/imp                    dev-FRAMEWORK_6_0 8add4de Webmail application
horde/ingo                   v4.0.0alpha8              Email filter rules manager application
horde/injector               v3.0.0alpha11             Dependency injection container library
horde/itip                   v3.0.0alpha4              iTip invitation response library
horde/javascriptminify       v2.0.0alpha4              JavaScript minification library
horde/kronolith              dev-FRAMEWORK_6_0 a141bd6 Calendar and scheduling application
horde/listheaders            v2.0.0alpha4              List headers parsing library
horde/lock                   v3.0.0alpha4              Resource locking library
horde/log                    v3.0.0beta1               Logging library
horde/logintasks             v3.0.0alpha4              Login tasks library
horde/mail                   v3.0.0alpha5              Mail library
horde/mail_autoconfig        v2.0.0alpha4              Mail server autoconfiguration library
horde/managesieve            v2.0.0alpha5              ManageSieve client library
horde/mapi                   v2.0.0alpha5              MAPI utility library
horde/mime                   v3.0.0alpha6              MIME library
horde/mime_viewer            v3.0.0alpha6              MIME viewer library
horde/mnemo                  v5.0.0alpha8              Notes application
horde/nag                    v5.0.0alpha11             Task list application
horde/nls                    v3.0.0alpha4              Native language support library
horde/notification           v3.0.0alpha4              Notification library implementing subject-observer pattern
horde/pack                   v2.0.0alpha4              Data packing library
horde/perms                  v3.0.0alpha5              Permissions library
horde/prefs                  v3.0.0alpha6              User preferences library
horde/rdo                    v3.0.0alpha6              ORM (object relational-mapping) library
horde/routes                 v3.0.0alpha5              URL routing/mapping library
horde/rpc                    v3.0.0alpha5              RPC library
horde/secret                 v3.0.0alpha4              Secret key encryption library
horde/serialize              v3.0.0alpha4              Data serialization library
horde/sessionhandler         v3.0.0alpha4              Session handler library
horde/share                  v3.0.0alpha4              Resource sharing library
horde/smtp                   v2.0.0alpha3              SMTP client library
horde/socket_client          v3.0.0alpha4              Network socket client library
horde/spellchecker           v3.0.0alpha4              Spellchecking library
horde/stream                 v2.0.0alpha4              PHP streams library
horde/stream_filter          v3.0.0alpha4              PHP stream filters library
horde/stream_wrapper         v3.0.0alpha4              PHP stream wrappers library
horde/support                v3.0.0.1alpha4            Supporting library
horde/template               v3.0.0alpha4              Template library (deprecated)
horde/test                   v3.0.0alpha7              Unit testing library
horde/text_diff              v3.0.0alpha4              Text diff generation and rendering library
horde/text_filter            v3.0.0alpha6              Text filtering and conversion library
horde/text_flowed            v3.0.0alpha4              Flowed text library
horde/timeobjects            v3.0.0alpha5              Time-based objects application
horde/timezone               v2.0.0alpha4              Timezone library
horde/token                  v3.0.0alpha4              Tokens library
horde/translation            v3.0.0alpha2              Translation library
horde/tree                   v3.0.0alpha4              Tree rendering library
horde/turba                  v5.0.0alpha11             Address book application
horde/url                    v3.0.0alpha5              URL library
horde/util                   v3.0.0alpha8              Utility library
horde/vfs                    v3.0.0alpha4              Virtual file system library
horde/view                   v3.0.0alpha6              View pattern library
horde/xml_element            v3.0.0alpha4              XML element library
horde/yaml                   v3.0.0alpha4              YAML parsing and writing library
pear/archive_tar             1.6.0                     Tar file management class with compression support (gzip, bzip2, lzma2)
pear/console_color2          0.1.2                     This Class allows you to easily use ANSI console colors in your application.
pear/console_getopt          v1.4.3                    More info available on: http://pear.php.net/package/Console_Getopt
pear/console_table           v1.3.1                    Library that makes it easy to build console style tables.
pear/net_dns2                v1.5.5                    Native PHP DNS Resolver and Updater Library
pear/pear                    v1.10.16                  This is the definitive source of PEAR's core files.
pear/structures_graph        v1.2.0                    More info available on: http://pear.php.net/package/Structures_Graph
pear/xml_util                v1.4.5                    Methods to work with XML documents
php81_bc/strftime            0.7.6                     Locale-formatted strftime using IntlDateFormatter (PHP 8.1 compatible)
psr/container                2.0.2                     Common Container Interface (PHP FIG PSR-11)
psr/event-dispatcher         1.0.0                     Standard interfaces for event handling.
psr/http-message             1.1                       Common interface for HTTP messages
psr/http-server-handler      1.0.2                     Common interface for HTTP server-side request handler
psr/http-server-middleware   1.0.2                     Common interface for HTTP server-side middleware
psr/log                      3.0.2                     Common interface for logging libraries
sabre/dav                    4.7.0                     WebDAV Framework for PHP
sabre/event                  5.1.7                     sabre/event is a library for lightweight event-based programming
sabre/http                   5.1.12                    The sabre/http library provides utilities for dealing with http requests and responses. 
sabre/uri                    2.3.4                     Functions for making sense out of URIs.
sabre/vobject                4.5.7                     The VObject library for PHP allows you to easily parse and manipulate iCalendar and vCard objects
sabre/xml                    2.2.11                    sabre/xml is an XML library that you may not hate.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions