如何在Magento 2中安装ingenico epayments



我在magento 2上安装ingenico epayments时遇到问题。该文档建议使用作曲家(ingenico doc(进行安装,但我无法修复"作曲家需要ingenico/ingenico_epayments_ogn2:3.3.1"之后的以下错误:

Your requirements could not be resolved to an installable set of packages.
  Problem 1
    - Installation request for ingenico/ingenico_epayments_ogn2 3.3.1 -> satisfiable by ingenico/ingenico_epayments_ogn2[3.3.1].
    - ingenico/ingenico_epayments_ogn2 3.3.1 requires ingenico/library-ops-m2 ~3.3.0 -> no matching package found.
Potential causes:
 - A typo in the package name
 - The package is not available in a stable-enough version according to your minimum-stability setting
   see <https://getcomposer.org/doc/04-schema.md#minimum-stability> for more details.
 - It's a private package and you forgot to add a custom repository to find it
Read <https://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.
Installation failed, reverting ./composer.json to its original content.

我还尝试使用 magento 2 安装向导安装模块。但是"检查 cron 脚本"和"检查组件依赖关系"的准备情况检查失败

我确定了造成问题的 cron(更新(,当我手动执行它时,我遇到了此错误:"/usr/bin/php/var/www/html/update/cron.php">

PHP Warning:  require_once(/var/www/html/update/vendor/autoload.php): failed to open stream: No such file or directory in /var/www/html/update/app/bootstrap.php on line 15
PHP Stack trace:
PHP   1. {main}() /var/www/html/update/cron.php:0
PHP   2. require_once() /var/www/html/update/cron.php:7
PHP Fatal error:  require_once(): Failed opening required '/var/www/html/update/vendor/autoload.php' (include_path='.:/usr/share/php') in /var/www/html/update/app/bootstrap.php on line 15
PHP Stack trace:
PHP   1. {main}() /var/www/html/update/cron.php:0
PHP   2. require_once() /var/www/html/update/cron.php:7

这是因为供应商文件夹不在更新文件夹中,而是在根目录中。

感谢您的帮助!

使用以下方式安装此模块,并使用同时具有文件夹zip(库和扩展名(的软件包

composer config repositories.ingenico artifact /path/to/folder/with/package/
composer require ingenico/ingenico_epayments_ogn2
composer update

相关内容

  • 没有找到相关文章

最新更新