Hi,
this is really strange question. I made a simple web presentation (so
far I have used cake 1.3 this is my first 2.x project), and added AUTH
component looking at the tutorial from this link :
http://book.cakephp.org/2.0/en/tutorials-and-examples/simple-acl-controlled-application/simple-acl-controlled-application.html
Ok so here is my problem. I have overridden pages controller and made
4 more. They all run perfectly in local host, however , only pages
controller bugs on the server. In order to upload code and make it
work I had to change my 3 htaccess files , because sever was giving me
internal sever error without base variable.
Now here is the funny part. The pages controller shows blank page with
no errors, even in debug mode 2, whenever I try to access any of the
functions for which you have to be logged in to use. Only pages
controller, which doesn't use anything unusual, or unstandard. Just a
plain blank page and only on that server. In local host it runs
normaly.
So I did the following :
1) I checked if there is any blank space left - no
2) I checked if allowed functions work - they do
3) When I put smth in before filter and do var_dump it prints it.
4) I tried to print user from session of from auth component , I get
null - although in other controllers it works ok
5) This all happens regardless if I am loged in or out
6) I do not get redirected when the function is allowed for normal
users, I only get the blank page , i checked to surce of the page,
nothing, just html and body tags empty again
7) when i make auth->allow('*') everything runs ok. So only the
functions which are not allowed.
Since I wasted a whole day on this, I am going to rename the
controller and try again because all others are working fine, and in
local host even pages work fine. I suppose that since I had to change
htaccess files, auth component bugs, but I cant guess what.
I will post update about this, however if someone had a similar
situation and solved it please help.
I guess somehow I got different sessions for these controllers but I
have no idea how or why... 0.O
ty in advance
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others
with their CakePHP related questions.
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php