user198003
user198003

Reputation: 11151

Helper class sessionHelper could not be found

When trying to run CakePHP based application I'm getting following error:

2014-01-25 11:46:21 Error: [MissingHelperException] Helper class sessionHelper could not be found.
Exception Attributes: array (
  'class' => 'sessionHelper',
  'plugin' => false,
)

It occurred when I copied CakePHP application to production server. I never had error like this in any of previous developed CakePHP applications.

Just to mention that Session helper is loaded in AppController. PHP version on server is 5.3.10.

Upvotes: 2

Views: 3853

Answers (2)

betatester07
betatester07

Reputation: 691

Include SessionHelper as cornelb said. And be careful when calling Session helper manually, just call it with capital 'S':

$this->Session->read('Auth.User');

Upvotes: 0

cornelb
cornelb

Reputation: 6066

Try to include SessionHelper instead of sessionHelper

public $helpers = array('Session');

If the production server is on unix, this is important.

Upvotes: 7

Related Questions