Author Topic: page redirecting error problem in cakePHP  (Read 2257 times)

0 Members and 1 Guest are viewing this topic.

Offline devilincarnatedTopic starter

  • Irregular
  • Posts: 38
    • View Profile
page redirecting error problem in cakePHP
« on: February 05, 2010, 01:25:06 AM »
cake php issue

new to cakePHP framework... ;)

error shows up when a user tries to login to a site....he belongs to a new category which i have added in a drop down menu for the UI...i think i have made the necessary changes in views, models and controllers....not sure....u can suggest me the places or file i need to recheck......

a login controller file which calls home controller file....but it doesnt seem to call....it just goes on in an infinite loop....and the browser replies: problem loading page: the page isn't redirecting properly.....

the exact error

<title>Problem loading page</title>
<body>
The page isn't redirecting properly
Firefox has detected that the server is redirecting the request for this address in a way that will never complete.
This problem can sometimes be caused by disabling or refusing to accept
cookies.
</body>

can anyone help me out?

Offline devilincarnatedTopic starter

  • Irregular
  • Posts: 38
    • View Profile
Re: page redirecting error problem in cakePHP
« Reply #1 on: February 05, 2010, 05:00:28 AM »
it was permission issue guyz...thanks for looking through...

Offline rob_page

  • Irregular
  • Posts: 2
    • View Profile
Re: page redirecting error problem in cakePHP
« Reply #2 on: November 10, 2010, 05:53:32 PM »
it was permission issue guyz...thanks for looking through...

I'm having exactly the same problem.  Can you recall what permissions problems you were having?

Thanks.

Offline rob_page

  • Irregular
  • Posts: 2
    • View Profile
Re: page redirecting error problem in cakePHP
« Reply #3 on: November 11, 2010, 10:39:01 AM »
Ok, I solved it myself as well.

The permissions problem was on my /var/lib/php5 directory.  That was preventing session info from being stored. So when I'd log in, I'd get redirected to an "Auth" controlled page, but since there was no session info, cake tries to redirect again to the login page.   The loop should stop here, but it apparently doesn't.... Keeps on redirecting, redirecting, etc until Firefox craps out.

Offline devilinc

  • Enthusiast
  • Posts: 94
    • View Profile
Re: page redirecting error problem in cakePHP
« Reply #4 on: November 15, 2010, 11:18:33 PM »
sorry mate.....dint login for a few days here.....and mine was a redirection problem because of wrong permission settings in the admin panel i think....dont remember... :)