Warning: SimpleXMLElement::__construct(): namespace error : Namespace prefix m for IsDefaultEntityContainer on EntityContainer is not defined in odata_xml2array2() (line 186 of ...... \sites\all\modules\necessary\odata\odata_metadata.inc).
Warning: SimpleXMLElement::__construct(): dm"> Warning: SimpleXMLElement::__construct(): ^ in odata_xml2array2() (line 186 of .......\sites\all\modules\necessary\odata\odata_metadata.inc).

But I can see my Available collection sets (it's warning not error) I select one and later when I create a view nothing happens, NO DATA in output of the view. But in View I see all my attributes from xml, I can create Fields.

also try it with http://services.odata.org/Northwind/Northwind.svc to test same error

Comments

sfcamil’s picture

Sorry I don’t know what happens with this editor but my text was cut …

•	Warning: SimpleXMLElement::__construct(): namespace error : Namespace prefix m for IsDefaultEntityContainer on EntityContainer is not defined in odata_xml2array2() (line 186 of … sites\all\modules\necessary\odata\odata_metadata.inc).
•	Warning: SimpleXMLElement::__construct(): dm"> <EntityContainer Name="GepsFranceEntities" m:IsDefaultEntityContainer="true" in odata_xml2array2() (line 186 of … \sites\all\modules\necessary\odata\odata_metadata.inc).
•	Warning: SimpleXMLElement::__construct(): ^ in odata_xml2array2() (line 186 of …. \sites\all\modules\necessary\odata\odata_metadata.inc)

But I see my Available collection sets, I select one and when I create a view nothing happens. NO DATA in view output. But in View creation I see all my attributes from xml, I can create Fields.

I also try it http://services.odata.org/Northwind/Northwind.svc to test same error

sfcamil’s picture

For me just add

// sfc: eliminate m: from odata response. SimpleXMLElement don't like it.
    $text_xml = preg_replace('/m:/', '', $text_xml);

in odata_metadata.inc in function odata_xml2array2 before ligne
$all_obj = new SimpleXMLElement($text_xml);

and it's work.

apanag’s picture

Issue summary: View changes
Status: Active » Fixed

Has been fixed in the latest development version.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.