I'm getting an error during the XML parsing in the function unitsapi_xml_cache.

Notice: Undefined offset: 0 in unitsapi_xml_cache() (line 168 of sites/SITENAME/modules/unitsapi/unitsapi.module).

I think this is because the SimpleXML parsing system has changed in PHP 5.5. When the element is cast to an array, the value of the element isn't stored as array index 0. Instead, the array only contains the attributes for the element. The element needs to be cast to a string to get the value.

Comments

thirdender’s picture

StatusFileSize
new715 bytes

Patch attached, hopefully will make what I was trying to say clearer :-p

elfin_john’s picture

Thanks for the patch; this appears to be working fine for me at the moment.

k.dani’s picture

Status: Active » Reviewed & tested by the community

The patch works like a charm. Thanks!

markus_petrux’s picture

Works here as well. Thanks!

klokie’s picture

works for me too!

delta’s picture

Works for me ! Thanks