#272 - Error thrown navigating to Project Settings
Type Defect
Status Duplicate
Milestone 3.0
Version 3.0
Component -
Priority Normal
Severity Normal
Assigned to -
Reported 11 years ago
Updated 10 years ago
Votes 0
Related tickets
Proposed time
Worked time

What did you do to cause this? Set up a new project, selected the project in AdminCP and clicked settings

What page were you on? /<project-slug>

What PHP and MySQL versions do you run? PHP Version 5.3.10-1ubuntu3.2 MySQL Version 5.5.24-0ubuntu0.12.04.1

Describe the defect: It appears as though the class ProjectSettingsOptionsController cannot extend ProjectSettingsAppController because it hasn't been loaded.

The autoloader loads the ProjectSettingsOptionsController class file correctly but does not load the parent class.

Fatal error: Class 'ProjectSettingsAppController' not found in /var/www/traq/system/controllers/projectsettings/options_controller.php on line 30, referer: http://dev.mpserellis.com/traq/admin Stack trace:, referer: http://dev.mpserellis.com/traq/admin

  1. {main}() /var/www/traq/index.php:0, referer: http://dev.mpserellis.com/traq/admin
  2. Avalon::run() /var/www/traq/index.php:27, referer: http://dev.mpserellis.com/traq/admin
  3. require_once() /var/www/traq/system/avalon/core/avalon.php:83, referer: http://dev.mpserellis.com/traq/admin

If it helps (probably not) I added the following code to the file system\avalon\core\avalon.php and it resolved the issue (after line 62)

    // Load sub namespace app controller
    // added by mpserellis
    if (dirname($controller_file) != APPPATH . "/controllers" && file_exists(dirname($controller_file)."/app_controller.php"))
    {
        require dirname($controller_file)."/app_controller.php";
    }

Ticket History

11 years and 6 months ago by ihenry

It looks for a "ProjectSettings" directory in system/controllers, but the directory is actually called "projectsettings", so it fails on case-sensitive systems. Symlinking system/controllers/ProjectSettings to system/controllers/projectsettings works as a temporary fix.

Jack closed as Duplicate 11 years and 3 months ago