My checkout page is giving me this error:
Fatal error: Class 'Zend_Log' not found in /home/internat/public_html/app/code/core/Mage/Checkout/Block/Onepage.php on line 98
What could be the problem? The error line is just the last line.
public function getAddressesHtmlSelect($address, $type)
{
if ($this->isCustomerLoggedIn()) {
$options = array();
foreach ($this->getCustomer()->getAddresses() as $a) {
$options[] = array(
'value'=>$a->getId(),
'label'=>$a->getStreet(-1).', '.$a->getCity().', '.$a->getRegion().' '.$a->getPostcode(),
);
}
$addressId = $address->getId();
if (empty($addressId)) {
if ($type=='billing') {
$address = $this->getCustomer()->getPrimaryBillingAddress();
} else {
$address = $this->getCustomer()->getPrimaryShippingAddress();
}
if ($address) {
$addressId = $address->getId();
}
}
$select = $this->getLayout()->createBlock('core/html_select')
->setName($type.'_address_id')
->setId($type.'-address-select')
->setExtraParams('onchange="'.$type.'.newAddress(!this.value)"')
->setValue($addressId)
->setOptions($options);
$select->addOption('', 'New Address');
return $select->getHtml();
}
return '';
}