( ! ) Fatal error: Call to undefined method SimpleXMLElement::chidren() in /var/aegir/platforms/drupal-7.26/modules/php/php.module(80) : eval()'d code on line 30
Call Stack
#TimeMemoryFunctionLocation
10.0001236768{main}( )../index.php:0
20.396726158568menu_execute_active_handler( )../index.php:24
30.514927319704drupal_deliver_page( )../menu.inc:532
40.515527320664drupal_deliver_html_page( )../common.inc:2563
50.515627322312drupal_render_page( )../common.inc:2675
60.518427460392block_page_build( )../common.inc:5741
71.098038220128block_get_blocks_by_region( )../block.module:268
81.098038220264block_list( )../block.module:318
91.098038220264_block_render_blocks( )../block.module:686
102.757038791456module_invoke( )../block.module:893
112.757038791976call_user_func_array ( )../module.inc:866
122.757038792312block_block_view( )../module.inc:866
132.757338795152check_markup( )../block.module:245
142.757538805072php_eval( )../filter.module:799
152.757738836128eval( '?>

$feed_url = "http://servizos.meteogalicia.es/rss/predicion/rssLocalidades.action?idZona=36025&dia=-1&request_locale=gl"; $html = ''; // Setup default options. if (!isset($options['item_count'])) { $options['item_count'] = 5; } if (!isset($options['characters'])) { $options['characters'] = 200; } // Initiate curl. $curl = curl_init(); // Setup curl. curl_setopt($curl, CURLOPT_URL,"$feed_url"); curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); curl_setopt($curl, CURLOPT_CONNECTTIMEOUT, 0); // Grab the xml. $xml_file = curl_exec($curl); // Close curl. curl_close($curl); $xml = simplexml_load_string($xml_file); $flag = 0; $html .= $xml; $html .= "--------------------"; foreach ($xml->channel->item as $item) { $html .="
"; $a= $item->chidren('pubDate',True) ; $html .= " date-> ". $a . " d "; $data = $item->description; foreach ($data as $d) { $html .= " ++++++++++++ ".$d." ++++++++++++++++++++ "; } if (!$flag){ $flag = 1; break;} $description = strip_tags($item->description); if ($options['characters'] != 0) { $description = substr($description, 0, $options['characters']) . '...'; } if ($options['item_count'] > 0) { $html .= "
{$item->title}

$description

"; } $options['item_count']--; } // Return the rendered rss feed html. return '
' . $html . '
'; ?>'
)
../php.module:80