Class Magento\CatalogPermissions\Model\ResourceModel\Permission\Index does not exist

drishtiprak Specialist
Bronze Member
50 Reaction Score 10 Reaction Score 10 Resources First Score
Jan 3, 2024
61
52
$10
hi guys from NullPro i need to fix this issue i'm try to install Elastic Search amasty and every think is fine but after make command - setup:di:compile - i get this issue

Class Magento\CatalogPermissions\Model\ResourceModel\Permission\Index does not exist

i have Catalog Permissions module from BSS and i have installed this module and the module is enabled
 
magento folder was default core ,maybe you need to check file status and permission,restart to compile
 
Last edited by a moderator:
Did you ever resolve this issue? I have the same problem
 
Did you ever resolve this issue? I have the same problem
fix it manual and try again
go to path app/code/magento/
or
go to path vendor/magento/

search the magento folder in app/code/magento
or in vendor/magento
i have the magento foldr in vendor if you installing magento manual you will get the magento folder in app/code

and create folders manual

CatalogPermissions/Model/ResourceModel/Permission/Index.php

create the file in this path with name index.php

and paste this code

PHP:
<?php
namespace Magento\CatalogPermissions\Model\ResourceModel\Permission;
use Magento\Framework\Model\ResourceModel\Db\AbstractDb;

class Index extends AbstractDb

{

    protected function _construct()
    {
        $this->_init('catalogpermissions_index', 'id');
    }

}


and enjoy create your commands easy
 
Last edited by a moderator:
Going to try this now. Thanks for that.