You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 70 guest(s) and 0 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - Getting "You can't access this file directly..." [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
delectatus
Nuke Cadet
Nuke Cadet


Joined: Jul 14, 2008
Posts: 8


PostPosted: Tue Jul 22, 2008 6:33 pm Reply with quoteBack to top

When I try to access my index.php page, I get the message in the header. This started after I edited the style.css file in my theme and the index.php file in modules/Contents.

Any ideas on what I could have screwed up? All I did was create classes for displaying the contents of page_header, text, page_footer, and signature boxes and then modify the echo statements.

I reset all my file permissions, but that didn't do anything.
Find all posts by delectatusView user's profileSend private message
Evaders99
Site Admin
Site Admin


Joined: Aug 17, 2003
Posts: 12389


PostPosted: Tue Jul 22, 2008 6:38 pm Reply with quoteBack to top

Make sure you are going through modules.php?name=Content and not directly through modules/Content/index.php

_________________
Helping those that help themselves
Read FIRST or DIE!

"Fighting is terrible, but not as terrible as losing the will to fight."
Star Wars Rebellion Network - Need Help? Evaders Squadron Coding
Find all posts by Evaders99View user's profileSend private messageVisit poster's websiteAIM Address
delectatus
Nuke Cadet
Nuke Cadet


Joined: Jul 14, 2008
Posts: 8


PostPosted: Wed Jul 23, 2008 6:13 am Reply with quoteBack to top

That makes sense. However, I'm getting the message on my root index page.

www.strengthandhonorlive.com/

I never changed anything on my root index page so I don't know what happened.

Thanks for the help. I really appreciate it!
Find all posts by delectatusView user's profileSend private message
delectatus
Nuke Cadet
Nuke Cadet


Joined: Jul 14, 2008
Posts: 8


PostPosted: Wed Jul 23, 2008 7:20 am Reply with quoteBack to top

When I comment out the line this code in index.php:

Code:
if (!defined('MODULE_FILE')) {
    die ("Died in /index.php (1): You can't access this file directly...");
}


The page opens, but not to the correct page, but to the contents list. I also get these warnings at the top:

Quote:
Warning: get_lang(modules/html/language/lang-english.php) [function.get-lang]: failed to open stream: No such file or directory in /homepages/26/d211395921/htdocs/strengthandhonorlive/phpnuke/html/mainfile.php on line 364

Warning: get_lang() [function.include]: Failed opening 'modules/html/language/lang-english.php' for inclusion (include_path='.:/usr/lib/php') in /homepages/26/d211395921/htdocs/strengthandhonorlive/phpnuke/html/mainfile.php on line 364



I am running 8.0.
Find all posts by delectatusView user's profileSend private message
simrin
Support Mod
Support Mod


Joined: Jul 17, 2003
Posts: 519

Location: In front of a computer, who wants to know

PostPosted: Wed Jul 23, 2008 7:26 am Reply with quoteBack to top

You said you have made no direct edits to the index.php. You can try copying over a clean index.php from the installation source and try that. Also double check all your permissions. Maybe a permission on a file referenced by index.php got tweaked.

_________________
NC Support Mod

Are you there? No I am a figment of your imagination.

www.hostileguild.net
Find all posts by simrinView user's profileSend private messageSend e-mailVisit poster's website
delectatus
Nuke Cadet
Nuke Cadet


Joined: Jul 14, 2008
Posts: 8


PostPosted: Wed Jul 23, 2008 7:37 am Reply with quoteBack to top

simrin wrote:
You said you have made no direct edits to the index.php. You can try copying over a clean index.php from the installation source and try that. Also double check all your permissions. Maybe a permission on a file referenced by index.php got tweaked.


Thanks a lot!
Find all posts by delectatusView user's profileSend private message
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next 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



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by · TOGETHER TEAM srl ITALY http://www.togetherteam.it · DONDELEO E-COMMERCE http://www.DonDeLeo.com
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.203 Seconds - 253 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::