Cakephp Ubuntu Error

Asked

Viewed 75 times

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?

  • 3

    Carefully check if path, file name and class are written correctly, remember that linux distinguishes between upper and lower case.

  • 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 file app/webroot/index.php relative to Cakephp lib is correct. Furthermore, make sure that this file exists in app/Model/Behavior/.

  • Sorry for the delay, the error was being caused by the same folders, renamed and worked right.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.