Hey there,
I can't have my feed again since I have updated to 6.2.8.
Before I was in 6.2.1.
When I do a live preview of my feed in views, I have now this message :
warning: Invalid argument supplied for foreach() in .../includes/common.inc on line 1105.
the foreach is about this function :
/**
* Format XML elements.
*
* @param $array
* An array where each item represent an element and is either a:
* - (key => value) pair (value)
* - Associative array with fields:
* - 'key': element name
* - 'value': element contents
* - 'attributes': associative array of element attributes
*
* In both cases, 'value' can be a simple string, or it can be another array
* with the same format as $array itself for nesting.
*/
function format_xml_elements($array) {
$output = '';
foreach ($array as $key => $value) {
if (is_numeric($key)) {
if ($value['key']) {
$output .= ' <'. $value['key'];
if (isset($value['attributes']) && is_array($value['attributes'])) {
$output .= drupal_attributes($value['attributes']);
}
if (isset($value['value']) && $value['value'] != '') {
$output .= '>'. (is_array($value['value']) ? format_xml_elements($value['value']) : check_plain($value['value'])) .'\n";
}
else {
$output .= " />\n";
}
}
}
else {
$output .= ' <'. $key .'>'. (is_array($value) ? format_xml_elements($value) : check_plain($value)) ."\n";
}
}
return $output;
}
Does someone know how to fix this, I have no idea and I don't find a solution on forums?
Thanks a lot
Comments
Comment #1
yoda-fr commentedback to 6.2.6 solves the problem !
Comment #2
dawehnerCould you please export the view, which causes this troubles? Then its easier to help
Comment #3
esmerel commentedNo update for more than 30 days.