无法从本地访问 CraftCMS 3 插件商店 windows environment/MAMP

Cannot access CraftCMS 3 plugin store from local windows environment/MAMP

我已经通过 composer 安装了 craft CMS 3,运行 在 MAMP (windows 10) 上,并成功创建了一些模板和条目。

但是,当我尝试访问插件商店时,我在页面上看到以下错误:"The Plugin Store is not available, please try again later." 在控制台中,我看到下面复制的两个内部服务器错误:

我能够通过 composer 安装联系表单插件。但不适用于其他插件(例如 sprout forms)

我还在仪表板上看到 'unknown error' 消息:jquery.js:9566 POST http://localhost:81/index.php?p=admin/actions/dashboard/get-feed-items 500(内部服务器错误)

还有其他人看到过这个问题吗?

尝试访问插件商店时的控制台错误消息:

    axios.js:853 GET http://localhost:81/index.php?p=admin/actions/plugin-store/plugin-store-data 500 (Internal Server Error)
    (anonymous) @ axios.js:853
    e.exports @ axios.js:687
    e.exports @ axios.js:1367
    Promise.then (async)
    a.request @ axios.js:525
    a.(anonymous function) @ axios.js:535
    (anonymous) @ axios.js:439
    Q @ main.js:1
    (anonymous) @ main.js:1
    getPluginStoreData @ main.js:1
    (anonymous) @ vuex.js:710
    l.dispatch @ vuex.js:432
    dispatch @ vuex.js:338
    created @ main.js:1
    yt @ vue.min.js:6
    pn._init @ vue.min.js:6
    pn @ vue.min.js:6
    (anonymous) @ main.js:1
    l @ jquery.js:3583
    c @ jquery.js:3651
    setTimeout (async)
    (anonymous) @ jquery.js:3689
    c @ jquery.js:3317
    fireWith @ jquery.js:3447
    fire @ jquery.js:3455
    c @ jquery.js:3317
    fireWith @ jquery.js:3447
    ready @ jquery.js:3920
    B @ jquery.js:3930
    axios.js:853 

    GET http://localhost:81/index.php?p=admin/actions/plugin-store/craft-data 500 (Internal Server Error)
    (anonymous) @ axios.js:853
    e.exports @ axios.js:687
    e.exports @ axios.js:1367
    Promise.then (async)
    a.request @ axios.js:525
    a.(anonymous function) @ axios.js:535
    (anonymous) @ axios.js:439
    W @ main.js:1
    (anonymous) @ main.js:1
    getCraftData @ main.js:1
    (anonymous) @ vuex.js:710
    l.dispatch @ vuex.js:432
    dispatch @ vuex.js:338
    created @ main.js:1
    yt @ vue.min.js:6
    pn._init @ vue.min.js:6
    pn @ vue.min.js:6
    (anonymous) @ main.js:1
    l @ jquery.js:3583
    c @ jquery.js:3651
    setTimeout (async)
    (anonymous) @ jquery.js:3689
    c @ jquery.js:3317
    fireWith @ jquery.js:3447
    fire @ jquery.js:3455
    c @ jquery.js:3317
    fireWith @ jquery.js:3447
    ready @ jquery.js:3920
    B @ jquery.js:3930

这是一个 curl 60 错误。为了修复它,我从 curl.haxx.se/ca/cacert.pem 下载了 cacert.pem 并将其保存到我的 mamp php 版本所在的同一文件夹中。然后像这样在 php.ini 中引用它:

[curl] 
; A default value for the CURLOPT_CAINFO option. This is required to be an 
; absolute path.
curl.cainfo ="{{ path to cacert.pem"}}