1
Kerzon
Trouble getting to admin section
  • 2006/11/18 22:15

  • Kerzon

  • Just popping in

  • Posts: 30

  • Since: 2003/6/4 1


Hi there,

I've recently created a XOOPS site for a client who wishes to do their own maintenence. They log in as usual but when they try to get to the admin area via admin.php it says they don't have permission to do that. If they authenticate a second time it lets them in, no problem.

The site is running on version 2.0.13.1, but I've noticed this problem in earlier versions. Is there a fix for this, or is an upgrade in order?

Thanks.
Kerzon

Mobius Donut
Rock-Oriented Rock

2
Bender
Re: Trouble getting to admin section
  • 2006/11/18 22:45

  • Bender

  • Home away from home

  • Posts: 1899

  • Since: 2003/3/10


Check which url is in mainfile.php (including www. or not?) and set it to the correct type the site is actually using.


To elaborate a bit:

I assume you can call your site using http://www.sitename.ext and also sitename.ext.

However XOOPS uses either one of these depending of which one you set it up for. So what happens is actually:

For this example we are assuming your site is configured for www.sitename.ext)
[size=x-small]
- user goes to the adress sitename.ext
- logs in (cookie/session applied to sitename.ext) and XOOPS loads the next page (now using www.sitename.ext instead since your site is configured for this url)
- it checks and the user is not logged in to www.sitename.ext and redirects him as anonymous to the mainpage (using www.sitename.ext)
- user logs in again and it works since this time he starts from www.sitename.ext instead of only sitename.ext[/size]

Of course this could be exactly the other way around depending on your mainfile.php settings for XOOPS_URL.

So you should create a redirect for one of the two adresses.
Sorry, this signature is experiencing technical difficulties. We will return you to the sheduled signature as soon as possible ...

3
jdseymour
Re: Trouble getting to admin section

Quote:

Kerzon wrote:
Hi there,

I've recently created a XOOPS site for a client who wishes to do their own maintenence. They log in as usual but when they try to get to the admin area via admin.php it says they don't have permission to do that. If they authenticate a second time it lets them in, no problem.

The site is running on version 2.0.13.1, but I've noticed this problem in earlier versions. Is there a fix for this, or is an upgrade in order?

Thanks.


I just had this problem come out of nowhere on my site. After some troubleshooting and narrowing down the problem, it turned out to be that the group_user_link table was somehow changed for my admin user. It should be linkid - 2 groupid -1 UID -1.

For some reason it changed to linkid - 739 groupid - 2 and UID - 1. Still do not know what caused it, but fixed it manually in phpmyadmin.

4
Kerzon
Re: Trouble getting to admin section
  • 2006/11/19 5:16

  • Kerzon

  • Just popping in

  • Posts: 30

  • Since: 2003/6/4 1


Hi Bender,

That's exactly the problem, the sites from my host default to http://sitename.com. Thanks for the quick solution!

P.S. Futurama is one of my all time favorite shows, every time they restart the series on Cartoon Network I say that I'm not going to watch it again but always end up doing so.

Cheers
Kerzon

Mobius Donut
Rock-Oriented Rock

Login

Who's Online

243 user(s) are online (172 user(s) are browsing Support Forums)


Members: 0


Guests: 243


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits