Skip to content

ErrorController redeclaration #899

@elbenjaz

Description

@elbenjaz

Hi all,

At this URL:
{Base URL}/error/whatever

The following error will appear:
"Fatal error: Cannot declare class ErrorController, because the name is already in use..." (due a double "require" in application/core/Application.php at L37 and L51).

My suggestion for fixing this issue is to change L51 in application/core/Application.php:
(before) require Config::get('PATH_CONTROLLER') . 'ErrorController.php';
(after)require_once Config::get('PATH_CONTROLLER') . 'ErrorController.php';

Greetings

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions