Re: Help! - Simple authentication tutorial? Is it broken?

2012-12-20 Thread crush

>
> I'll keep posting .but if anybody has actually made this tutorial work 
> I would be very interested. I am starting to think I am in one of those 
> 'gumption traps' where I assume it is my own ignorance causing me problems, 
> but actually there is something wrong with the tutorial and/or library code.


The tutorial does work properly. I actually just used it recently and the 
only issue that I had was a copy and paste issue. 

-- 
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+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.




Re: Help! - Simple authentication tutorial? Is it broken?

2012-12-20 Thread lowpass
On Thu, Dec 20, 2012 at 3:12 PM, OxfordRob  wrote:
> jsunquist,
>
> Good suggestion.
>
> I tried moving everything up to the top level in my web server. I.e. I now
> have:
>
> /var/www/app
> /var/www/webroot
> /var/www/css
>
> etc. etc.
>
> Is this correct? It is not what I understood from the installation
> instructions.

No, it's not correct. The css dir should be inside webroot, which
itself should be inside app.

-- 
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+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.




Re: Help! - Simple authentication tutorial? Is it broken?

2012-12-20 Thread OxfordRob
jsunquist,

Good suggestion. 

I tried moving everything up to the top level in my web server. I.e. I now 
have:

/var/www/app
/var/www/webroot
/var/www/css

etc. etc.

Is this correct? It is not what I understood from the installation 
instructions.

However, I think in the process I broke it even worse - oops. So my plan 
now is to clean everything out, and to go back the the clean install of 
cake without my tutorial code and start again from there.

I'll keep posting .but if anybody has actually made this tutorial work 
I would be very interested. I am starting to think I am in one of those 
'gumption traps' where I assume it is my own ignorance causing me problems, 
but actually there is something wrong with the tutorial and/or library code.

Rob

On Wednesday, 19 December 2012 21:15:44 UTC, jsundquist wrote:
>
> oxfordRob,
>
> I've been trying to figure out what might be your issue with little to no 
> success.  One thing I might suggest you try is to move your entire app 
> directory up to the root level instead of inside a subfolder if possible. 
>  You may have a configuration issue causing cake core to not find the 
> appcontroller.  I do know you said that the blog tutorial worked for you 
> but its just a thought.
>
>
> On Wed, Dec 19, 2012 at 2:57 PM, OxfordRob 
> > wrote:
>
>> 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
>> F

Re: Help! - Simple authentication tutorial? Is it broken?

2012-12-20 Thread OxfordRob
@crush - thanks for the suggestion. I have looked at that file and most of 
the others looking for repeated function declarations - but can't see 
anything like that.

On Thursday, 20 December 2012 11:34:06 UTC, crush wrote:
>
> Hey,
>
> I had this error:
>
> Fatal error: Class declarations may not be nested in 
> /srv/www/website/public_html/lib/Cake/Controller/CakeErrorController.php on 
> line 31
>
> and finally tracked it down to the beforeFilter existing on the users 
> controller twice:
>
> public function beforeFilter() {
> parent::beforeFilter();
> $this->Auth->allow('add');
> }
>
> I deleted the second one and everything started working properly.
>

-- 
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+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.




Re: Help! - Simple authentication tutorial? Is it broken?

2012-12-20 Thread crush
Hey,

I had this error:

Fatal error: Class declarations may not be nested in 
/srv/www/website/public_html/lib/Cake/Controller/CakeErrorController.php on 
line 31

and finally tracked it down to the beforeFilter existing on the users 
controller twice:

public function beforeFilter() {
parent::beforeFilter();
$this->Auth->allow('add');
}

I deleted the second one and everything started working properly.

-- 
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+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.




Re: Help! - Simple authentication tutorial? Is it broken?

2012-12-19 Thread Jonathan Sundquist
oxfordRob,

I've been trying to figure out what might be your issue with little to no
success.  One thing I might suggest you try is to move your entire app
directory up to the root level instead of inside a subfolder if possible.
 You may have a configuration issue causing cake core to not find the
appcontroller.  I do know you said that the blog tutorial worked for you
but its just a thought.


On Wed, Dec 19, 2012 at 2:57 PM, OxfordRob  wrote:

> 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+unsubscr...@googlegroups.com.
> Visit this group at http://groups.google.com/group/cake-php?hl=en.
>
>
>

-- 
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+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.