@tsteur opened this Pull Request on January 2nd 2018 Member

Should prevent an error like this:

Error: {"message":"Key \"\" for array with keys \"4\" does not exist.","file":"plugins\/Live\/templates\/_profileSummary.twig","line":24}

The visitor log / profile fetches currently all goal conversions and does check whether a goal still exists so not sure why it is needed (in https://github.com/piwik/piwik/blob/3.3.0-b1/plugins/Goals/VisitorDetails.php#L67 ). Where this happened the goal actually exists but the other first 3 goals are deleted.

Here is some output from visitor data and idGoal 4 is definitely set in goals

  array(2) {

It seems to cause an error when there is also an ecommerce action like here where I printed also {{ goals|json_encode }}{{ visitorData.totalConversionsByGoal|json_encode }}:


Actually: This does not fix the problem because it would never show any entry as idgoal=4 cannot be set in Goals so there must be a different fix.

@tsteur commented on January 3rd 2018 Member

Actually, the bug was caused by another plugin.

This Pull Request was closed on January 3rd 2018
Powered by GitHub Issue Mirror