0
votes

Sometimes Im get this kind of error when working with my plugins:

Class PluginNameAppController not found in ...

It's really weird because I connect plugin AppController before any controller using App::uses();

And this error occur randomly, then, I refresh current page (or clean tmp\cache\persistent) and it's gone.

I have 3 plugins connected in Config/bootstrap.php and I think they are conflicting some how.

Cakephp 2.6.0.

2
We need more information about this error, else we won't be able to give a solution ;)Bob
I really dont know what to add. It's all data that I have. What do you want to know?Scofield
I want the full error-stack of the error. Only telling sometimes you get 'an' error, nobody can help you with thatBob
Here is full error text (provided by CakePHP) and plugin controller code: chopapp.com/#65z1er7lScofield
What are your plugins ?Abhishek

2 Answers

0
votes

Use

Configure::write('Cache.viewPrefix', 'prefix');

with different value in PluginAppController's beforeFilter function.

0
votes

Ok, problem is still not resolved, but here is few solutions to resolve it:

  1. Comment this lines in core.php: chopapp.com/#i5x18g0p
  2. Uncomment Cache.disable in core.php: Configure::write('Cache.disable', true);