Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

An error occurred while invoking the map callback #672

inoui opened this Issue Nov 6, 2012 · 3 comments


None yet
2 participants

inoui commented Nov 6, 2012

I've been having a strange issue updating to latest revision with all my lithum projects.

Warning: array_map() [function.array-map]: An error occurred while invoking the map callback in lithium/data/Model.php on line 618

Then a fatal error happens on all controller.

Fatal error: Class 'app\models\Analytics' not found in app/controllers/HomeController.php on line 43


nateabele commented Nov 6, 2012

Try clearing your app cache (either APC or file). The array_map() error occurs when the closure you pass (probably to a map() or each() call) throws an exception. Put a try/catch block inside the closure to debug the issue.

@nateabele nateabele closed this Nov 6, 2012

inoui commented Nov 9, 2012

Hey Nate,
Actually it seems the merge with data branch changed a lot and break a lot with my code.
It seems that now, the model source name is not automatically set up right. I have a model Event that extends li3_behaviors and source is set to Model instead of Events... maybe there is something to do with my models now.


nateabele commented Nov 10, 2012

It's probably something with li3_behaviors that needs to be updated. I recommend rolling back to 0.11.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment