When this is triggered in my extension, I get this error:

A PHP Error was encountered

Severity: Notice

Message: Undefined property: stdClassàK´cðËÛ::$flashdata

Filename: libraries/Functions.php

Line Number: 381
A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at /Users/Chad/Repositories/hhc/site/system/codeigniter/system/core/Exceptions.php:170)

Filename: libraries/Functions.php

Line Number: 414

I am not using flashdata, don't care about it. Any reason this error is happening?

2 Answers 2


Is that strange encoding actually displaying on the stdClass undefined property?

Which hook are you using to call the extension? Something may not be setup on the object yet...

Just out of curiousity, did you try ee()->functions->redirect('account/not-found');

  • Or you can just use standard PHP: header('location: /account/not-found'); exit(); Oct 14, 2014 at 18:49
  • David I went with this basic PHP suggestion. No real time to waste on this project so I'll go with that and not worry about the cause right now. Oct 14, 2014 at 20:19

If you can't get that to work consider using Codeigniter's URL Helper. See redirect() at bottom of page.

For example:

public function sessions_end()

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.