【问题标题】:Error after Shopware update from 6.2.2 to 6.2.3Shopware 从 6.2.2 更新到 6.2.3 后出错
【发布时间】:2020-07-27 09:06:36
【问题描述】:

我有一个带有 shopware/developmentshopware/platformcustom/plugins 的 monorepo。 应用程序在 Docker 上运行,并将当前版本显示为 v9999999 Developer Version。 删除了产品、属性和类别等演示数据并导入了新集合。

我正在尝试更新shopware/platform。我的步骤:

  1. 下载码表https://github.com/shopware/platform/releases/tag/v6.2.3
  2. 将其复制到“平台”文件夹
  3. 在容器muenkel_app_server_1中运行命令
composer install
bin/console database:migrate --all
bin/console theme:refresh
bin/console cache:clear

正面展示

Notice: Undefined index: structs
in platform/src/Core/Framework/DataAbstractionLayer/FieldSerializer/ListingPriceFieldSerializer.php (line 30)
     
      return new ListingPriceCollection();        
    }  
       
    $value = json_decode((string) $value, true);  
      
    return new ListingPriceCollection(unserialize($value['structs']));    
  }
}

后端不加载产品列表

38 b67864 POST xhr 500 http://muenkel.local.de/api/v2/search/product

我在更新过程中遗漏了什么?

【问题讨论】:

    标签: shopware


    【解决方案1】:

    我还没有弄清楚原因是什么,但是一个临时的解决方法是在ListingPriceFieldSerializer.php的第30行添加这个;

    if (!isset($value['structs'])) {
        $value['structs'] = 'a:0:{}';
    }
    

    更新;它已在 6.3.0.0 版本中修复,请参阅此处的提交; https://github.com/shopware/platform/commit/20a4e656d9dcf54ff2180d1e28baac1495b30173

    【讨论】:

      【解决方案2】:

      尝试以下方法:

      1. 删除供应商文件夹
      2. 运行命令composer install

      【讨论】:

      • 除此之外,我还必须删除 composer.lock 并为vendor/shopware/platform创建符号链接
      猜你喜欢
      • 1970-01-01
      • 2015-06-28
      • 2020-12-13
      • 1970-01-01
      • 2015-12-14
      • 1970-01-01
      • 1970-01-01
      • 2023-02-21
      • 2015-05-14
      相关资源
      最近更新 更多