First, we should probably turn on display_errors to see if we can get any more debugging info.
Edit /.htaccess
change this:
php_value display_errors 0
to
php_value display_errors 1
Secondly, I wonder if it is somehow in an infinite loop. I assume that the recurrent loading occured with my second example of my previous post. If that's the case, then it is redirecting to the errorAction function. Perhaps this errorAction function is somehow redirecting back to the indexAction, ad infinitum.
To test this theory, use the following:
public function indexAction()
{
if (!$this->_hasValidPHPCliPath()) {
echo 'Testing';
exit;
$this->redirect->goto('error');
}
If it show's 'Testing' in this case, then it will try to redirect to the errorAction() function located in the same file.
If that's the case, we need to go see if what happens in the errorAction() function.
Remove the echo and exit() from the indexAction() function, and then change the errorAction() function to this:
public function errorAction()
{
if ($this->_hasValidPHPCliPath()) {
echo 'Got to ErrorAction';
exit;
$this->redirect->goto('index');
}
If you see 'Got to ErrorAction', this means that the code will try to goto the indexAction, thereby making an infinite loop between indexAction and errorAction, which might explain the infinite loading.
If that's the case, you might try editing the background.php.path setting in application/config/config.ini
You will to put in the path to your php-cli.
To get this, you can try to type: "which php" in your terminal, or you might need to ask your system admin.
Let me know if this helps.