当我试图在服务器上执行一个简单的脚本时,当它在我的本地机器上运行的时候,我会一直得到这个错误。
误差
致命错误:在第370行的/customers/0/4/1/myDomainName/httpd.www/demo/hello/bigcommerce.php中找不到'Bigcommerce\Api\Error‘类
链接到API
示例代码
require_once 'bigcommerce.php';
use Bigcommerce\Api\Client as Bigcommerce;
Bigcommerce::configure(array(
'store_url' => 'https://www.mystore.com/',
'username' => 'myUsername',
'api_key' => 'myPass'
));
Bigcommerce::setCipher('RC4-SHA');
Bigcommerce::verifyPeer(false);
?>Php版本
5.3.235.3.13发布于 2013-05-10 10:52:49
我将class Error的声明移到line 370之上,声明了ClientError类,从而修正了它。
https://stackoverflow.com/questions/16480361
复制相似问题