Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [simplexml]

The tag has no usage guidance.

0
votes
0answers
36 views

Warning: simplexml_load_string(): Entity: line 7: parser error

Just upgraded from 1.9.3 to 1.9.4, and now this is filling up system.log Warning: simplexml_load_string(): Entity: line 7: parser error : XML declaration allowed only at the start of the document ...
2
votes
1answer
190 views

How to parse XML - simplexml_load_string returns error “parser error : StartTag: invalid element name”

I am trying to parse XML to array in my custom module in Magento 2.2.7. Community version (free) I am loading Helper\Data through Block element and this is "working". This is my Helper\Data.php <...
10
votes
3answers
2k views

XML Parsing Errors

I believe I have a syntax error or something? I'm confident it's either something to do with xml or syntax. Everything appears to be in order when i look into the file. This error is dealing with the ...
1
vote
1answer
91 views

I wrote a shell script to remove old files inside /shell [closed]

I would like to move all files that are older than 24 hours. Currently I'm just deleting them. When I'm in the shell folder and I try to run the script in terminal: php clean_fc_export.php i get the ...
7
votes
1answer
1k views

Add text within block via xml

I want to add static text above the price. I tried to add as explained in the thread (Magento 2: How to add text within container via XML) but it didn't work for me. <referenceContainer name="...
3
votes
1answer
2k views

Warning: simplexml_load_string(): Entity: line 88: parser error

I am having problem with Magento log There are many log that say simplexml_load_string (): parser error. I have spend 4H to find the issue and finally got the issue. Issue with Magento cache if ...
0
votes
0answers
420 views

Change app/etc/local.xml programmatically (simplexml?)

does anybody know the best way to change a node in local.xml within a custom module? Is there functionality within magento I can use or do I need to focus on a simplexml function in php? Currenly I ...
2
votes
5answers
6k views

Cron not running because of simplexml_load_string error

I have some trouble receiving order emails so i debuged a bit. Installed AOE Scheduler Found some issues with the cron so i checked this. Now its running but keeps sending me the following errors: ...
1
vote
0answers
348 views

how to Duplicate xml node using Varien_Simplexml_Element in magento [closed]

I am creating xml file programmatically. Where I am converting array to xml using following code: $xml = new Varien_Simplexml_Element('<MagentoOrder></MagentoOrder>'); $this->...
2
votes
1answer
56 views

How do I view the XML structure of Magento?

As I understand, Magento meshes the layout and config xml into a Simplexml object. Does anyone know where this object gets stored? I want to view the entire xml of Magento so I can find any model ...
0
votes
3answers
4k views

Call to a member function extend() on a non-object

Anybody know a fix for that error? Never saw this one! Fatal error: Call to a member function extend() on a non-object in /var/www/..../..../lib/Varien/Simplexml/Config.php on line 600