Magento Forum

   
[SOLVED] Error in checkout procedure. 
 
stevendebaets
Jr. Member
 
Total Posts:  4
Joined:  2011-11-25
 

I\’m getting an error in the checkout procedure. Not in the first step, but only if you go to the second or third step.

Fatal error: Call to a member function insert() on a non-object in /server/app/code/community/Trollweb/SilverFramework/Model/Observer.php on line 18

Does anybody have an idea?
If you have, than please share it.

Following are the contents of my observer.php file:

<?php

class Trollweb_SilverFramework_Model_Observer extends Mage_Core_Model_Abstract {

function checkValidity($observer)
{
$helper = Mage::helper(’silverframework/silver’);
$serial = $helper->settings[’about’][’serial’];
$domain = $_SERVER[’SERVER_NAME’];
$key = ‘silverframework’;

if(sha1($key.$domain) != $serial) {
$event = $observer->getEvent();
$layout = Mage::app()->getLayout();
$root = $layout->getBlock(’root’);
$left = $layout->getBlock(’top.menu’);
$block = $layout->createBlock(’core/template’)->setTemplate(’silverframework/check.phtml’);
$left->insert($block);
}

}

function updateBodyClassEvent($observer)
{
$event = $observer->getEvent();
$layout = Mage::app()->getLayout();
$helper = Mage::helper(’silverframework/silver’);
$root = $layout->getBlock(’root’);
$font = $helper->settings[’settings’][’font_family’];

if($font != ‘’) {
$className = ‘silverframework-font-’ . $font;

if($root && is_object($root) && method_exists($root, ‘addBodyClass’)) {
$root->addBodyClass($className);
}
}
}
}

 
Magento Community Magento Community
Magento Community
Magento Community
 
stevendebaets
Jr. Member
 
Total Posts:  4
Joined:  2011-11-25
 

Solved!
I deleted the themes I was not using and the problem was gone.
Didn’t know it could be that simple!

 
Magento Community Magento Community
Magento Community
Magento Community
 
mensagensnatal
Jr. Member
 
Total Posts:  1
Joined:  2011-12-07
 

same problem here. Thnks for the solution.

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