'Failed to get the assets due to an empty XML'

Hi all,


On my new MSM installation I have errors like this in error.log:

    
      thrown in /usr/local/strony/midgard/core/lib/asset_map/asset_map.inc on line 1438
    [31-Aug-2011 07:46:41] PHP Fatal error:  Uncaught exception 'Exception' with message 'Failed to get the assets due to an empty XML' in /usr/local/strony/midgard/core/lib/asset_map/asset_map.inc:1438
    Stack trace:
    #0 /usr/local/strony/midgard/core/lib/asset_map/asset_map.inc(591): Asset_Map->_getAssets(Object(SimpleXMLElement))
    #1 /usr/local/strony/midgard/core/include/mysource.inc(1664): Asset_Map->process(NULL)
    #2 /usr/local/strony/midgard/core/include/mysource.inc(422): MySource->_processGlobalActions()
    #3 /usr/local/strony/midgard/core/include/init.inc(255): MySource->init()
    #4 /usr/local/strony/midgard/core/web/index.php(28): require_once('/usr/local/stro...')
    #5 {main}
      thrown in /usr/local/strony/midgard/core/lib/asset_map/asset_map.inc on line 1438


This is MSM 4.2.2 on debian 6.
At this moment in msm I have only ~4k assets.

php/pear xml info:

    
    libxml
    SimpleXML
    xml
    xmlreader
    xmlwriter
PEAR
XML_HTMLSax            2.1.2   stable
XML_Parser             1.3.4   stable
XML_Util               1.2.1   stable


What can I do now with this errors?



Regards

Arek

[quote]
Hi all,



On my new MSM installation I have errors like this in error.log:

    
      thrown in /usr/local/strony/midgard/core/lib/asset_map/asset_map.inc on line 1438
    [31-Aug-2011 07:46:41] PHP Fatal error:  Uncaught exception 'Exception' with message 'Failed to get the assets due to an empty XML' in /usr/local/strony/midgard/core/lib/asset_map/asset_map.inc:1438
    Stack trace:
    #0 /usr/local/strony/midgard/core/lib/asset_map/asset_map.inc(591): Asset_Map->_getAssets(Object(SimpleXMLElement))
    #1 /usr/local/strony/midgard/core/include/mysource.inc(1664): Asset_Map->process(NULL)
    #2 /usr/local/strony/midgard/core/include/mysource.inc(422): MySource->_processGlobalActions()
    #3 /usr/local/strony/midgard/core/include/init.inc(255): MySource->init()
    #4 /usr/local/strony/midgard/core/web/index.php(28): require_once('/usr/local/stro...')
    #5 {main}
      thrown in /usr/local/strony/midgard/core/lib/asset_map/asset_map.inc on line 1438


This is MSM 4.2.2 on debian 6.
At this moment in msm I have only ~4k assets.

php/pear xml info:

    
    libxml
    SimpleXML
    xml
    xmlreader
    xmlwriter
PEAR
XML_HTMLSax            2.1.2   stable
XML_Parser             1.3.4   stable
XML_Util               1.2.1   stable


What can I do now with this errors?



Regards

Arek

[/quote]



Hi Arek,



I think it ships with PHP 5.3.X which is where the issue arises from. I was randomly able to see it when I was testing other things but couldnt find a proper way to replicate it. Can you tell us what are you trying to do here when this error comes up? might help me in establishing some consistency.



Regards,



Ash

[quote]
Hi Arek,



I think it ships with PHP 5.3.X which is where the issue arises from. I was randomly able to see it when I was testing other things but couldnt find a proper way to replicate it. Can you tell us what are you trying to do here when this error comes up? might help me in establishing some consistency.



Regards,



Ash

[/quote]

Hi Ash,



Yes, it is PHP 5.3.

  • 5.3.3-7+squeeze3



    I have this error while I login as backend user.

    Now I made some test and error was when I did:

    site > Details > Special Page Links > Index > Show in Asset Map

    I click on "Show in Asset Map" ico.



    I'm confused - for some assets/sites I have this error for another not.

    All tested assets are exist.



    I checked also pgsql and apache logs but there are none info.



    Regards

    Arek

[quote]
Hi Ash,



Yes, it is PHP 5.3.

  • 5.3.3-7+squeeze3



    I have this error while I login as backend user.

    Now I made some test and error was when I did:

    site > Details > Special Page Links > Index > Show in Asset Map

    I click on "Show in Asset Map" ico.



    I'm confused - for some assets/sites I have this error for another not.

    All tested assets are exist.



    I checked also pgsql and apache logs but there are none info.



    Regards

    Arek

    [/quote]



    Yep, see this is where the issue is. I wasn't able to get a particular path to replicate the issue so after some time i gave up thinking it is just system particular. But will surely look into this issue again as you can see it happening too.



    Will keep the thread posted with same.



    Cheers Arek :slight_smile:





    Ash

[quote]
Yep, see this is where the issue is. I wasn’t able to get a particular path to replicate the issue so after some time i gave up thinking it is just system particular. But will surely look into this issue again as you can see it happening too.



Will keep the thread posted with same.



Cheers Arek :slight_smile:





Ash

[/quote]



Okie so this was indeed a bug which has now been fixed. Check it here.