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



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

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

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: 17088

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

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