PLEASE help me figure out why this error is appearing. The passed in variable to the foreach() method is an ARRAY and it’s type (reported by var_dump() and gettype() is an ARRAY)
Error:
[i]There is an error. Please report the message and full backtrace in the Piwik forums (please do a Search first as it might have been reported already!).
Warning: Invalid argument supplied for foreach() in /piwik/plugins/Funnels/Funnels.php on line 659[/i]
Passed in Array:
[i]array(6) {
[0]=>
array(15) {
[“idsite”]=>
string(3) “247”
[“idfunnel”]=>
string(1) “1”
[“idstep”]=>
string(1) “1”
[“name”]=>
string(11) “Browse Shop”
[“match_attribute”]=>
string(0) “”
[“url”]=>
string(27) “browseOnlineShop_ClickEvent”
[“pattern_type”]=>
string(0) “”
[“case_sensitive”]=>
string(1) “0”
[“deleted”]=>
string(1) “0”
[“nb_actions”]=>
int(0)
[“nb_next_step_actions”]=>
int(0)
[“percent_next_step_actions”]=>
int(0)
[“idaction_url”]=>
array(0) {
}
[“idaction_url_ref”]=>
array(0) {
}
[“idaction_url_next”]=>
array(0) {
}
}
[1]=>
array(15) {
[“idsite”]=>
string(3) “247”
[“idfunnel”]=>
string(1) “1”
[“idstep”]=>
string(1) “2”
[“name”]=>
string(8) “Add Item”
[“match_attribute”]=>
string(0) “”
[“url”]=>
string(20) “addToCart_ClickEvent”
[“pattern_type”]=>
string(0) “”
[“case_sensitive”]=>
string(1) “0”
[“deleted”]=>
string(1) “0”
[“nb_actions”]=>
int(0)
[“nb_next_step_actions”]=>
int(0)
[“percent_next_step_actions”]=>
int(0)
[“idaction_url”]=>
array(0) {
}
[“idaction_url_ref”]=>
array(0) {
}
[“idaction_url_next”]=>
array(0) {
}
}
[2]=>
array(15) {
[“idsite”]=>
string(3) “247”
[“idfunnel”]=>
string(1) “1”
[“idstep”]=>
string(1) “3”
[“name”]=>
string(9) “View Cart”
[“match_attribute”]=>
string(0) “”
[“url”]=>
string(19) “viewCart_ClickEvent”
[“pattern_type”]=>
string(0) “”
[“case_sensitive”]=>
string(1) “0”
[“deleted”]=>
string(1) “0”
[“nb_actions”]=>
int(0)
[“nb_next_step_actions”]=>
int(0)
[“percent_next_step_actions”]=>
int(0)
[“idaction_url”]=>
array(0) {
}
[“idaction_url_ref”]=>
array(0) {
}
[“idaction_url_next”]=>
array(0) {
}
}
[3]=>
array(15) {
[“idsite”]=>
string(3) “247”
[“idfunnel”]=>
string(1) “1”
[“idstep”]=>
string(1) “4”
[“name”]=>
string(9) “Check Out”
[“match_attribute”]=>
string(0) “”
[“url”]=>
string(19) “checkOut_ClickEvent”
[“pattern_type”]=>
string(0) “”
[“case_sensitive”]=>
string(1) “0”
[“deleted”]=>
string(1) “0”
[“nb_actions”]=>
int(0)
[“nb_next_step_actions”]=>
int(0)
[“percent_next_step_actions”]=>
int(0)
[“idaction_url”]=>
array(0) {
}
[“idaction_url_ref”]=>
array(0) {
}
[“idaction_url_next”]=>
array(0) {
}
}
[4]=>
array(15) {
[“idsite”]=>
string(3) “247”
[“idfunnel”]=>
string(1) “1”
[“idstep”]=>
string(1) “5”
[“name”]=>
string(15) “Approve Summary”
[“match_attribute”]=>
string(0) “”
[“url”]=>
string(25) “approveSummary_ClickEvent”
[“pattern_type”]=>
string(0) “”
[“case_sensitive”]=>
string(1) “0”
[“deleted”]=>
string(1) “0”
[“nb_actions”]=>
int(0)
[“nb_next_step_actions”]=>
int(0)
[“percent_next_step_actions”]=>
int(0)
[“idaction_url”]=>
array(0) {
}
[“idaction_url_ref”]=>
array(0) {
}
[“idaction_url_next”]=>
array(0) {
}
}
[5]=>
array(15) {
[“idsite”]=>
string(3) “247”
[“idfunnel”]=>
string(1) “1”
[“idstep”]=>
string(1) “6”
[“name”]=>
string(23) “Accept Terms of Service”
[“match_attribute”]=>
string(0) “”
[“url”]=>
string(20) “acceptToS_ClickEvent”
[“pattern_type”]=>
string(0) “”
[“case_sensitive”]=>
string(1) “0”
[“deleted”]=>
string(1) “0”
[“nb_actions”]=>
int(0)
[“nb_next_step_actions”]=>
int(0)
[“percent_next_step_actions”]=>
int(0)
[“idaction_url”]=>
array(0) {
}
[“idaction_url_ref”]=>
array(0) {
}
[“idaction_url_next”]=>
array(0) {
}
}
}
NULL
[/i]