skip to Main Content

How to fix compile error

[master_qmajkwnjbz]:public_html$ php bin/magento setup:di:compile
Compilation was started.
Repositories code generation... 1/7 [====>-----------------------]  14% 1 sec 60.0 MiBPHP Fatal error:  I        nterface 'PsrSimpleCacheCacheInterface' not found in /home/427182.cloudwaysapps.com/gravqhssbb/public_h        tml/app/code/Magezon/PageBuilder/Model/InstagramCacheManager.php on line 7
    
    Fatal error: Interface 'PsrSimpleCacheCacheInterface' not found in /home/427182.cloudwaysapps.com/gravq        hssbb/public_html/app/code/Magezon/PageBuilder/Model/InstagramCacheManager.php on line 7

I got this error https://prnt.sc/udsmpm

[ReflectionException]
  Class MagentoCatalogModelProductAuthorization does not exist

  [ReflectionException]
  Class MagentoCatalogModelProductAuthorization does not exist

3

Answers


  1. Chosen as BEST ANSWER

    How i got

    [master_vkhvxsgmux]:public_html$ bin/magento setup:di:compile
     
    Compilation was started.
    Area configuration aggregation... 5/7 [====================>-------]  71% 30 secs 250.0 MiB
     
      [ReflectionException]
      Class MagentoCatalogModelProductAuthorization does not exist
     
     
      [ReflectionException]
      Class MagentoCatalogModelProductAuthorization does not exist
     
    setup:di:compile
    

  2. Dont directly run the setup:di:compile.

    Try below commands :

    php bin/magento setup:upgrade
    php bin/magento setup:di:compile
    php bin/magento setup:static-content:deploy -f
    
    php bin/magento cache:clean
    
    Login or Signup to reply.
  3. Magezon_PageBuilder module

    (/app/code/Magezon/PageBuilder/Model/InstagramCacheManager.php )

    required PsrSimpleCacheCacheInterface which is not present or not properly initialized in the system

    Disable/delete mentioned modules or fix this dependency

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search