PHP Web Host - Quality Web Hosting For All PHP Applications $35/month $250/year (Unlimited) - $25/month - 200,000 impressions - Your Ad Could be Here - Click For Details
  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
speedx
Hangin' Around


Joined: May 27, 2004
Posts: 42

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

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
The Mouse Is Extension Of Arm


Joined: May 02, 2003
Posts: 1393

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

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
Hangin' Around


Joined: May 27, 2004
Posts: 42

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

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.
View user's profile Send private message Visit poster's website
sting
Involved
Involved


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

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

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
Involved
Involved


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

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

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
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
sting
Involved
Involved


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

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

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
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
sav
New Member
New Member


Joined: Aug 07, 2005
Posts: 8

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

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
Involved
Involved


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

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

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
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
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