Welcome Guest, Not a member yet? Register   Sign In
IgnitedRecord ob_end_clean() failed to delete buffer
#1

[eluser]Gaz[/eluser]
Hi all,

I'm having a problem with one of my IR models. All of the other models work, but one fails with

Quote:A PHP Error was encountered

Severity: Notice

Message: ob_end_clean() [ref.outcontrol]: failed to delete buffer. No buffer to delete.

Filename: libraries/Exceptions.php

Line Number: 127

This is inside the show_error() function. If I print out the error message and exit, I get

Quote:IgnitedRecord: IR_record: Method _assign_libraries() is not found.
Called on line 1038 in /Users/Gaz/Sites/muzzrace/system/libraries/Loader.php.

I've deleted all of the code in the model, and reduced it to

Code:
<?php
class user extends IgnitedRecord {}
?>

But I still get the same problem. Has anybody else seen anything like this before, or has anybody got any pointers as to what could be wrong? As I mentioned, all my other IR models function perfectly.

Cheers,
Gaz.
#2

[eluser]Gaz[/eluser]
I love it when you post to a forum, then 5 minutes later you solve the problem Smile

The problem was that I had a variable in a subclass called 'user', and was loading a model called 'user' in the parent class. The variable replaced the model, and broke the class at run time.

D'oh!




Theme © iAndrew 2016 - Forum software by © MyBB