{"issue":{"state":"open","created_at":"2011-11-28T16:17:40Z","updated_at":"2011-11-28T16:17:45Z","user":{"gravatar_id":"9994df352157ae1b778b792744bdbf05","id":1073273,"url":"https://api.github.com/users/aschempp","avatar_url":"https://secure.gravatar.com/avatar/9994df352157ae1b778b792744bdbf05?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"aschempp"},"comments":4,"body":"Szenario:\n- output is cached\n- an extension using replaceInsertTags hook is installed\n- custom inserttag is used\n\nTYPOlight fails, because:\n1. index.php calls outputFromCache\n2. outputFromCache tries to load hook class\n3. this triggers the Controller::classFileExists\n4. classFileExists calls $this->Config->getActiveModules to find the class\n5. Controller->Config does not exist\n6. PHP generates a fatal error because it's trying to call a function of a non-existing class.\n\n--- _Originally created on October 1st, 2008, at 12:29pm (ID 152)_","assignee":{"gravatar_id":"87d2e5aefadcb310f9155df28c2b3582","id":1192057,"url":"https://api.github.com/users/leofeyer","avatar_url":"https://secure.gravatar.com/avatar/87d2e5aefadcb310f9155df28c2b3582?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"leofeyer"},"id":2369131,"labels":[{"name":"Defect","color":"bd2c00","url":"https://api.github.com/repos/contao/test/labels/Defect"},{"name":"frontend","color":"e6e6e6","url":"https://api.github.com/repos/contao/test/labels/frontend"}],"number":152,"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"title":"PHP Fatal error when using replaceInsertTags Hook in outputFromCache","closed_at":null,"html_url":"https://github.com/contao/test/issues/152","url":"https://api.github.com/repos/contao/test/issues/152","milestone":{"state":"open","created_at":"2011-11-28T15:58:41Z","due_on":null,"closed_issues":24,"creator":{"gravatar_id":"87d2e5aefadcb310f9155df28c2b3582","id":1192057,"url":"https://api.github.com/users/leofeyer","avatar_url":"https://secure.gravatar.com/avatar/87d2e5aefadcb310f9155df28c2b3582?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"leofeyer"},"number":4,"description":"TYPOlight 2.6.2 (maintenance release)","title":"2.6.2","url":"https://api.github.com/repos/contao/test/milestones/4","open_issues":1}},"action":"created","comment":{"created_at":"2011-11-28T16:17:44Z","updated_at":"2011-11-28T16:17:44Z","user":{"gravatar_id":"87d2e5aefadcb310f9155df28c2b3582","id":1192057,"url":"https://api.github.com/users/leofeyer","avatar_url":"https://secure.gravatar.com/avatar/87d2e5aefadcb310f9155df28c2b3582?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"leofeyer"},"body":"Ok, so I am going to change line 1358 to\n\n```php\n<?php\nif (!$blnCache && array_key_exists('replaceInsertTags', ...\n?>\n```\n\nThen, the hook will not be triggered if the page is loaded from cache.\n\n--- _Originally created on October 3rd, 2008, at 09:44pm_","id":2899538,"url":"https://api.github.com/repos/contao/test/issues/comments/2899538"}}