Author |
Message |
dingfelder
Hangin' Around

Joined: Jan 18, 2005
Posts: 45
Location: New Zealand
|
Posted:
Mon Dec 05, 2005 2:46 am |
|
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? |
|
|
|
 |
Guardian2003
Site Admin

Joined: Aug 28, 2003
Posts: 6799
Location: Ha Noi, Viet Nam
|
Posted:
Mon Dec 05, 2005 3:53 am |
|
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. |
|
|
|
 |
Raven
Site Admin/Owner

Joined: Aug 27, 2002
Posts: 17088
|
Posted:
Mon Dec 05, 2005 7:22 am |
|
Also, have you tried searching the forums for You can't access this file directly? |
|
|
|
 |
dingfelder

|
Posted:
Mon Dec 05, 2005 2:07 pm |
|
the module is the wiki module raven wrote about here: http://www.ravenphpscripts.com/article-1760--0-0.html
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. *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
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

|
Posted:
Mon Dec 05, 2005 2:23 pm |
|
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

|
Posted:
Mon Dec 05, 2005 3:02 pm |
|
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

|
Posted:
Mon Dec 05, 2005 3:07 pm |
|
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

|
Posted:
Mon Dec 05, 2005 3:13 pm |
|
I hear you loud and clear Raven.
I have never had an issue with your distributions... I it just this module
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

|
Posted:
Mon Dec 05, 2005 3:23 pm |
|
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  |
|
|
|
 |
|