当我尝试在服务器上执行一个简单的脚本而它在我的本地机器上运行良好时,我不断收到此错误。
错误
致命错误:在第 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.23
- 当地的:
5.3.13