简体   繁体   English

Magento 2.4.4 示例数据安装错误

[英]Magento 2.4.4 sample data installation error

I have downloaded Magento version 2.4.4 with sample data from https://magento.com/tech-resources/download I was trying to install it on the Wamp server.我已经从https://magento.com/tech-resources/download下载了 Magento 2.4.4 版和示例数据,我试图将它安装在 Wamp 服务器上。 But when I run the installation I get the error但是当我运行安装时,我得到了错误

Unable to apply data patch Magento\GroupedProductSampleData\Setup\Patch\Data\InstallGroupedProductSampleData for module Magento_GroupedProductSampleData. Original exce
  ption message: Rolled back transaction has not been completed correctly.

I tried with versions 2.4.3 and 2.4.3-p2 all are showing the same error.我尝试使用 2.4.3 和 2.4.3-p2 版本都显示相同的错误。 But I was able to install the 2.4.3 version without sample data.但我能够在没有示例数据的情况下安装 2.4.3 版本。 I searched and found it is related to some error in the csv file.我搜索并发现它与 csv 文件中的一些错误有关。 But none of the answers provided a solution.但没有一个答案提供了解决方案。 Please help.请帮忙。

Hi @Akhilesh in our case use magento 2.4.4 and this error was by a third module and when disable this, all magento run fine.嗨@Akhilesh 在我们的例子中使用magento 2.4.4,这个错误是由第三个模块引起的,当禁用它时,所有magento 运行正常。

Your can edit vendor/magento/framework/DB/Adapter/Pdo/Mysql.php file, search rollback() method and in the "else" section add this line:您可以编辑 vendor/magento/framework/DB/Adapter/Pdo/Mysql.php 文件,搜索 rollback() 方法并在“else”部分添加这一行:

echo (new \Exception())->getTraceAsString();

This can help you to look where is the error, if is from a module or another.这可以帮助您查看错误在哪里,如果来自模块或其他模块。

Regards问候

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

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