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, 147 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 - DIR structure problems:(no such DIR in tar.gz archive) ?? [ ]
 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
mindozza
Nuke Soldier
Nuke Soldier


Joined: Jan 24, 2003
Posts: 26

Location: Lithuania

PostPosted: Thu Feb 13, 2003 11:36 am Reply with quoteBack to top

I am already second week online Shocked trying to find out is there a possibility to launch a php-nuke site without problems. For now it looks impossible...
Still, i'll try to get it on my server work properly Twisted Evil
So, lets start again form the beginning:
1. Placed phpnuke files on server (all in binary mode, directories chmoded to 777, files to 666).
2. Ran installation - successfull (76 tables created)
3. A PROBLEM : On the top of the page i get:
"Warning: file_exists() [function.file-exists]: Unable to access themes/DeepBlue/modules/Submit_News/index.php in /www/data/phpn6/modules.php on line 29"
This problem appears every time, whem i click on the separate modules.
<b>For example: I click on "TOP 10", so i get:</b>
"Warning: file_exists() [function.file-exists]: Unable to access themes/DeepBlue/modules/Top/index.php in /www/data/phpn6/modules.php on line 29"
<b> If i click "Surveys", i get:</b>
"Warning: file_exists() [function.file-exists]: Unable to access themes/DeepBlue/modules/Surveys/index.php in /www/data/phpn6/modules.php on line 29"

It is interesting, because there were no such directories in the phpnuke6.0
package, like "themes/DeepBlue/modules/Surveys/".
Create those directories manually? And which "index.php" to put there?

I'll keep on with my problems in another post.
Mz. Juf...
Find all posts by mindozzaView user's profileSend private message
mikem
Theme Guru
Theme Guru


Joined: Jan 13, 2003
Posts: 1582

Location: Corn fields of Indiana

PostPosted: Thu Feb 13, 2003 1:45 pm Reply with quoteBack to top

It sounds like your entire directory structure for your Nuke upload is screwy.

You should have a folder in the Nuke package you extracted called HTML...did you?

All you should do at that point is UPLOAD all the files and folders in that HTML folder to your FTP root where you want your Nuke site. The file structure should stay just like it is, just drag everything in the html folder to your ftp, don't change anything.

As for the CHMOD. In Nuke6.0 I have NEVER had to CHMOD anything, so why you are CHMOD'ing anything is beyond me...Maybe it says that in the README...I dunno.


Quote:
trying to find out is there a possibility to launch a php-nuke site without problems


Thousands of users have setup PHP-Nuke successfully without a hitch, But you will still have quite a few users that do have problems...just try and work through them..we are here to help, not discourage....

mikem
Find all posts by mikemView user's profileSend private message
mindozza
Nuke Soldier
Nuke Soldier


Joined: Jan 24, 2003
Posts: 26

Location: Lithuania

PostPosted: Thu Feb 13, 2003 10:34 pm Reply with quoteBack to top

I have now 'HTML" directory and all the contents in it from tar.gz archive.
Please, if you have unzipped phpnuke archive on your computer, check if there is such DIR structure:

themes/Theme name/modules/News/
themes/Theme name/modules/Top/
themes/Theme name/modules/Surveys/, etc..
In general the structure, that error message requires on my site is:

themes/Theme name/modules/Module name/module folder contents

Why is so, because, as extract tar.gz on my computer, i do not see such DIR structure. It looks, that i have to add those directories and their contents manually.

So, how is with your extracted achive DIR structure?

Thanks.
Find all posts by mindozzaView user's profileSend private message
ArtificialIntel



Joined: Jan 31, 2004
Posts: -88


PostPosted: Fri Feb 14, 2003 4:27 am Reply with quoteBack to top

that dir structure is wrong.

The News, Surveys, Your_Account etc. dirs should be in teh /modules/ directory off the site root.

All that should be in the themes directory is the theme folder itself, and inside them, folders for images and styles.

ArtificialIntel
Find all posts by ArtificialIntelView user's profileSend private message
mikem
Theme Guru
Theme Guru


Joined: Jan 13, 2003
Posts: 1582

Location: Corn fields of Indiana

PostPosted: Fri Feb 14, 2003 5:16 am Reply with quoteBack to top

This is what you should have after you extract the Contents. The tar.gz is 2 compressions. ONce you extract once, you will get another compressed file. You then have to un-tar/un-zip it also.
Then you will have this

Image
Find all posts by mikemView user's profileSend private message
ArtificialIntel



Joined: Jan 31, 2004
Posts: -88


PostPosted: Fri Feb 14, 2003 5:21 am Reply with quoteBack to top

WinZIP will unpack both layers simultaneously.

ArtificialIntel
Find all posts by ArtificialIntelView user's profileSend private message
mindozza
Nuke Soldier
Nuke Soldier


Joined: Jan 24, 2003
Posts: 26

Location: Lithuania

PostPosted: Fri Feb 14, 2003 10:06 am Reply with quoteBack to top

My DIR structure on the server is correct (The same as you wrote), and the same as i get it, when extracted the archive.
But, when i load my page, i see an error:
<b>"Warning: file_exists() [function.file-exists]: Unable to access themes/DeepBlue/modules/News/index.php in /www/data/phpn6/index.php on line 46"</b>.

How it can inquiry for such directory, if there is no such DIR structure???
There is no <b>"themes/DeepBlue/modules/News/"</b> on my server, that is why i am asking, <b> should i create it manually???</b>

Maybe there are problems in other files, which are programmed to look for files in such DIR structure, which in fact does not exist?
Find all posts by mindozzaView user's profileSend private message
ArtificialIntel



Joined: Jan 31, 2004
Posts: -88


PostPosted: Fri Feb 14, 2003 10:21 am Reply with quoteBack to top

did you upload the files in binary mode? cause it seems like ur modules.php is calling the wrong thing - suggesting that it's corrupted somehow.

ArtificialIntel
Find all posts by ArtificialIntelView user's profileSend private message
mikem
Theme Guru
Theme Guru


Joined: Jan 13, 2003
Posts: 1582

Location: Corn fields of Indiana

PostPosted: Fri Feb 14, 2003 12:06 pm Reply with quoteBack to top

So your directory structure on your server looks like this?
If it does, then I recommend re-uploading everything to make sure there was no files that got corrupted somehow during upload.

Image
Find all posts by mikemView user's profileSend private message
mindozza
Nuke Soldier
Nuke Soldier


Joined: Jan 24, 2003
Posts: 26

Location: Lithuania

PostPosted: Sat Feb 15, 2003 1:16 am Reply with quoteBack to top

Could you please, copy and paste here (or compare) the code text from those files from your phpnuke6.0:

1. Index.php (from the main directory ("HTML")
In my file, in line <b>46</b> i have this code:
<b>"if (file_exists("themes/$ThemeSel/modules/$name/$mod_file.php")) {"</b>
It is obvious, that there is no "modules" DIR under the "Themes/themes name" DIR.
That is why i get this error Smile (i think so, maybe i am wrong).

2. mainfile.php (from the main directory ("HTML"):
In my file, in line <b>81,82</b> i have this code:
<b>"if (file_exists("modules/$module/language/lang-$currentlang.php")) {
if ($module == admin) {"</b>

3. modules.php (from the main directory ("HTML")
In my file, in line <b>29</b> i have this code:
<b>"if (file_exists("themes/$ThemeSel/modules/$name/$file.php")) {"</b>

I think, that is it obvious, that the wrong DIR structure is coded in those files. Just take a look at the code.
I've checked, that those files were not corrupted during the upload to my server. (those codes are just taken from extracted archive on my computer (not from server).

Can you copare it with your files code?
What should i change, or maybe these codes are good??

Mindozza.
Find all posts by mindozzaView user's profileSend private message
mikem
Theme Guru
Theme Guru


Joined: Jan 13, 2003
Posts: 1582

Location: Corn fields of Indiana

PostPosted: Sat Feb 15, 2003 4:51 am Reply with quoteBack to top

I just compared your code on those lines in those files with the ones from my Nuke package.

They ALL match EXACTLY. Sad

So we are back to square one. Confused

mikem
Find all posts by mikemView user's profileSend private message
chatserv
General
General


Joined: Jan 12, 2003
Posts: 3128

Location: Puerto Rico

PostPosted: Sat Feb 15, 2003 4:58 am Reply with quoteBack to top

Try making the following change to modules.php:

Around lines 28-31 find:
Code:

            $ThemeSel = get_theme();
            if (file_exists("themes/$ThemeSel/modules/$name/$file.php")) {
                $modpath = "themes/$ThemeSel/";
            }

And change to:
Code:

            $ThemeSel = get_theme();
            if (file_exists("themes/$ThemeSel/modules/$name/$file.php")) {
                $modpath = "themes/$ThemeSel/";
            } else {
                $modpath = "";
            }

_________________
Feed a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime.
ScriptHeaven | NukeResources
Find all posts by chatservView user's profileSend private messageVisit poster's website
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 - TUTTISU E-COMMERCE http://www.tuttisu.it
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.740 Seconds - 113 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::