Skip to content

Instantly share code, notes, and snippets.

@rvsjoen
Created October 30, 2011 21:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rvsjoen/1326440 to your computer and use it in GitHub Desktop.
Save rvsjoen/1326440 to your computer and use it in GitHub Desktop.
Infinite loop bug
diff --git index.php index.php
diff --git libraries/joomla/application/application.php libraries/joomla/application/application.php
index 9faf1ff..710ed45 100644
--- libraries/joomla/application/application.php
+++ libraries/joomla/application/application.php
@@ -196,6 +196,9 @@ class JApplication extends JObject
{
jimport('joomla.plugin.helper');
+ // If we get this far, we can enable the custom error page handler
+ JError::setErrorHandling(E_ERROR, 'callback', array('JError', 'customErrorPage'));
+
// Set the language in the class.
$config = JFactory::getConfig();
diff --git libraries/joomla/error/error.php libraries/joomla/error/error.php
index 978899b..a956945 100644
--- libraries/joomla/error/error.php
+++ libraries/joomla/error/error.php
@@ -58,7 +58,7 @@ abstract class JError
protected static $handlers = array(
E_NOTICE => array('mode' => 'message'),
E_WARNING => array('mode' => 'message'),
- E_ERROR => array('mode' => 'callback', 'options' => array('JError', 'customErrorPage'))
+ E_ERROR => array('mode' => 'die')
);
protected static $stack = array();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment