I'm using the standard Facebook PHP SDK along with Zend/Db and PDO, and I'm getting this error:
Fatal error: Uncaught exception 'PDOException' with message 'You cannot serialize or unserialize PDO instances' in /home/myproject/public_html/lib/Facebook/Facebook.php:49 Stack trace: #0 [internal function]: PDO->__wakeup() #1 /home/myproject/public_html/lib/Facebook/Facebook.php(49): session_start() #2 /home/myproject/public_html/lib/myproject/Core.php(37): Facebook\Facebook->__construct(Array) #3 /home/myproject/public_html/init.php(29): myproject\Core->__construct(Object(stdClass)) #4 /home/myproject/public_html/post.php(2): require('/home/myproject/pub...') #5 {main} thrown in /home/myproject/public_html/lib/Facebook/Facebook.php on line 49
I am using PDO, but as far as I know, I'm not serializing any PDO objects, and I don't see anything in that part of the Facebook PHP SDK that even uses PDO.
I know this is a bit vague, but I've looked in all the files referenced and I can't find the problem. Has anyone seen errors like this before when working with the Facebook SDK? Any suggestions what the problem might be?