Fatal error: Call to a member function children() on a non-object
Maybe you would be interested in a better way to integrate Magento and WordPress if you are having difficulties with the below.
If you are using Lazzymonks WordPress integration extension for Magento and experience the following error, here is the resolve.Fatal error: Call to a member function children() on a non-object in app/code/community/Mage/Blog/Model/Layouts.phpThere is a couple of fixes to make this work (properly) on 1.3.2.4. Edit app/design/frontend/default/default/template/blog/menu.phtml Change from
<?php if(!Mage::getStoreConfig('blog/blogmenu/loginmenuview')) : ?> <div class="box base-mini mini-blog">To
<?php if(!Mage::getStoreConfig('blog/blogmenu/loginmenuview') && strpos($_SERVER["REQUEST_URI"], "/blog/") !== false) : ?> <div class="box base-mini mini-blog">Edit app/code/community/Mage/Blog/Model/Layouts.php Change from
foreach (Mage::getConfig()->getNode($xmlPath)->children() as $layoutConfig) { $this->_options[] = array( 'value'=>(string)$layoutConfig->template, 'label'=>(string)$layoutConfig->label ); }To
foreach (Mage::getConfig()->getNode($xmlPath)->global->page->layouts->children() as $layoutConfig) { $this->_options[] = array( 'value'=>(string)$layoutConfig->template, 'label'=>(string)$layoutConfig->label ); }Also, if you get a blank page or "Access denied" - log in as Admin, this happens on a few modules where the auth isn't "quite" right. From: https://www.magentocommerce.com/boards/viewthread/28425/ [syntaxhighlighter]