Author |
Message |
azism
Worker


Joined: Feb 02, 2005
Posts: 145
Location: Tucson, AZ
|
Posted:
Sat Feb 05, 2005 2:50 pm |
|
I can't access the product reviews portion of my phpNuke site. I get a listing of the reviews, but nothing displays when I select a review. When I select edit (logged in as Admin), I get the message "This function must be passed argument id, or you are not admin."
This is brand new since setting up Sentinel. I know I saw somehting about this somewhere in this forum, but can't locate it now. So, I will ask the question myself.
BTW, so far, this is the only instance of this I have encountered. Hopefully there aren't anymore.
Thanks. |
_________________ Webmaster
TI99ers On-Line User Group
http://www.ti99ers.org/ |
|
|
 |
sixonetonoffun
Spouse Contemplates Divorce

Joined: Jan 02, 2003
Posts: 2496
|
Posted:
Sat Feb 05, 2005 3:12 pm |
|
Remove the santy protection from the beginning of includes/sentinel.php its well commented and easy to spot. If you can use the mod rewrite solution provided in the santy worm thread. |
_________________ [b][size=5]openSUSE 11.4-x86 | Linux 2.6.37.1-1.2desktop i686 | KDE: 4.6.41>=4.7 | XFCE 4.8 | AMD Athlon(tm) XP 3000+ | MSI K7N2 Delta-L | 3GB Black Diamond DDR
| GeForce 6200@433Mhz 512MB | Xorg 1.9.3 | NVIDIA 270.30[/size:2b8 |
|
|
 |
azism

|
Posted:
Sat Feb 05, 2005 3:48 pm |
|
Okay, I found the code in Sentinel.php. Now the reviews page works. Where's this santy worm thread. I don't seem to find anything that means anything to me. |
|
|
|
 |
sixonetonoffun

|
Posted:
Sat Feb 05, 2005 4:00 pm |
|
|
|
 |
azism

|
Posted:
Sat Feb 05, 2005 7:10 pm |
|
You have a comment in the thread about the "SOME-OTHER-PAGE.php". Okay, I have a file listed there. However, it is a shtml, which assumedly is fine. The question now begs to be asked, where should I put it. Or, can I code the entire path. If the entire path, with or without quotes? |
|
|
|
 |
azism

|
Posted:
Sun Feb 13, 2005 10:53 am |
|
All has been working fine, until this morning. I needed to edit a User Account. When I try to go there, it says "Access Denied." I am logged as the administrator. I am using php-Nuke 7.4. How do I get around this error? First time I've tried this function since installing Sentinel.
Thanks in advance! |
|
|
|
 |
azism

|
Posted:
Sat Feb 19, 2005 4:51 am |
|
Any idea on why "Access Denied" only when trying to go to "Edit Users"?
 |
|
|
|
 |
azism

|
Posted:
Wed Feb 23, 2005 10:54 am |
|
I have noticed in the past couple days (can't say why not before) that I am seeing the Access Denied in more than just Edit Users. Although, the Edit Users is the most critical.
Would it be beneifcial for me to uninstall and reinstall Sentinel??? |
|
|
|
 |
azism

|
Posted:
Sat Mar 19, 2005 6:22 pm |
|
... bump...
I haven't heard anymore on this subject. I am still getting the error where I cannot edit my users. Right now the only way I can affect changes on my users is to go into the SQL database. Not what I really want to do.
The command is:
http://www.mysite.org/home/admin.php?op=mod_users
And all I get is a blank screen with the words Access Denied in the upper lefthand corner.
HELP!!!  |
|
|
|
 |
Raven
Site Admin/Owner

Joined: Aug 27, 2002
Posts: 17088
|
Posted:
Sat Mar 19, 2005 7:22 pm |
|
Just comment out the NukeSentinel code in mainfile.php. If the problem persists, it is not NukeSentinel related. Regardless, review this post to see if that may be at the root of your problems http://www.ravenphpscripts.com/postt4928.html |
|
|
|
 |
azism

|
Posted:
Sat Mar 19, 2005 7:43 pm |
|
Interesting. While doing this, I noticed the mod says "$forum_admin". If I go into the forum management, I can edit users. If I try it from the php-Nuke edit users, I get accessed denied. It happens with and without the Sentinel mod.
So, I guess what this says is that it isn't a Sentinel problem. Well, in May I will be off work for a few weeks after surgery. So at that time I will do an upgrade to php-Nuke 7.5 and redo things and see where we go from there.
Thanks for the help. |
|
|
|
 |
Raven

|
Posted:
Sat Mar 19, 2005 8:15 pm |
|
If you want to PM me your
Site URL, god adminid/pass
FTP Url, id/pass
phpMyAdmin url, id/pass
I will take a look. |
|
|
|
 |
Raven

|
Posted:
Sun Mar 20, 2005 6:30 pm |
|
Specifically, your code in modules/users.php has this codeCode:$row = $db->sql_fetchrow($db->sql_query("SELECT radminuser, radminsuper FROM " . $prefix . "_authors WHERE aid='$aid'"));
if (($row['radminuser'] == 1) OR ($row['radminsuper'] == 1)) {
|
However, your nuke_authors table does not contain a column called 'radminuser', therefore it fails the query and won't allow you in. Either correct the table or remove the references to 'radminuser' and it should work. Donations are always welcomed and appreciated  |
Last edited by Raven on Sun Mar 20, 2005 7:23 pm; edited 1 time in total |
|
|
 |
azism

|
Posted:
Sun Mar 20, 2005 7:01 pm |
|
That's because that reference is in the Authors table, not the users table. |
|
|
|
 |
Raven

|
Posted:
Sun Mar 20, 2005 7:22 pm |
|
azism wrote: | That's because that reference is in the Authors table, not the users table. | That was a typo. That is your problem though. Fix it and it works just fine. |
|
|
|
 |
Raven

|
Posted:
Sun Mar 20, 2005 7:29 pm |
|
Also, you did not have any God admins. I corrected the first one to God. |
|
|
|
 |
azism

|
Posted:
Sun Mar 20, 2005 9:32 pm |
|
Wow, were you ever correct. A whole large section, in fact most of the Nuke_Authors tables columns were missing. What I ended up doing was going back through my backups until I found a backup showing the extra columns that were needed. Then I deleted the current authors table and recreated it from the backup script. Now things are working again. I wonder how some much of this particular table disappeared. It's apparently been this way for months.
Thanks Raven. You rock!!!
P.S. Yes, you will be getting another donation from me!!!! A very well deserved donation. |
|
|
|
 |
|