I looking for any help for this issue

drishtiprak
Lv.5
Bronze Member
Iron Member
Joined
Jan 3, 2024
Messages
111
Reaction score
73
Credits
$10
Any Fix For this

php bin/magento setup:di:compile
Error

Class Magento\Catalog\Model\Config\LayerCategoryConfig does not exist
Class Mirasvit\Search\Model\Layer\FilterList\Interceptor generation error: The requested class did not gener
ate properly, because the 'generated' directory permission is read-only. If --- after running the 'bin/magen
to setup:di:compile' CLI command when the 'generated' directory permission is set to write --- the requested
class did not generate properly, then you must add the generated class object to the signature of the relat
ed construct method, only.
 
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/*
 
Top