1
jburnham
Admin Login problems
  • 2005/9/27 14:21

  • jburnham

  • Just popping in

  • Posts: 3

  • Since: 2005/9/27


I have XOOPS 2.0.13.1 installed.

After logging in as the admin user, I am correctly redirected back to the home page and have the administration menu items.

However, clicking on Administration Menu displays a message that I do not have authority to view the section and brings me back to the home page (default version as if I was not signed in)

Logging in again as the admin user works. I have the administration menu and can get to the admin area.

This happens usually on the first login after the browser is opened. I just tried it again and it worked, so it's not consistent.

2
JamesSAEP
Re: Admin Login problems
  • 2005/9/27 15:08

  • JamesSAEP

  • Just can't stay away

  • Posts: 732

  • Since: 2005/2/28


Is there a change in the url from view -> login ->admin?

Ex. http://www.site.com and http://site.com

3
TopKnot
Re: Admin Login problems
  • 2005/9/27 22:03

  • TopKnot

  • Just popping in

  • Posts: 70

  • Since: 2005/9/27


I have the same exact problem as jburnham...

As Beavis wondered "Is there a change in the url from view -> login ->admin?"

The answer is NO.

Have XOOPS 2.0.13.1 installed.
Using Firefox, Netscape and IE when having the problem. Problem occures on 3 different computers that I know...my only 3 computers I use.

Anyone figure this out??????

Thanks for any help!

4
JMorris
Re: Admin Login problems
  • 2005/9/28 0:20

  • JMorris

  • XOOPS is my life!

  • Posts: 2722

  • Since: 2004/4/11


The url change problem (http://www.domain.com >> domain.com) is the only issue I know of that causes this in the 2.0.x branch.

Have you checked your browser setting? Do you use a third-party application that blocks HTTP Referer, like ZoneAlarm or Norton AV?

Seems really strange that it is intermittent.

Sorry I cannot be more helpful.

James
Insanity can be defined as "doing the same thing over and over and expecting different results."

Stupidity is not a crime. Therefore, you are free to go.

5
jburnham
Re: Admin Login problems
  • 2005/9/28 2:09

  • jburnham

  • Just popping in

  • Posts: 3

  • Since: 2005/9/27


YES! it does change from http://www.preservingfishtown.org to preservingfishtown.org during login. I am assuming this is screwing up the session since it uses a session "cookie" tied to that domain with the www. I reproduced it several times. If I visit the site without the "www", it works fine.

Is this resolved in later releases? I installed this through Fantastico so I am stuck with that version, but I can probably overwrite that version with a dowloaded copy.

6
JMorris
Re: Admin Login problems
  • 2005/9/28 2:21

  • JMorris

  • XOOPS is my life!

  • Posts: 2722

  • Since: 2004/4/11


Ahh.. Good! This is an easy fix.

chmod your mainfile.php to 644 and edit it in the following section...

Change:
// XOOPS Virtual Path (URL)
    // Virtual path to your main XOOPS directory WITHOUT trailing slash
    // Example: define('XOOPS_URL', 'http://preservingfishtown.org');
    
define('XOOPS_URL''http://preservingfishtown.org');


To:
// XOOPS Virtual Path (URL)
    // Virtual path to your main XOOPS directory WITHOUT trailing slash
    // Example: define('XOOPS_URL', 'http://www.preservingfishtown.org');
    
define('XOOPS_URL''http://www.preservingfishtown.org');


Remember to change your mainfile.php back to chmod 444 after making your changes.

This can happen if you set your site up using preservingfishtown.org instead of http://www.preservingfishtown.org but you access your site using http://www.preservingfishtown.org ever since setup. It can also be because of a server misconfiguration. I had one domain that would not resolve at all unless you added www. to it. It was a server DNS issue.

Hope this helps.

James
Insanity can be defined as "doing the same thing over and over and expecting different results."

Stupidity is not a crime. Therefore, you are free to go.

7
jburnham
Re: Admin Login problems
  • 2005/9/28 2:34

  • jburnham

  • Just popping in

  • Posts: 3

  • Since: 2005/9/27


Beat you to the fix! As soon as I read your first note, the light went on in my head. It worked. Thanks.

I also tried changing the path to: 'http://'.$SERVER_NAME

So the variable would load with whatever the user entered, but it ends up with the "www" at the beginning anyway.

8
JMorris
[SOLVED] Admin Login problems
  • 2005/9/28 3:00

  • JMorris

  • XOOPS is my life!

  • Posts: 2722

  • Since: 2004/4/11


Hehe! Good deal! At least you got it fixed, and that's what's important at the end of the day.

Happy XOOPS'ing!

James
Insanity can be defined as "doing the same thing over and over and expecting different results."

Stupidity is not a crime. Therefore, you are free to go.

Login

Who's Online

454 user(s) are online (89 user(s) are browsing Support Forums)


Members: 0


Guests: 454


more...

Donat-O-Meter

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

Latest GitHub Commits