As of May 31, 2023, we have updated our Code of Conduct.

Questions tagged [simplexml]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
175 views

xml to extract data in php

Her are my code. I can't able to get full data in array format. Only Url get this php code. Where am I wrong. $sitemap = 'videomap-1.xml'; $context = stream_context_create( array( "...
Vipul Jethva's user avatar
0 votes
0 answers
159 views

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

May I have Help please Warning: simplexml_load_string(): Entity: line 29: parser error : StartTag: invalid element name in /var/www/magento2/vendor/magento/framework/View/Model/Layout/Merge.php on ...
Coriaas's user avatar
  • 17
1 vote
0 answers
55 views

Warning: Missing argument 2 &3 for Varien_Simplexml_Config::loadString() errors in system.log

I am getting these errors in system.log. Magento 1.9.3.6 Warning: Missing argument 2 for Varien_Simplexml_Config::loadString(), called in /home/xxx/public_html/app/code/core/Mage/Core/Model/Config....
Himanshu Agarwal's user avatar
0 votes
0 answers
594 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 ...
The Denster's user avatar
2 votes
1 answer
4k 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 <...
Oktarin's user avatar
  • 117
10 votes
3 answers
5k 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 ...
Singleton's user avatar
1 vote
1 answer
116 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 ...
Singleton's user avatar
7 votes
1 answer
3k 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="...
Jarnail S's user avatar
  • 4,677
3 votes
1 answer
3k 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 ...
Vaibhav Ahalpara's user avatar
0 votes
0 answers
456 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 ...
Sander van Zuidam's user avatar
2 votes
5 answers
10k 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: ...
RoRo's user avatar
  • 143
1 vote
0 answers
536 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->...
Satish Sojitra's user avatar
2 votes
1 answer
68 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 ...
DWils's user avatar
  • 871
0 votes
3 answers
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
Stefan Gregori's user avatar