Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 7.6 Bugs/Fixes
Author Message
speedx
Hangin' Around



Joined: May 27, 2004
Posts: 42

PostPosted: Mon Mar 14, 2005 4:58 pm Reply with quote

So I updated my 7.5 to 7.6 and now when I goto the admin area I click on a module and in the top left corner I get "Access Denied" seems everything works ok but that error on the top left corner...

any thoughts ..
 
View user's profile Send private message Visit poster's website
chatserv
Member Emeritus



Joined: May 02, 2003
Posts: 1389
Location: Puerto Rico

PostPosted: Tue Mar 15, 2005 6:19 pm Reply with quote

Look for duplicate files in the admin/case links or modules folders, i.e. having a admin/case/case.downloads.php which shouldn't exist as they were moved to modules/Module_name/admin and renamed to case.php, also if you renamed admin.php any non core file should be edited to use $admin_file instead of admin.php
 
View user's profile Send private message Visit poster's website
speedx







PostPosted: Tue Mar 15, 2005 6:28 pm Reply with quote

No i didnt rename the admin.php but i did find your post about removing the modules from case, links, modules admin folder .. i had 7.5 installed before. I removed the content, reviews, downloads and the others and its ok now. Also I tried to rename the admin.php to nuke.php and then in the config.php I made it where it says admin_file=nuke but for some reason it did not work I only had like 5 icons in the admin panel. So I renamed it back to admin.php and its ok now.
 
sting
Involved
Involved



Joined: Sep 23, 2003
Posts: 456
Location: Somewhere out there...

PostPosted: Mon Aug 01, 2005 10:34 am Reply with quote

Quote:

Look for duplicate files in the admin/case links or modules folders, i.e. having a admin/case/case.downloads.php which shouldn't exist as they were moved to modules/Module_name/admin and renamed to case.php, also if you renamed admin.php any non core file should be edited to use $admin_file instead of admin.php


Chatserv - could you expand a bit on this?

Did you mean admin/modules/Module_name/admin - and did that also go for links.modulename.php being re-named to links.php?

I have a non-core file that was working great under 7.4, but after an upgrade to 7.6 is hitting the same problem.

Thanks in advance,
-sting
 
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
sting







PostPosted: Mon Aug 01, 2005 9:25 pm Reply with quote

Ok, so I figured out what the new admin scheme looks like, how it works, etc.

Made the appropriate edits, including replacing the admin.php with ". $admin_file".php where necessary.

Copied from the working examples "Web Links" and "Topics" to make the case and links look correct.

Now I see the module in the lower half of the Admin screen, the link looks good, as it did under 7.4.

I hold my breath and click it.

Access Denied.

This is a real problem as its going to really hinder development under 7.6...

Any ideas?

-sting
 
sting







PostPosted: Mon Aug 01, 2005 9:39 pm Reply with quote

Ok... FINALLY... I found it.

For some reason, under the admin module I was using in 7.4, the following code appeared:

Code:


$row = $db->sql_fetchrow($db->sql_query("SELECT radmincontent, radminsuper FROM " . $prefix . "_authors WHERE aid='$aid'"));
if (($row['radmincontent'] == 1) OR ($row['radminsuper'] == 1)) {


Under 7.6 this did not work - a short glance at the 7.6 nuke_authors file revealed no existence of 'radminconent'- I only found this AFTER placing "Module - " at the end of the module where it says "else echo "Access Denied".

I had done this in case and link as it makes it a bit easier to troubleshoot WHERE the actual ACCESS Denied is taking place.

In any case, the above code was changed to
Code:


$row = $db->sql_fetchrow($db->sql_query("SELECT name, radminsuper FROM " . $prefix . "_authors WHERE aid='$aid'"));
if (($row['radminsuper'] == 1) && ($row['name'] == 'God')) {


Once that was put in there and a few global $admin_file s loaded, everything came back together. (So far anyway..)

-sting
 
sav
New Member
New Member



Joined: Aug 07, 2005
Posts: 8

PostPosted: Mon Aug 08, 2005 9:12 am Reply with quote

I had the exact same problem symptom when I down graded from 7.8 to 7.6 All I had to do to fix the problem was to delete all non user modded or added files and then re-copy them from the 7.6 install.

It would seem that deleting and the copying in the install from scratch is better than an overwrite method... (well i'm fairly new to nuke so I guess I am learning slowly).

Cheers,
Mark
 
View user's profile Send private message
sting







PostPosted: Mon Aug 08, 2005 9:26 am Reply with quote

Quote:
(well i'm fairly new to nuke so I guess I am learning slowly).


Almost 2 years (to the day) into nuke, and still feel that way quite often.

HA.

-sting
 
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 7.6 Bugs/Fixes

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
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©