【发布时间】:2011-03-17 20:41:14
【问题描述】:
在magento中编写了一些帮助类之后,现在我遇到了这个问题,我收到了这个错误
致命错误:在第 33 行的 app\code\local\Uhma\Program\Helper\Data.php 中找不到类“Zend_Log”
在第 33 行我有这个
function WBSAPI_OnceProbe ()
{
return ( $this->WBSAPI_CurlCall ( "once?action=probe" , &$result) );//LINE 33
}
我用返回调用的函数是这个
function WBSAPI_CurlCall ( $service , &$result=null )
{
try {
$s = curl_init();
curl_setopt($s,CURLOPT_URL,MYWBSAPIURL.$service);
curl_setopt($s,CURLOPT_POST,false);
curl_setopt($s, CURLOPT_RETURNTRANSFER, 1);
$output = curl_exec($s);
curl_close($s);
$result = json_decode ( $output , TRUE );
if (!is_array($result)) return (false);
if (!key_exists('status',$result)) return (false);
if ($result['status'] != 0) return (false);
return ( true );
} catch ( Exception $e ) {
return ( false );
}
}
我在谷歌已经有一段时间了,有人说这是我的助手中的一个函数,它覆盖了 magento 的一个函数,我一开始就把 WBSAPI_ 放在我的所有函数中,所以,这不可能是原因,我一直收到同样的错误,我不知道还能尝试什么,这里需要一些帮助
如果有帮助,我的文件中还有其他一些定义,类似这样的
define ('MYWBSAPIURL','wbsapi.withings.net/');
define ('MYAPIURL','scalews.withings.net/cgi-bin/');
define ('pound',0.453592);
define ('inch', 0.0254);
class Uhma_Program_Helper_Data extends Mage_Core_Helper_Abstract{
//CLASS CONTENT
}
谢谢
【问题讨论】: