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


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

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

To those who have written modules that work under 7.4 and below, get ready for a shock moving to 7.6.

If you find yourself having an issue once you make the necessary changes to case, link, and the actual admin file (you must now put these under an 'admin' directory under the regular module, renaming them case.php, links.php, and index.php).

One quick way to troubleshoot Access Denied errors to at least find out where the error is coming from is to put a custom error message in each of the three files. I did this for 2 out of the 3, as I forgot to do it in the index.php file until long into the fix...

Example:

In links.php, put in where it says
Code:

if ( !defined('ADMIN_FILE') )
{
   die ("Access Denied");
}



Replace it with
Code:

if ( !defined('ADMIN_FILE') )
{
   die ("Link - Access Denied");
}


For case.php

Replace
Code:
 die ("Access Denied");


with
Code:
die ("Case - Access Denied");


And in index.php replace
Code:
die ("Access Denied");

with
Code:
 die ("Module - Access Denied");


If you STILL get an error, and it isn't Link, Case, or Module Access Denied, you will know that your error lies somewhere outside your custom program.

For me, alas, it was in the Module - the if statements in the module worked only under 7.4 - as the database for authors changed considerably.

Hope this helps someone, it took me way too long to troubleshoot my issues...

-sting
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 15235
Location: Kansas

PostPosted: Mon Aug 01, 2005 11:12 pm Reply with quote Back to top

worship And in honor of your hard work, I even made this a sticky. Thanks for sharing.
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
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