New admin page always going to login page

Open to all! Ask other shopowners for help.
Post Reply
User avatar
tessthepup
Certified Developer
Posts: 383
Joined: Mon Mar 01, 2021 5:55 pm
Phoenix Version:
Has thanked: 47 times
Been thanked: 62 times

New admin page always going to login page

Post by tessthepup »

When trying to create a new admin page whenever I include

Code: Select all

require 'includes/application_top.php';
require 'includes/template_top.php';
the page always loops back to the admin login page and when I login in it takes me to index page

Any ideas why it would do that as I can not see why it would do that :?: :?


Join The Code Co-op to get access to your library in the Code Co-op Forum
LeeFoster
Contributor
Posts: 263
Joined: Sun Feb 28, 2021 9:41 pm
Phoenix Version: v1.0.8.20
Has thanked: 1 time
Been thanked: 5 times

Re: New admin page always going to login page

Post by LeeFoster »

You don't gave the admin levels addon do you?
User avatar
tessthepup
Certified Developer
Posts: 383
Joined: Mon Mar 01, 2021 5:55 pm
Phoenix Version:
Has thanked: 47 times
Been thanked: 62 times

Re: New admin page always going to login page

Post by tessthepup »

No I am not running any admin mods that would affect it.
ecartz
Core Team
Posts: 3084
Joined: Tue Nov 05, 2019 6:02 pm
Phoenix Version:
Has thanked: 4 times
Been thanked: 208 times

Re: New admin page always going to login page

Post by ecartz »

Losing the session?

Normal debugging applies. Simplify until it works. Then undo the last step. If it doesn't work then, simplify everything else but that until it either works or that is the only remaining line.


Join The Code Co-op to get access to your library in the Code Co-op Forum
Post Reply