1
I have an error in the system exclusively in Ubuntu, when I run with apache in windows it works normally, but when I order run with apache Ubuntu it gives the following error:
Fatal Error
Error: Class 'AttachmentBehavior' not found
File: /var/www/html/cake/lib/Cake/Utility/ClassRegistry.php
Line: 169
Notice: If you want to customize this error message, create app/View/Errors /fatal_error.ctp
I have never made any modification in this file, I am not understanding this error.
Error file: http://pastebin.com/cw04y8Xq
What are you trying to do? What controller action are you accessing when this error appears?
– Erlon Charles
Carefully check if path, file name and class are written correctly, remember that linux distinguishes between upper and lower case.
– rray
There are several reasons: if you are using cakephp + Composer, you need to run one
composer dump-autoload -o
before. Otherwise, you should check if the directory described in the fileapp/webroot/index.php
relative to Cakephp lib is correct. Furthermore, make sure that this file exists inapp/Model/Behavior/
.– Patrick Maciel
Sorry for the delay, the error was being caused by the same folders, renamed and worked right.
– Felipe Henriques