Please note that the forum isn't realy used anymore.

If you have questions, want support or just simply want to talk to us you can find us on slack.

 

An infinite loop has been detected while getting data from cache for the action "index".

Posting this on the new forum as well:

http://forum.fork-cms.com/discussions/3xx/1034-internal-server-error-analytics-module

`BackendException » Main

Message An infinite loop has been detected while getting data from cache for the action "index". File /var/www/storage/dd67c7d722636d18f1f62533eb978466/rooffood.be/www/backend/modules/analytics/engine/model.php Line 1028 Date Tue, 01 Apr 2014 09:29:37 +0200 URL http://www.rooffood.be/private/nl/analytics/index?token=x2q7sjimvt Referring URL http://www.rooffood.be/private/nl/dashboard/index Request Method GET User-agent Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.154 Safari/537.36

BackendException » Trace

File /var/www/storage/dd67c7d722636d18f1f62533eb978466/rooffood.be/www/backend/modules/analytics/engine/model.php Line 151 Class BackendAnalyticsModel Function redirectToLoadingPage Argument(s) array(1) { [0] => string(5) "index" } File /var/www/storage/dd67c7d722636d18f1f62533eb978466/rooffood.be/www/backend/modules/analytics/actions/index.php Line 163 Class BackendAnalyticsModel Function getAggregates Argument(s) array(2) { [0] => int(1395615600) [1] => int(1396303200) } File /var/www/storage/dd67c7d722636d18f1f62533eb978466/rooffood.be/www/backend/modules/analytics/actions/index.php Line 40 Class BackendAnalyticsIndex Function parseOverviewData File /var/www/storage/dd67c7d722636d18f1f62533eb978466/rooffood.be/www/backend/modules/analytics/actions/index.php Line 24 Class BackendAnalyticsIndex Function parse File /var/www/storage/dd67c7d722636d18f1f62533eb978466/rooffood.be/www/backend/core/engine/action.php Line 83 Class BackendAnalyticsIndex Function execute File /var/www/storage/dd67c7d722636d18f1f62533eb978466/rooffood.be/www/backend/core/engine/backend.php Line 31 Class BackendAction Function execute File /var/www/storage/dd67c7d722636d18f1f62533eb978466/rooffood.be/www/app/routing.php Line 137 Class Backend Function display File /var/www/storage/dd67c7d722636d18f1f62533eb978466/rooffood.be/www/app/Kernel.php Line 537 Class ApplicationRouting Function handleRequest File /var/www/storage/dd67c7d722636d18f1f62533eb978466/rooffood.be/www/index.php Line 45 Class Kernel Function handle Argument(s) HttpFoundation\ParameterBag) (1) { ["parameters":protected] => array(1) { ["token"] => string(10) "x2q7sjimvt" } } ["server"] => object(Symfony\Component\HttpFoundation\ServerBag) (1) { ["parameters":protected] => array(35) { ["REDIRECTSCRIPTURL"] => string(27) "/private/nl/analytics/index" ["REDIRECTSCRIPTURI"] => string(49) "http://www.rooffood.be/private/nl/analytics/index" ["REDIRECTSTATUS"] => string(3) "200" ["SCRIPTURL"] => string(27) "/private/nl/analytics/index" ["SCRIPTURI"] => string(49) "http://www.rooffood.be/private/nl/analytics/index" ["MODREWRITE"] => string(1) "1" ["HTTPHOST"] => string(15) "www.rooffood.be" ["HTTPCONNECTION"] => string(10) "keep-alive" ["HTTPACCEPT"] => string(74) "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,/;q=0.8" ["HTTPUSERAGENT"] => string(109) "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.154 Safari/537.36" ["HTTPREFERER"] => string(49) "http://www.rooffood.be/private/nl/dashboard/index" ["HTTPACCEPTENCODING"] => string(17) "gzip,deflate,sdch" ["HTTPACCEPTLANGUAGE"] => string(23) "en,nl;q=0.8,en-GB;q=0.6" ["HTTPCOOKIE"] => string(221) "PHPSESSID=2jhvk9ba7isn5quegfgsbqp226; jstreeopen=; track=s%3A32%3A%22a9a76518816311b2bf23052c5b931c21%22%3B; ga=GA1.3.1577150731.1396008392; interfacelanguage=s%3A2%3A%22nl%22%3B; interfacelanguage=s%3A2%3A%22nl%22%3B" ["PATH"] => string(28) "/usr/local/bin:/usr/bin:/bin" ["SERVERSIGNATURE"] => string(76) " Apache/2.2.16 (Debian) Server at www.rooffood.be Port 80

" ["SERVERSOFTWARE"] => string(22) "Apache/2.2.16 (Debian)" ["SERVERNAME"] => string(15) "www.rooffood.be" ["SERVERADDR"] => string(13) "81.95.114.164" ["SERVERPORT"] => string(2) "80" ["REMOTEADDR"] => string(12) "212.88.227.2" ["DOCUMENTROOT"] => string(19) "/etc/apache2/htdocs" ["SERVERADMIN"] => string(18) "[no address given]" ["SCRIPTFILENAME"] => string(42) "/var/www/domains/rooffood.be/www/index.php " ["REMOTEPORT"] => string(5) "58123" ["REDIRECTQUERYSTRING"] => string(16) "token=x2q7sjimvt" ["REDIRECTURL"] => string(27) "/private/nl/analytics/index" ["GATEWAYINTERFACE"] => string(7) "CGI/1.1" ["SERVERPROTOCOL"] => string(8) "HTTP/1.1" ["REQUESTMETHOD"] => string(3) "GET" ["QUERYSTRING"] => string(16) "token=x2q7sjimvt" ["REQUESTURI"] => string(44) "/private/nl/analytics/index?token=x2q7sjimvt" ["SCRIPTNAME"] => string(10) "/index.php" ["PHPSELF"] => string(10) "/index.php" ["REQUESTTIME"] => int(1396337376) } } ["files"] => object(Symfony\Component\HttpFoundation\FileBag) (1) { ["parameters":protected] => array(0) { } } ["cookies"] => object(Symfony\Component\HttpFoundation\ParameterBag) (1) { ["parameters":protected] => array(5) { ["PHPSESSID"] => string(26) "2jhvk9ba7isn5quegfgsbqp226" ["jstreeopen"] => string(0) "" ["track"] => string(40) "s:32:"a9a76518816311b2bf23052c5b931c21";" ["ga"] => string(27) "GA1.3.1577150731.1396008392" ["interfacelanguage"] => string(9) "s:2:"nl";" } } ["headers"] => object(Symfony\Component\HttpFoundation\HeaderBag) (2) { ["headers":protected] => array(8) { ["host"] => array(1) { [0] => string(15) "www.rooffood.be" } ["connection"] => array(1) { [0] => string(10) "keep-alive" } ["accept"] => array(1) { [0] => string(74) "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,/;q=0.8" } ["user-agent"] => array(1) { [0] => string(109) "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.154 Safari/537.36" } ["referer"] => array(1) { [0] => string(49) "http://www.rooffood.be/private/nl/dashboard/index" } ["accept-encoding"] => array(1) { [0] => string(17) "gzip,deflate,sdch" } ["accept-language"] => array(1) { [0] => string(23) "en,nl;q=0.8,en-GB;q=0.6" } ["cookie"] => array(1) { [0] => string(221) "PHPSESSID=2jhvk9ba7isn5quegfgsbqp226; jstreeopen=; track=s%3A32%3A%22a9a76518816311b2bf23052c5b931c21%22%3B; ga=GA1.3.1577150731.1396008392; interfacelanguage=s%3A2%3A%22nl%22%3B; interface_language=s%3A2%3A%22nl%22%3B" } } ["cacheControl":protected] => array(0) { } } ["content":protected] => NULL ["languages":protected] => NULL ["charsets":protected] => NULL ["acceptableContentTypes":protected] => NULL ["pathInfo":protected] => NULL ["requestUri":protected] => string(44) "/private/nl/analytics/index?token=x2q7sjimvt" ["baseUrl":protected] => NULL ["basePath":protected] => NULL ["method":protected] => NULL ["format":protected] => NULL ["session":protected] => NULL ["locale":protected] => NULL ["defaultLocale":protected] => string(2) "en" } }

BackendException » Variables

$GET
array(1) { ["token"] => string(10) "x2q7sjimvt" } $
COOKIE
array(5) { ["PHPSESSID"] => string(26) "2jhvk9ba7isn5quegfgsbqp226" ["jstreeopen"] => string(0) "" ["track"] => string(40) "s:32:"a9a76518816311b2bf23052c5b931c21";" ["ga"] => string(27) "GA1.3.1577150731.1396008392" ["interface_language"] => string(9) "s:2:"nl";" } `

Have you tried to clear your cache?

Yep, cleared cache. Also removed Analytics link, added it again.

Marketing tab works on my local installation (using WAMP) by the way. Anything else I can try to make this work?

Can you post some lines of code? I would like to see line 1020 to 1030 from the cached file. What is the version of fork?

Running version 3.6.6.

You mean from the model.php file?

/**
* Redirect to the loading page after checking for infinite loops.
*
* @param string $action The action to check for infinite loops.
* @param array[optional] $extraParameters The extra parameters to append to the redirect url.
*/
public static function redirectToLoadingPage($action, array $extraParameters = array())
{
// get loop counter
$counter = (SpoonSession::exists($action . 'Loop') ? SpoonSession::get($action . 'Loop') : 0);
// loop has run too long - throw exception
if($counter > 2) throw new BackendException('An infinite loop has been detected while getting data from cache for the action "' . $action . '".');
// set new counter
SpoonSession::set($action . 'Loop', ++$counter);
// put parameters into a string
$extraParameters = (empty($extraParameters) ? '' : '&' . http_build_query($extraParameters));
// check if this action is allowed
if(BackendAuthentication::isAllowedAction('loading', 'analytics'))
{
// redirect to loading page which will get the needed data based on the current action
SpoonHTTP::redirect(BackendModel::createURLForAction('loading') . '&redirect_action=' . $action . $extraParameters);
}
}

Did you try to remove all the cookies and restart your browser? It is something with your session which exists twice.

@Jacob. Yes, tried all of that.

If I try the marketing tab in an incognito session it "Fork haalt momenteel de gegevens binnen via Google Analytics." keeps spinning.

When I then leave the page after a while and navigate back to it I get "Internal error. There was an internal error while processing your request. We have been notified of this error and will resolve it shortly. We're sorry for the inconvenience."

Still couldn't find a solution, did someone fixed it? It looks like the same issue as this.

I had the same problem. In my case, there first was another problem (with fetching the google analytics data itself). Because the generation of the Google Analytics cache file was never completed, some files/sessions/cookie-vars used by the analytics-module were never deleted. These files then generated the problem above, which in itself had nothing to do with my first problem.

My solution: - Delete all files in backend/cache/analytics - Start a browser without previous sessions/cookies (f.e. incognito-mode, or another browser) - Go back to the marketing page in For. As soon as you see the graphs appear, the problem should be over.

Possible solutions:

  • Use www in your parameters.yml domain name
  • Only use Classic Analytics feature

Worked for me :)

Comment

The forum is deprecated in favor of our Slack channel, which provides real-time support for your issues.

Join us on Slack here: https://fork-cms.herokuapp.com/