PHP Web Host - Quality Web Hosting For All PHP Applications Just Great Software
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
Donovan
Client


Joined: Oct 07, 2003
Posts: 691
Location: Ohio

PostPosted: Thu Feb 03, 2005 10:57 am Reply with quote Back to top

I added an admin to help me administrate some stuff on the site but when I tested his account I got the

Quote:
You do not have access to this page


I found this odd and was doing some research but came up empty. The next couple days I tested a coule different things but no luck. Today, since it is the start of a new month I went to my Nuke Treasury module and wanted to reconcile but I get the same message:
Quote:

You do not have access to this page


and I'm a superuser!

This has always worked before but now all of a sudden I get this error.

For the life of me I don't know what has happened. Nothing new has been installed for months now. I can still access several modules and admin them but I can't get into my Nuke Treasury module or add new administrators and get them to access modules that I have given them rights to.

This is strange.

/Edit

I run the Protector System for security.


Last edited by Donovan on Thu Feb 03, 2005 11:10 am; edited 1 time in total
View user's profile Send private message Visit poster's website ICQ Number
sixonetonoffun
Spouse Contemplates Divorce


Joined: Jan 02, 2003
Posts: 2363

PostPosted: Thu Feb 03, 2005 11:03 am Reply with quote Back to top

Nuke Treaury readme states that it is accessable only by the God admin.
View user's profile Send private message
sixonetonoffun
Spouse Contemplates Divorce


Joined: Jan 02, 2003
Posts: 2363

PostPosted: Thu Feb 03, 2005 11:08 am Reply with quote Back to top

Ok now to end the confusion only the god admin is allowed to add admins.

So is this making a little more sense or is there more then just these 2 functions giving you grief?
View user's profile Send private message
Donovan
Client


Joined: Oct 07, 2003
Posts: 691
Location: Ohio

PostPosted: Thu Feb 03, 2005 11:15 am Reply with quote Back to top

Doesn't matter what account I use. The one I have always used or the God Account.
View user's profile Send private message Visit poster's website ICQ Number
Donovan
Client


Joined: Oct 07, 2003
Posts: 691
Location: Ohio

PostPosted: Thu Feb 03, 2005 11:16 am Reply with quote Back to top

I just used the God Account and still the same issue with adding Admins. The new account get's the same message.
View user's profile Send private message Visit poster's website ICQ Number
sixonetonoffun
Spouse Contemplates Divorce


Joined: Jan 02, 2003
Posts: 2363

PostPosted: Thu Feb 03, 2005 11:19 am Reply with quote Back to top

Ok then you might have an issue with the number of fields in the nuke_authors table not matching the number of fields in the /admin/modules/authors.php

You will have to take a structure only dump of the authors table and count the number of fields in the table. Then compare that with the number of fields in the insert and/or update fields in the /admin/modules/authors.php file.

If for some reason they match but I doubt they will try uploading the admin files over again.
View user's profile Send private message
sixonetonoffun
Spouse Contemplates Divorce


Joined: Jan 02, 2003
Posts: 2363

PostPosted: Thu Feb 03, 2005 11:24 am Reply with quote Back to top

I just noticed this {I run the Protector System for security.}

This is most likely the issue reread the install directions it looks like you missed a step.
View user's profile Send private message
Donovan
Client


Joined: Oct 07, 2003
Posts: 691
Location: Ohio

PostPosted: Thu Feb 03, 2005 11:34 am Reply with quote Back to top

I have been running Protector for 6 months now. Why would this issue reveal itself now, when I had no problems before.

I am new to Ravens Web Hosting and just arrived a month ago as a new client. I moved my site here from IPowerweb. Could something have gotten messed up with in the move?

I want to move my security to Sentinal, but have found no instructions on how to remove Protector anywhere. I guess I'll just reverse engineer the install instructions and see if that fixes it.

Thanks for your help.
View user's profile Send private message Visit poster's website ICQ Number
sixonetonoffun
Spouse Contemplates Divorce


Joined: Jan 02, 2003
Posts: 2363

PostPosted: Thu Feb 03, 2005 11:42 am Reply with quote Back to top

Protector might not be the issue but I'd think that the fields are not matching most likely.
It would take only a few minutes to find out.
View user's profile Send private message
Donovan
Client


Joined: Oct 07, 2003
Posts: 691
Location: Ohio

PostPosted: Thu Feb 03, 2005 11:50 am Reply with quote Back to top

The case statment is where I add authors

Code:

case "AddAuthor":
    $add_aid = substr("$add_aid", 0,25);
    $add_name = substr("$add_name", 0,25);
    if (!($add_aid && $add_name && $add_email && $add_pwd)) {
        include("header.php");
        GraphicAdmin();
   OpenTable();
   echo "<center><font class=\"title\"><b>" . _AUTHORSADMIN . "</b></font></center>";
   CloseTable();
   echo "<br>";
        OpenTable();
   echo "<center><font class=\"option\"><b>" . _CREATIONERROR . "</b></font><br><br>"
       ."" . _COMPLETEFIELDS . "<br><br>"
       ."" . _GOBACK . "</center>";
       CloseTable();
   include("footer.php");
   return;
    }
    $add_pwd = md5($add_pwd);
    $result = $db->sql_query("insert into " . $prefix . "_authors values ('$add_aid', '$add_name', '$add_url', '$add_email', '$add_pwd', '0', '$add_radminarticle','$add_radmintopic','$add_radminuser','$add_radminsurvey','$add_radminsection','$add_radminlink','$add_radminephem','$add_radminfaq','$add_radmindownload','$add_radminreviews','$add_radminnewsletter','$add_radminforum','$add_radmincontent','$add_radminency','$add_radminclan','$add_radminsuper','$add_admlanguage','')");
    if (!$result) {
   return;
    }
    Header("Location: admin.php?op=mod_authors");
    break;


Last edited by Donovan on Thu Feb 03, 2005 11:57 am; edited 1 time in total
View user's profile Send private message Visit poster's website ICQ Number
Donovan
Client


Joined: Oct 07, 2003
Posts: 691
Location: Ohio

PostPosted: Thu Feb 03, 2005 11:56 am Reply with quote Back to top

This is in my dump. It doesn't match any in my case statement.

`radminblocker` tinyint(2) NOT NULL default '0',
View user's profile Send private message Visit poster's website ICQ Number
sixonetonoffun
Spouse Contemplates Divorce


Joined: Jan 02, 2003
Posts: 2363

PostPosted: Thu Feb 03, 2005 11:58 am Reply with quote Back to top

Ok something is strange here for sure because there are 23 or so in this function. None of which are the one I'd expect to see for the Protector.

The file looks about right for version phpnuke 7.3 but the authors table sounds more like 7.5-7.6 ??????
View user's profile Send private message
Donovan
Client


Joined: Oct 07, 2003
Posts: 691
Location: Ohio

PostPosted: Thu Feb 03, 2005 12:03 pm Reply with quote Back to top

My dump

Code:

CREATE TABLE `nuke_authors` (
  `aid` varchar(25) NOT NULL default '',
  `name` varchar(50) default NULL,
  `url` varchar(255) NOT NULL default '',
  `email` varchar(255) NOT NULL default '',
  `pwd` varchar(40) default NULL,
  `counter` int(11) NOT NULL default '0',
  `radminarticle` tinyint(2) NOT NULL default '0',
  `radmintopic` tinyint(2) NOT NULL default '0',
  `radminuser` tinyint(2) NOT NULL default '0',
  `radminsurvey` tinyint(2) NOT NULL default '0',
  `radminsection` tinyint(2) NOT NULL default '0',
  `radminlink` tinyint(2) NOT NULL default '0',
  `radminephem` tinyint(2) NOT NULL default '0',
  `radminfaq` tinyint(2) NOT NULL default '0',
  `radmindownload` tinyint(2) NOT NULL default '0',
  `radminreviews` tinyint(2) NOT NULL default '0',
  `radminnewsletter` tinyint(2) NOT NULL default '0',
  `radminforum` tinyint(2) NOT NULL default '0',
  `radmincontent` tinyint(2) NOT NULL default '0',
  `radminency` tinyint(2) NOT NULL default '0',
  `radminsuper` tinyint(2) NOT NULL default '1',
  `admlanguage` varchar(30) NOT NULL default '',
  `radminblocker` tinyint(2) NOT NULL default '0',
  `radminclan` tinyint(2) NOT NULL default '0',
  PRIMARY KEY  (`aid`),
  KEY `aid` (`aid`)
) TYPE=MyISAM;
View user's profile Send private message Visit poster's website ICQ Number
sixonetonoffun
Spouse Contemplates Divorce


Joined: Jan 02, 2003
Posts: 2363

PostPosted: Thu Feb 03, 2005 12:06 pm Reply with quote Back to top

Ok wait don't do that then lol we crossed here.

Thats more then 9 fields.
View user's profile Send private message
sixonetonoffun
Spouse Contemplates Divorce


Joined: Jan 02, 2003
Posts: 2363

PostPosted: Thu Feb 03, 2005 12:14 pm Reply with quote Back to top

This should work for this function but we will have to fix the rest of the file too (the form part).

Code:

case "AddAuthor":
    $add_aid = substr("$add_aid", 0,25);
    $add_name = substr("$add_name", 0,25);
    if (!($add_aid && $add_name && $add_email && $add_pwd)) {
        include("header.php");
        GraphicAdmin();
   OpenTable();
   echo "<center><font class=\"title\"><b>" . _AUTHORSADMIN . "</b></font></center>";
   CloseTable();
   echo "<br>";
        OpenTable();
   echo "<center><font class=\"option\"><b>" . _CREATIONERROR . "</b></font><br><br>"
       ."" . _COMPLETEFIELDS . "<br><br>"
       ."" . _GOBACK . "</center>";
       CloseTable();
   include("footer.php");
   return;
    }
    $add_pwd = md5($add_pwd);
    $result = $db->sql_query("insert into " . $prefix . "_authors values ('$add_aid', '$add_name', '$add_url', '$add_email', '$add_pwd', '0', '$add_radminarticle','$add_radmintopic','$add_radminuser','$add_radminsurvey','$add_radminsection','$add_radminlink','$add_radminephem','$add_radminfaq','$add_radmindownload','$add_radminreviews','$add_radminnewsletter','$add_radminforum','$add_radmincontent','$add_radminency','$add_radminsuper','$add_admlanguage','$add_radminblocker','$add_radminclan')");
    if (!$result) {
   return;
    }
    Header("Location: admin.php?op=mod_authors");
    break;
View user's profile Send private message
Donovan
Client


Joined: Oct 07, 2003
Posts: 691
Location: Ohio

PostPosted: Thu Feb 03, 2005 12:26 pm Reply with quote Back to top

Since I plan on upgrading to 7.5 soon and getting rid of Protector could I get away with just doing this as a temp fix, or do I have to fix the form as well?

Nobody else is a superuser on my site.
View user's profile Send private message Visit poster's website ICQ Number
Donovan
Client


Joined: Oct 07, 2003
Posts: 691
Location: Ohio

PostPosted: Thu Feb 03, 2005 12:30 pm Reply with quote Back to top

Why would this only effect Nuke Treasury?
View user's profile Send private message Visit poster's website ICQ Number
sixonetonoffun
Spouse Contemplates Divorce


Joined: Jan 02, 2003
Posts: 2363

PostPosted: Thu Feb 03, 2005 12:42 pm Reply with quote Back to top

I can't say whats up with that one. To be honest I have no idea I've never used or even installed it for anyone.

For a real quick fix yes I'd remove the protector for Nuke Sentinel then you could drop the radminblocker field and the problem of admin authors would go away.

I don't think you'll gain much by an upgrade right now I'd wait until chatserv finishes the 2.9 patched series files and they've been tested a little before making a switch right now.
View user's profile Send private message
Donovan
Client


Joined: Oct 07, 2003
Posts: 691
Location: Ohio

PostPosted: Tue Feb 15, 2005 9:59 pm Reply with quote Back to top

Well I took off Protector and installed Sentinal 2.1.3, but the problem remains.

Still can't access my Nuke Treasury. It says "You do not have access to this page" and part of the table is missing.
View user's profile Send private message Visit poster's website ICQ Number
Donovan
Client


Joined: Oct 07, 2003
Posts: 691
Location: Ohio

PostPosted: Tue Feb 22, 2005 12:46 pm Reply with quote Back to top

FOUND THE ANSWER!!!


I was having trouble getting into my Nuke Treasury but found this tidbit at
Only registered users can see links on this board!
Get registered or login to the forums!


I used to run their Protector system but switched to Sentinal. Anyway I quickly realized that this was the issue since I used to have Clan_Nuke on my site.

Quote:

Users that have Clan_nuke add-on are experiencing an error with limited admins.
This error causes a message “You do not have access to this page” when the Admin user is not a God.
But it's simple to fix. Just open the file /admin/links/links.clan.php then find the code line:
if ($radminsuper==1) { adminmenu("admin.php?op=ClanAdmin", "Clan_Nuke", "clan.gif"); }
else {die("You do not have access to this page");}
Removing the line else {die("You do not have access to this page");} will fix your problem.

This coding is quite useless, it only lets Superusers in and gives the others
“You do not have access to this page” text, removing it will NOT damage your Clan_Nuke Add-on.

Posted by Mister


Case closed.
View user's profile Send private message Visit poster's website ICQ Number
sixonetonoffun
Spouse Contemplates Divorce


Joined: Jan 02, 2003
Posts: 2363

PostPosted: Tue Feb 22, 2005 3:02 pm Reply with quote Back to top

Thanks for posting back. I'd have never guessed the admin link was at fault.
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2008 by Raven
Proud to be listed at Lobo Links Web Directory

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::

:: fisubice Theme Recoded To 100% W3C CSS & HTML 4.01 Transitional Compliance by Raven and 64bitguy ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum