Wednesday, December 19, 2012

Help! - Simple authentication tutorial? Is it broken?

Help! I have been trying to fix the 'Simple' Authentication tutorial for 10 hours today :-(

The error messages from my Apache error log are listed below.

I am sure I have an AppController.php file within the app/Controller older. Also, that this contains a good version of the AppController class from the tutorial.

But still I get all of the errors below.

Has anybody else successfully completed this tutorial and could give some pointers?
 



[Wed Dec 19 20:49:25 2012] [error] [client 127.0.0.1] PHP Fatal error:  Class 'AppController' not found in /var/www/cakephp-2.3.0-RC1/lib/Cake/Controller/CakeErrorController.php on line 31
[Wed Dec 19 20:49:25 2012] [error] [client 127.0.0.1] PHP Stack trace:
[Wed Dec 19 20:49:25 2012] [error] [client 127.0.0.1] PHP   1. {main}() /var/www/cakephp-2.3.0-RC1/app/webroot/index.php:0
[Wed Dec 19 20:49:25 2012] [error] [client 127.0.0.1] PHP   2. Dispatcher->dispatch() /var/www/cakephp-2.3.0-RC1/app/webroot/index.php:97
[Wed Dec 19 20:49:25 2012] [error] [client 127.0.0.1] PHP   3. Dispatcher->_getController() /var/www/cakephp-2.3.0-RC1/lib/Cake/Routing/Dispatcher.php:152
[Wed Dec 19 20:49:25 2012] [error] [client 127.0.0.1] PHP   4. Dispatcher->_loadController() /var/www/cakephp-2.3.0-RC1/lib/Cake/Routing/Dispatcher.php:228
[Wed Dec 19 20:49:25 2012] [error] [client 127.0.0.1] PHP   5. class_exists() /var/www/cakephp-2.3.0-RC1/lib/Cake/Routing/Dispatcher.php:259
[Wed Dec 19 20:49:25 2012] [error] [client 127.0.0.1] PHP   6. App::load() /var/www/cakephp-2.3.0-RC1/lib/Cake/Core/App.php:0
[Wed Dec 19 20:49:25 2012] [error] [client 127.0.0.1] PHP   7. include() /var/www/cakephp-2.3.0-RC1/lib/Cake/Core/App.php:540
[Wed Dec 19 20:49:25 2012] [error] [client 127.0.0.1] PHP   8. App::load() /var/www/cakephp-2.3.0-RC1/lib/Cake/Core/App.php:0
[Wed Dec 19 20:49:25 2012] [error] [client 127.0.0.1] PHP   9. App::shutdown() /var/www/cakephp-2.3.0-RC1/lib/Cake/Core/App.php:0
[Wed Dec 19 20:49:25 2012] [error] [client 127.0.0.1] PHP  10. App::_checkFatalError() /var/www/cakephp-2.3.0-RC1/lib/Cake/Core/App.php:899
[Wed Dec 19 20:49:25 2012] [error] [client 127.0.0.1] PHP  11. call_user_func() /var/www/cakephp-2.3.0-RC1/lib/Cake/Core/App.php:926
[Wed Dec 19 20:49:25 2012] [error] [client 127.0.0.1] PHP  12. ErrorHandler::handleError() /var/www/cakephp-2.3.0-RC1/lib/Cake/Core/App.php:0
[Wed Dec 19 20:49:25 2012] [error] [client 127.0.0.1] PHP  13. ErrorHandler::handleFatalError() /var/www/cakephp-2.3.0-RC1/lib/Cake/Error/ErrorHandler.php:161
[Wed Dec 19 20:49:25 2012] [error] [client 127.0.0.1] PHP  14. call_user_func() /var/www/cakephp-2.3.0-RC1/lib/Cake/Error/ErrorHandler.php:211
[Wed Dec 19 20:49:25 2012] [error] [client 127.0.0.1] PHP  15. ErrorHandler::handleException() /var/www/cakephp-2.3.0-RC1/lib/Cake/Error/ErrorHandler.php:0
[Wed Dec 19 20:49:25 2012] [error] [client 127.0.0.1] PHP  16. ExceptionRenderer->__construct() /var/www/cakephp-2.3.0-RC1/lib/Cake/Error/ErrorHandler.php:125
[Wed Dec 19 20:49:25 2012] [error] [client 127.0.0.1] PHP  17. ExceptionRenderer->_getController() /var/www/cakephp-2.3.0-RC1/lib/Cake/Error/ExceptionRenderer.php:94
[Wed Dec 19 20:49:25 2012] [error] [client 127.0.0.1] PHP  18. App::load() /var/www/cakephp-2.3.0-RC1/lib/Cake/Core/App.php:0
[Wed Dec 19 20:49:25 2012] [error] [client 127.0.0.1] PHP  19. include() /var/www/cakephp-2.3.0-RC1/lib/Cake/Core/App.php:560

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
 
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
 
 

No comments: