Call to undefined method Model::insert()
-
DeveloperChris
I have after some more checking I realised we are using the wrong version of PHP 5.1 instead of 5.2.4
perhaps the config scripts should have a version check and die on a version mismatch
DC
-
Jamie Rumbelow
This has happened with me too, I changed the call to Model::insert(); to Model::wrappedInsert(); and it ran fine. It was because the RecessReflectorPackage was overwriting insert(); directly, so when !Wrappable tried to wrap it, the method already existed and it failed.
I don't quite know what to do with this - I think changing RecessReflectorPackage::insert() method to wrappedInsert() should provide the same functionality, but why it's failing on some systems and not on others I'm not sure.
-
Kris Jordan
Thanks for this bug report! We're moving all bugs from lighthouse to github (as you probably noticed, it being separated so far from the codebase made it easy to attract spider webs).
Thanks for looking into this Jamie. You've called out a piece of code (insert in RecessReflectorPackage) that needs updating. Great find, expect a commit and push soon.
I've teased out two tickets from this ticket that are now moved to Github:
Call to undefined method Model::insert
http://github.com/recess/recess/issues#issue/9Checking of PHP Version to avoid pains
http://github.com/recess/recess/issues#issue/10 -
Kris Jordan
- State changed from new to hold
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.