Author |
Message |
speedx
Hangin' Around

Joined: May 27, 2004
Posts: 42
|
Posted:
Mon Mar 14, 2005 4:58 pm |
|
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 .. |
|
|
|
 |
chatserv
Member Emeritus

Joined: May 02, 2003
Posts: 1389
Location: Puerto Rico
|
Posted:
Tue Mar 15, 2005 6:19 pm |
|
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 |
|
|
|
 |
speedx

|
Posted:
Tue Mar 15, 2005 6:28 pm |
|
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


Joined: Sep 23, 2003
Posts: 456
Location: Somewhere out there...
|
Posted:
Mon Aug 01, 2005 10:34 am |
|
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 |
|
|
 |
 |
sting

|
Posted:
Mon Aug 01, 2005 9:25 pm |
|
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

|
Posted:
Mon Aug 01, 2005 9:39 pm |
|
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


Joined: Aug 07, 2005
Posts: 8
|
Posted:
Mon Aug 08, 2005 9:12 am |
|
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 |
|
|
|
 |
sting

|
Posted:
Mon Aug 08, 2005 9:26 am |
|
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 |
|
|
|
 |
|