Today, on our live website, we encountered an issue around 10:00 AM CDT where our orders where not getting quotes from UPS, and to contact our office. Upon digging into the issue, and turning on logging (System > Configuration > Developer > Logging) we're getting this error being thrown:
ERR (3): Notice: Undefined variable: error in /var/www/html/website.com/app/code/local/SITE/Shipping/Model/Carrier/Ups.php on line 574.
When we start digging into these files, this line reads:
if(!$error instanceof Mage_Shipping_Model_Rate_Result_Error) {
Digging deeper, we find the Mage_Shipping_Model_Rate_Result_Error class in app\code\core\Mage\Shipping\Model\Rate\Result\Error.php:
class Mage_Shipping_Model_Rate_Result_Error extends Mage_Shipping_Model_Rate_Result_Abstract
{
public function getErrorMessage()
{
if (!$this->getData('error_message')) {
$this->setData('error_message', Mage::helper('shipping')->__('This shipping method is currently unavailable. If you would like to ship using this shipping method, please contact us.'));
}
return $this->getData('error_message');
}
}
I can't for the life of me, nor my colleagues, find our "undefined" variable.
Admittedly, I am a Magento n00b, but understand the basics, HTML, PHP, CSS, etc., so I'm sure I can work through any answers provided.
Thank you in advance for your time and help in solving this problem.