[eluser]TheLoops[/eluser]
After installing MPTree in an application that uses Matchbox I get this conflict with Matchbox:
Quote:A PHP Error was encountered
Severity: Notice
Message: Undefined property: Tree_admin::$matchbox
Filename: libraries/MY_Config.php
Line Number: 81
Fatal error: Call to a member function argument() on a non-object in …/application/libraries/MY_Config.php on line 81
It would be great if this could be fixed.
Matchbox uses a library called "Loader.php" that replaces CI's native CI_Loader with an enhanced one.
It looks like there is a loading conflict with the loading order between MPTree and Matchbox.
I tried the following fix (rather a dirty hack):
I cut the class from MY_Loader.php and pasted it into Matchbox's Loader.php right after the CI_Loader class declaration.
Then I deleted MY_Loader.php. Works like a charme. But way too dirty to keep it that way, imho.