Part of the EllisLab Network

Bug Report

Undefined index: core error in libraries/Loader.php

Date: 06/05/2007 Severity: Minor
Status: Bogus Reporter: akeemphilbert
Version: 1.5.3
Keywords:

Description

A PHP undefined index:core missing is encountered because $autoload[‘core’] is commented out of the config\autoload.php on line 91.

FIX: uncomment $autoload[‘core’] = array();

Code Sample

/*
| -------------------------------------------------------------------
|  Auto-load Core Libraries
| -------------------------------------------------------------------
|
| DEPRECATED:  Use $autoload['libraries'] above instead.
|
*/
// $autoload['core'] = array();

Expected Result

View without errors

Actual Result

A PHP Error was encountered
Severity: Notice
Message: Undefined index: core
Filename: libraries/Loader.php
Line Number: 826

Comment on Bug Report

Page 1 of 1 pages
Posted by: Derek Jones on 29 June 2007 5:07pm
Derek Jones's avatar

Are you missing an

$autoload['libraries'] = array();

in your autoload.php file?  ‘core’ was deprecated a few versions back, and it would only be referenced if ‘libraries’ is not defined.  And you need to have one or the other.

Name:

Email:

Location:

URL:

Remember my personal information

Notify me of follow-up comments?