【问题标题】:The requested URL was not found on this server. Magento with oAuth在此服务器上找不到请求的 URL。 Magento 与 oAuth
【发布时间】:2017-02-23 12:42:46
【问题描述】:

我正在使用 magento CE 版本。我想用 php 编写本地 Magento 电子商务网站的脚本。我的 magento 社区版版本文件系统不包含 oAuth 目录,因此我的脚本找不到 oAuth url。我的代码是这样的->

$accessTokenRequestUrl = $magentoUrl . 'oauth/token';
$adminAuthorizationUrl = $magentoUrl . 'admin/oauth_authorize';
$apiUrl = $magentoUrl . 'api/rest';

但 Oauth、admin 和 api 文件在我的“opt/lamp/htdocs/magento”目录中不存在,因此会出现类似主题的错误。 Magento Enterprice edition(EE) 和 Community Edition 文件之间有区别吗? Magento(EE) 包括那些 oAuth 文件?我们必须在(CE)版本中使用哪些 url 路径值?

【问题讨论】:

    标签: php magento oauth magento-1.9


    【解决方案1】:

    像这样更改 magente url $magentoUrl = 'http://127.0.0.1/magento/';其他变量是正确的,不要改变它们。

    【讨论】:

    • Ty Lutfiye。我将 localhost 更改为 127.0.0.1 ,现在它可以工作了。网址正确。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2017-03-21
    • 2010-10-16
    • 1970-01-01
    • 2017-12-26
    • 2015-03-30
    • 2014-12-13
    • 2016-10-31
    相关资源
    最近更新 更多