我在寻找任何帮助来解决这个问题

php bin/magento setup:di:compile
错误:
- Magento\Catalog\Model\Config\LayerCategoryConfig 类不存在
- Mirasvit\Search\Model\Layer\FilterList\Interceptor 的生成出错:请求的类没有正确生成,因为 'generated' 目录权限为只读。如果在将 'generated' 目录权限设置为可写后,请求的类仍然无法生成,则必须在相关构造方法的签名中添加该生成的类对象。
 
Last edited:
The error message indicates that the class Magento\Catalog\Model\Config\LayerCategoryConfig does not exist. This could be due to a missing file or a misconfiguration. Here are a few steps you can take to troubleshoot this:

  • First, make sure that the file LayerCategoryConfig.php exists in the correct location within your Magento installation under app/code/Magento/Catalog/Model/Config/.
  • If the file exists, it's possible that there might be a typo in the class name or namespace.
  • Ensure that all required Magento modules are enabled. You can check this by running bin/magento module:status.
  • If you've recently made changes or installed new extensions, try rolling back those changes to see if the issue persists.
  • Clear the generated code and cache by running:

    rm -rf generated/* var/cache/*
 
Back
Top