从 laravel 4.2 应用程序连接 magento soap API 的问题



在系统中,肥皂 api 部分是用洋红色完成的。

app/config/api.php

<?php
return array (
    /**
     * Magento Api
     */
    'mage_soap_api_url'         => 'http://url/',
    'mage_soap_api_user'        => 'username',
    'mage_soap_api_key'         => 'password',
    'mage_soap_api_path'        => '/var/www/ecomm'
);

它正在暂存服务器中工作。但是当我尝试在本地实施的 laravel 4.2 项目时访问此 magento 部分时,我收到此错误。

PHP 致命错误:{closure}((:需要打开失败 '/var/www/ecomm/app/Mage.php' (include_path='/var/www/html/local/vendor/phpseclib/phpseclib/phpseclib:.:/usr/share/php:/usr/share/pear'( 在/var/www/html/local/app/routes.php 第 125 行

路线.php

Route::any('/customer/account/logout', function () {
    $api_path = Config::get('api.mage_soap_api_path');
    require_once("{$api_path}app/Mage.php");
    umask(0);
    Mage::app('default');
    Mage::getSingleton('core/session', array('name' => 'frontend'));
    $session = Mage::getSingleton('customer/session', array('name' => 'frontend'));
    $session->logout();
    Session::put('customer', null);
    return Redirect::to('/login');
});

是否有任何权限可以设置在本地访问它(magento soap api(。实际上我是 laravel 开发人员。所以不熟悉洋红色。

如果有人能帮助我,那就太好了。

实际上是权限问题。我无法访问从我的本地系统暂存 magento api。他们已经恢复了它。我在本地设置它并链接数据库。现在它正在工作。

最新更新