Missing Load plugin

后端 未结 2 368
野的像风
野的像风 2020-12-21 22:02

After I change some of the code from 1.3 to 2.1. Some error occur. This is the error:

Missing Plugin
Error: The application is trying to load a file from the         


        
相关标签:
2条回答
  • 2020-12-21 22:09

    Write the following line in your app\Config\bootstrap.php file

    CakePlugin::loadAll(array('Forums',
       array('bootstrap' => true, 'routes' => true),
    ));
    
    0 讨论(0)
  • 2020-12-21 22:11

    I was also facing the same problem in cake 2+. The problem in this was

     CakePlugin::load( 'DebugKit');
    

    was already added in bootstrap.php file and when I added this line

    CakePlugin::load( 'Cooltheme');
    

    The first was loaded and second was omitted. So to solve this problem I simply removed second one and modified the first one as below

    CakePlugin::load( array('DebugKit','Cooltheme'));
    

    Then it works for me, may be heplfull to others.

    0 讨论(0)
提交回复
热议问题