slic535 Posted August 20, 2012 Share Posted August 20, 2012 i turned off my register globals and got this error. what is it? PHP Fatal error: Call to a member function select() on a non-object in /home/slic535/public_html/classes/seo.class.php on line 225 Quote Link to comment Share on other sites More sharing options...
bsmither Posted August 20, 2012 Share Posted August 20, 2012 This error was noticed in CC511 and reported fixed in CC512. The report says: ============== When PHP is shutting down, registered shutdown functions and destructors are executed. The Session destructor calls _close(). Session->_close() calls the function currentPage(). Near the bottom of currentPage(), a test is made for a non-empty $_GET['seo_path']. At this point, the test evaluates true and SEO::getInstance()->getItem($_GET['seo_path'], true) is called. SEO->getItem() queries the database. BUT! The database instance has gone away and PHP throws an error: Fatal error: Call to a member function select() on a non-object in classesseo.class.php on line 225 PHP finally "shuts down" only because it crashed. =============== Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.