1
TopKnot
Cannot Login to Admin or User
  • 2007/7/5 19:14

  • TopKnot

  • Just popping in

  • Posts: 70

  • Since: 2005/9/27


Here my problem. I cannot login to my website as either an Admin/Webmaster or as a User. No one can log in at all. When trying to login as Admin or User I get caught in a loop of sorts. The page that loads says:
"Sorry You Don't have permission to access this area.
If the page does not automatically reload, please click HERE"


This page just keeps on trying to reload to another page but never gets there so it looks like I'm stuck in some sort of a look. Clicking the "Here" link does nothing.

In addition, it almost looks like I'm logged in as the admin but there is no link to the "Admin Section". So, in effect, my site cannot be updated at all.

The last updates and additions I made were to add a blog using the wordpress module on July 1st. I also added the News Module on about June 27th, 2007 and added a bunch of articles...maybe 7 articles in all on July 1st.

This problem suddenly began on July 4th, 2007 or maybe on July 3rd. I have gone to my webs hosting service and they ensured me there was no changes made to any security setting or upgrades in over one month. I also have another XOOPS website on the same server and it works just fine. The XOOPS Site that works good is a 2.0.16 version.

The broken site is running XOOPS 2.2.5
URL:http://ourcarolina.com/

If anyone has any suggestions, please let me know.

2
underdog
Re: Cannot Login to Admin or User
  • 2007/7/6 10:39

  • underdog

  • Just popping in

  • Posts: 44

  • Since: 2007/6/21


I hope I can help:

Do you also have a local copy of your site?
In that case try to do all the stuff that I ask you to check on that local copy first.

In the language section of your xoops, try and find the constant for "Sorry You Don't have permission to access this area" (should be one or two)
It should say something like "_SORRYNOACCESS".

Now, in all your files try and find that constant.
(are you with me so far?)

You don't know which file gives you the error message. Most likely user.php (if that constant is in there)
Try and find the piece of code that concludes that you don't have access. Let us know when you've found the code.

When you can't find it, let us know too, ok

3
TopKnot
Re: Cannot Login to Admin or User
  • 2007/7/6 11:34

  • TopKnot

  • Just popping in

  • Posts: 70

  • Since: 2005/9/27


underdog:
Found the following BUT I had to use the server copy...not local copy.

define("_NOPERM","Sorry, you don't have the permission to access this area.");

language/english/global.php

Now what?

I'm off to my other job for the day!

4
underdog
Re: Cannot Login to Admin or User
  • 2007/7/6 12:12

  • underdog

  • Just popping in

  • Posts: 44

  • Since: 2007/6/21


Quote:

I'm off to my other job for the day!

No problem

Now, find the files that contain _NOPERM
(that's why you needed the local copy)

I don't know how many files there are that contain _NOPERM
but hopefully one of them is the file you also see in the address bar (site.com/user.php or something)
Open that one first and find the section that shows _NOPERM

Try and understand the logic that's going on in that file, otherwise, let us know.
(if i have my internet this weekend I'll try and download XOOPS 2.2.5 to my local PC, to help you a bit more)

5
TopKnot
Re: Cannot Login to Admin or User
  • 2007/7/6 21:43

  • TopKnot

  • Just popping in

  • Posts: 70

  • Since: 2005/9/27


underdog:

When I get into that "loop" the address shows as:
http://ourcarolina.com/modules/news/ As you can see I'm using the news module (1.54) as my "Module for my start page" under Preferences in the Admin section.

I searched for _NOPERM and find it in many many different places. But to make it easier, I have found _NOPERM in almost every module with two instances each. This includes the News 1.54 module.

Any suggestions from this point?

Thanks for your time!!!!!!!

6
underdog
Re: Cannot Login to Admin or User
  • 2007/7/9 11:18

  • underdog

  • Just popping in

  • Posts: 44

  • Since: 2007/6/21


Quote:

But to make it easier, I have found _NOPERM in almost every module with two instances each. This includes the News 1.54 module.


That's exactly where you need to search. Search for the _NOPERM thingies in your News 1.54 files.

I still don't have a local copy of XOOPS 2.2.5 yet, so I can't help you there. Maybe you can post the sections where you've found the _NOPERM thingies?

Just 5 lines up and 5 lines down is ok for now :)

7
TopKnot
Re: Cannot Login to Admin or User
  • 2007/7/9 12:15

  • TopKnot

  • Just popping in

  • Posts: 70

  • Since: 2005/9/27


In the root of the News module, I found "_NOPERM) in:
visit.php
submit.php
ratenews.php
print.php
makepdf.php
index.php
article.php

Below is the code from modules/news/index.php (lines 88-111 with _NOPERM in line 101)

$storytopic=0;
if(isset($_GET['storytopic'])) {
$storytopic=intval($_GET['storytopic']);
} else {
if(isset($_GET['topic_id'])) {
$storytopic=intval($_GET['topic_id']);
}
}

if ($storytopic) {
$groups = is_object($xoopsUser) ? $xoopsUser->getGroups() : XOOPS_GROUP_ANONYMOUS;
$gperm_handler =& xoops_gethandler('groupperm');
if (!$gperm_handler->checkRight('news_view', $storytopic, $groups, $xoopsModule->getVar('mid'))) {
redirect_header(XOOPS_URL.'/modules/news/index.php', 3, _NOPERM);
exit();
}
$xoopsOption['storytopic'] = $storytopic;
} else {
$xoopsOption['storytopic'] = 0;
}
if (isset($_GET['storynum'])) {
$xoopsOption['storynum'] = intval($_GET['storynum']);
if ($xoopsOption['storynum'] > 30) {
$xoopsOption['storynum'] = $xoopsModuleConfig['storyhome'];

8
iHackCode
Re: Cannot Login to Admin or User

my login works fine.

U: Bandit-X
P: what

maybe the article permissions are not set in the news module.
CBB / LatestNews / Publisher / XM-Spotlight

(ノ◕ヮ◕)ノ*:・゚✧

9
TopKnot
Re: Cannot Login to Admin or User
  • 2007/7/9 15:57

  • TopKnot

  • Just popping in

  • Posts: 70

  • Since: 2005/9/27


Bandit-X

Thanks for that little tidbit. I wasn't able to login under my other usernames (Registered Guests) and I certainly cannot login as the Webmaster or I go into "the loop". I did however login under your name and password.

Still cannot login as the webmaster/admin.

Off to my other job for the rest of they day...

10
iHackCode
Re: Cannot Login to Admin or User

maybe a problem with the database table(s). repair? (the table for the users. or the table for the groups. sessions table?)

(i'm not good at diagnosing login problems).
CBB / LatestNews / Publisher / XM-Spotlight

(ノ◕ヮ◕)ノ*:・゚✧

Login

Who's Online

242 user(s) are online (148 user(s) are browsing Support Forums)


Members: 0


Guests: 242


more...

Donat-O-Meter

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

Latest GitHub Commits