Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Add Shopping Cart Rule now Error Page
 
breastfed
Sr. Member
 
Avatar
Total Posts:  194
Joined:  2007-09-24
Münster - Germany
 

Hello

i add a Shopping Cart Rule, than i logged in as a Customer.

My PHP Version: 5.2.6

Now i have the following Error:

WarningSimpleXMLElement::addAttribute() [simplexmlelement.addattribute]Attribute already exists  in /srv/www/vhosts/aerofunk.de/httpdocs/app/code/core/Mage/Core/Model/Layout.php on line 165
Trace
:
#0 [internal function]: mageCoreErrorHandler(2, 'SimpleXMLElemen...', '/srv/www/vhosts...', 165, Array)
#1 /srv/www/vhosts/aerofunk.de/httpdocs/app/code/core/Mage/Core/Model/Layout.php(165): SimpleXMLElement->addAttribute('ignore', '1')
#2 /srv/www/vhosts/aerofunk.de/httpdocs/app/code/core/Mage/Core/Controller/Varien/Action.php(269): Mage_Core_Model_Layout->generateXml()
#3 /srv/www/vhosts/aerofunk.de/httpdocs/app/code/core/Mage/Core/Controller/Varien/Action.php(217): Mage_Core_Controller_Varien_Action->generateLayoutXml()
#4 /srv/www/vhosts/aerofunk.de/httpdocs/app/code/core/Mage/Wishlist/controllers/IndexController.php(73): Mage_Core_Controller_Varien_Action->loadLayout()
#5 /srv/www/vhosts/aerofunk.de/httpdocs/app/code/core/Mage/Core/Controller/Varien/Action.php(349): Mage_Wishlist_IndexController->indexAction()
#6 /srv/www/vhosts/aerofunk.de/httpdocs/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(163): Mage_Core_Controller_Varien_Action->dispatch('index')
#7 /srv/www/vhosts/aerofunk.de/httpdocs/app/code/core/Mage/Core/Controller/Varien/Front.php(174): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#8 /srv/www/vhosts/aerofunk.de/httpdocs/app/Mage.php(447): Mage_Core_Controller_Varien_Front->dispatch()
#9 /srv/www/vhosts/aerofunk.de/httpdocs/index.php(52): Mage::run()
#10 {main}

Whats Wrong?

Image Attachments
Bild 1.png
 
Magento Community Magento Community
Magento Community
Magento Community
 
breastfed
Sr. Member
 
Avatar
Total Posts:  194
Joined:  2007-09-24
Münster - Germany
 

After deactivating the Line 165 i can access the Customer Page again.

foreach ($ignoreNodes as $block{
                    
#$block->addAttribute('ignore', true);
                
}

BUT

All Layoutout Changes are gone. I have the Blocks on the left Side i removed.

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top