Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Modules
Author Message
dingfelder
Hangin' Around



Joined: Jan 18, 2005
Posts: 45
Location: New Zealand

PostPosted: Mon Dec 05, 2005 2:46 am Reply with quote

After installing the module (uploading it, running the sql script and enabling in admin) when I go to the module (http://myurl.com/modules.php?name=Guiki) all I see is:

You can't access this file directly...

suggestions?
 
View user's profile Send private message Visit poster's website
Guardian2003
Site Admin



Joined: Aug 28, 2003
Posts: 6799
Location: Ha Noi, Viet Nam

PostPosted: Mon Dec 05, 2005 3:53 am Reply with quote

This is related to a normal permissions errors.
Is this an older module being used on a fairly late version of nuke?

If you can post a link to the module download that might be helpful.
 
View user's profile Send private message Send e-mail
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Mon Dec 05, 2005 7:22 am Reply with quote

Also, have you tried searching the forums for You can't access this file directly?
 
View user's profile Send private message
dingfelder







PostPosted: Mon Dec 05, 2005 2:07 pm Reply with quote

the module is the wiki module raven wrote about here: [ Only registered users can see links on this board! Get registered or login! ]

Regarding searching, I really dislike the search tool but did try and use it.

Search found 196 matches

This is why I prefer a wiki to generic forums for info retrieval. Smile *good* information is way to hard to find in forums, with literally hundreds of posts talking about sililar issues and all having different info

Interestingly, the first 10 or so posts I looked in contained text where raven says: Search the forums for can't access this file directly Smile
or else they talked about different modules with the same message but different causes (missing variables etc)

The only interesting thing I came up with is:

Nuke patched checks module file access with:
Code: ‹ Select ›
if ( !defined('MODULE_FILE') )
{
die("You can't access this file directly...");
}

Unpatched Nuke versions older than 7.7 don't use that, which is why two versions are needed, not everyone uses Nuke Patched.

Im using 7.6 btw.

also, I did n0t see any posts related to file permissions
 
Raven







PostPosted: Mon Dec 05, 2005 2:23 pm Reply with quote

Most modules from 7.6 start of with this

if (!eregi("modules.php", $_SERVER['PHP_SELF'])) {
die ("You can't access this file directly...");
}


That will be the source of your problem. Have you fixed it?
 
dingfelder







PostPosted: Mon Dec 05, 2005 3:02 pm Reply with quote

ok, just so I am clear, the module (as provided, out of the box so to speak) is not compatable with 7.6 or lower.

To make it compatable with 7.6, I need to change the code in the top of the module manually?

I can do this, but think the module's install instructions are seriously lacking if they do not mention what should be done, espessially for major nuke versions like 7.6.

Cheers!

Ding
 
Raven







PostPosted: Mon Dec 05, 2005 3:07 pm Reply with quote

I know nothing at all of the application. I posted a News item, that's all. I'm just saying that that is where that message comes from. Contact the author at his website for more help.


Last edited by Raven on Mon Dec 05, 2005 3:19 pm; edited 1 time in total 
dingfelder







PostPosted: Mon Dec 05, 2005 3:13 pm Reply with quote

I hear you loud and clear Raven.

I have never had an issue with your distributions... I it just this module Smile

I posted a message on their site but have not gotten any response yet. I was just hoping that he might be checking this list since it is pretty active.

Keep up the good work.

Cheers,

Ding
 
dingfelder







PostPosted: Mon Dec 05, 2005 3:23 pm Reply with quote

Looking again at hist site, I see the fine print:

For PHP-Nuke versions older than 7.7 use version 1.1.0

grrr.

I think that 7.6 is much more stable than some of the newer nuke releases, so supporting it is a nobrainer if you want people to use your module.

Having said that, I noticed that he took off the copyright notice on his nuke site, so I am not too sure I want to play there anyway Very Happy
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Modules

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 ©