简体   繁体   English

xampp中的magento 2.3中的默认模块安装问题

[英]Default Module installation issue in magento 2.3 in xampp

I am a novice in magento and of course in magento 2. I have installed magento 2.3 in php 2.2 in xampp. 我是magento的新手,当然是magento 2的新手。我已经在xampp的php 2.2中安装了magento 2.3。 I have created a custom module which is a CRUD operation. 我创建了一个自定义模块,它是CRUD操作。 That is working fine. 很好 When I am trying to install a module (magento/module-shared-catalog) through the admin panel (System > Web Setup Wizard > Extension Manager(Extension Ready to install)), showing error like. 当我尝试通过管理面板(系统> Web设置向导>扩展程序管理器(扩展程序已准备安装))安装模块(magento / module-shared-catalog)时,显示类似错误。

1. Check Cron Scripts 1.检查Cron脚本

Cron script readiness check failed. Cron脚本准备情况检查失败。 Hide detail 隐藏细节

Error from Setup Application Cron Script: Cron job has not been configured yet Other checks will fail as a result (PHP version, PHP settings, and PHP extensions) 设置应用程序Cron脚本出现错误:尚未配置Cron作业,结果其他检查将失败(PHP版本,PHP设置和PHP扩展)

Error from Updater Application Cron Script: Cron job has not been configured yet 来自Updater Application Cron脚本的错误:尚未配置Cron作业

For additional assistance, see cron scripts help. 有关其他帮助,请参阅cron脚本帮助。

2. PHP Settings Check * 2. PHP设置检查*

For additional assistance, see PHP settings check help . 有关其他帮助,请参见PHP设置检查帮助。

3. PHP Extensions Check 3. PHP扩展检查

missing PHP extensions. 缺少PHP扩展。 Hide detail 隐藏细节

The best way to resolve this is to install the correct missing extensions. 解决此问题的最佳方法是安装正确的缺少扩展名。 The exact fix depends on our server, your host, and other system variables. 确切的修复方法取决于我们的服务器,您的主机和其他系统变量。 Our PHP extension help can get you started. 我们的PHP扩展帮助可以帮助您入门。

For additional assistance, contact your hosting provider. 如需其他帮助,请与您的主机提供商联系。

I am trying in my local server(127.0.0.1). 我正在本地服务器(127.0.0.1)中尝试。

To overcome the above cron issue, I have edited the following function in the following file 为了解决上述cron问题,我在以下文件中编辑了以下函数

C:\\xampp\\htdocs\\lapis\\setup\\src\\Magento\\Setup\\Controller\\Environment.php C:\\ xampp \\ htdocs \\ lapis \\ setup \\ src \\ Magento \\ Setup \\ Controller \\ Environment.php

in cronScriptAction() 在cronScriptAction()中

replace 更换

$setupCheck = $this->cronScriptReadinessCheck->checkSetup(); $ setupCheck = $ this-> cronScriptReadinessCheck-> checkSetup(); $updaterCheck = $this->cronScriptReadinessCheck->checkUpdater(); $ updaterCheck = $ this-> cronScriptReadinessCheck-> checkUpdater();

to

$setupCheck = ['success' => 1]; $ setupCheck = ['成功'=> 1]; $updaterCheck = ['success' => 1]; $ updaterCheck = ['成功'=> 1];

then cron issue have been fixed but the remaining two issues are still there as mentioned above. 然后已解决了cron问题,但是如上所述,其余两个问题仍然存在。

Please assist me how to solve the issue and install any compatible module in my Magento 2.3 application. 请协助我解决问题,并在Magento 2.3应用程序中安装任何兼容的模块。

Yes! 是! after googling I got the success both in windows and linux (Ubuntu). 谷歌搜索后,我在Windows和Linux(Ubuntu)上都获得了成功。 I need to run the cron, before try to install module in magento. 在尝试在magento中安装模块之前,我需要运行cron。

Open terminal and enter the following line in the terminal. 打开终端,然后在终端中输入以下行。

cd <magento_root_directory>

then execute the following 3 commands in terminal. 然后在终端中执行以下3条命令。

php bin/magento cron:run

php update/cron.php

php bin/magento setup:cron:run

Then try to install the module from magento 2.3 admin panel. 然后尝试从magento 2.3管理面板安装模块。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM