{"action":"created","issue":{"url":"https://api.github.com/repos/cubecart/v6/issues/304","labels_url":"https://api.github.com/repos/cubecart/v6/issues/304/labels{/name}","comments_url":"https://api.github.com/repos/cubecart/v6/issues/304/comments","events_url":"https://api.github.com/repos/cubecart/v6/issues/304/events","html_url":"https://github.com/cubecart/v6/issues/304","id":59586372,"number":304,"title":"Call to Member on a Non-Object","user":{"login":"bhsmither","id":4073092,"avatar_url":"https://avatars.githubusercontent.com/u/4073092?v=3","gravatar_id":"","url":"https://api.github.com/users/bhsmither","html_url":"https://github.com/bhsmither","followers_url":"https://api.github.com/users/bhsmither/followers","following_url":"https://api.github.com/users/bhsmither/following{/other_user}","gists_url":"https://api.github.com/users/bhsmither/gists{/gist_id}","starred_url":"https://api.github.com/users/bhsmither/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bhsmither/subscriptions","organizations_url":"https://api.github.com/users/bhsmither/orgs","repos_url":"https://api.github.com/users/bhsmither/repos","events_url":"https://api.github.com/users/bhsmither/events{/privacy}","received_events_url":"https://api.github.com/users/bhsmither/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/cubecart/v6/labels/invalid%20/%20unreproducible","name":"invalid / unreproducible","color":"e6e6e6"}],"state":"closed","locked":false,"assignee":{"login":"abrookbanks","id":4520803,"avatar_url":"https://avatars.githubusercontent.com/u/4520803?v=3","gravatar_id":"","url":"https://api.github.com/users/abrookbanks","html_url":"https://github.com/abrookbanks","followers_url":"https://api.github.com/users/abrookbanks/followers","following_url":"https://api.github.com/users/abrookbanks/following{/other_user}","gists_url":"https://api.github.com/users/abrookbanks/gists{/gist_id}","starred_url":"https://api.github.com/users/abrookbanks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abrookbanks/subscriptions","organizations_url":"https://api.github.com/users/abrookbanks/orgs","repos_url":"https://api.github.com/users/abrookbanks/repos","events_url":"https://api.github.com/users/abrookbanks/events{/privacy}","received_events_url":"https://api.github.com/users/abrookbanks/received_events","type":"User","site_admin":false},"milestone":null,"comments":3,"created_at":"2015-03-03T02:35:32Z","updated_at":"2015-03-09T15:51:08Z","closed_at":"2015-03-09T15:51:08Z","body":"\\classes\\seo.class.php on line 726\r\n`if($GLOBALS['cache']->read($cache_id)) {`\r\n\r\nHere is an XDEBUG trace:\r\n```\r\n1. {main}() L:\\WebServer\\htdocs-CC600b6\\index.php:0\r\n2. include() L:\\WebServer\\htdocs-CC600b6\\index.php:20\r\n3. SEO::getInstance() L:\\WebServer\\htdocs-CC600b6\\controllers\\controller.index.inc.php:48\r\n4. SEO->__construct() L:\\WebServer\\htdocs-CC600b6\\classes\\seo.class.php:305\r\n5. Debug->__destruct() L:\\WebServer\\htdocs-CC600b6\\classes\\debug.class.php:0\r\n6. Debug->display() L:\\WebServer\\htdocs-CC600b6\\classes\\debug.class.php:138\r\n7. currentPage() L:\\WebServer\\htdocs-CC600b6\\classes\\debug.class.php:318\r\n8. SEO::getInstance() L:\\WebServer\\htdocs-CC600b6\\includes\\functions.inc.php:234\r\n9. SEO->__construct() L:\\WebServer\\htdocs-CC600b6\\classes\\seo.class.php:305\r\n10. SEO::_checkModRewrite() L:\\WebServer\\htdocs-CC600b6\\classes\\seo.class.php:92\r\n```\r\nIt seems that, during shutdown, Debug->display() wants to get the current page. But several classes have already been destroyed. The function currentPage() calls SEO - which has already been destroyed - so when SEO is getting instantiated again, SEO::_checkModRewrite is called which calls for Cache...\r\n\r\nBoom!"},"comment":{"url":"https://api.github.com/repos/cubecart/v6/issues/comments/77880158","html_url":"https://github.com/cubecart/v6/issues/304#issuecomment-77880158","issue_url":"https://api.github.com/repos/cubecart/v6/issues/304","id":77880158,"user":{"login":"abrookbanks","id":4520803,"avatar_url":"https://avatars.githubusercontent.com/u/4520803?v=3","gravatar_id":"","url":"https://api.github.com/users/abrookbanks","html_url":"https://github.com/abrookbanks","followers_url":"https://api.github.com/users/abrookbanks/followers","following_url":"https://api.github.com/users/abrookbanks/following{/other_user}","gists_url":"https://api.github.com/users/abrookbanks/gists{/gist_id}","starred_url":"https://api.github.com/users/abrookbanks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abrookbanks/subscriptions","organizations_url":"https://api.github.com/users/abrookbanks/orgs","repos_url":"https://api.github.com/users/abrookbanks/repos","events_url":"https://api.github.com/users/abrookbanks/events{/privacy}","received_events_url":"https://api.github.com/users/abrookbanks/received_events","type":"User","site_admin":false},"created_at":"2015-03-09T15:51:08Z","updated_at":"2015-03-09T15:51:08Z","body":"I can't reproduce this at all. Do you know a way to reliably reproduce this?"}}