PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Which is showing us that the object isn't being properly serialized for some reason. If you remove the magic __sleep() function, everything serializes correctly:
According to the PHP manual reference on 'Magic Methods', it would appear as though you haven't defined __sleep() properly. It is expected to return an array. Try: