| Author |
Message |
mindozza
Nuke Soldier


Joined: Jan 24, 2003
Posts: 26
Location: Lithuania
|
Posted:
Thu Feb 13, 2003 11:36 am |
  |
I am already second week online 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
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... |
|
|
   |
 |
mikem
Theme Guru


Joined: Jan 13, 2003
Posts: 1582
Location: Corn fields of Indiana
|
Posted:
Thu Feb 13, 2003 1:45 pm |
  |
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 |
|
|
   |
 |
mindozza
Nuke Soldier


Joined: Jan 24, 2003
Posts: 26
Location: Lithuania
|
Posted:
Thu Feb 13, 2003 10:34 pm |
  |
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. |
|
|
   |
 |
ArtificialIntel

Joined: Jan 31, 2004
Posts: -88
|
Posted:
Fri Feb 14, 2003 4:27 am |
  |
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 |
|
|
   |
 |
mikem
Theme Guru


Joined: Jan 13, 2003
Posts: 1582
Location: Corn fields of Indiana
|
Posted:
Fri Feb 14, 2003 5:16 am |
  |
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
 |
|
|
   |
 |
ArtificialIntel

Joined: Jan 31, 2004
Posts: -88
|
Posted:
Fri Feb 14, 2003 5:21 am |
  |
WinZIP will unpack both layers simultaneously.
ArtificialIntel |
|
|
   |
 |
mindozza
Nuke Soldier


Joined: Jan 24, 2003
Posts: 26
Location: Lithuania
|
Posted:
Fri Feb 14, 2003 10:06 am |
  |
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? |
|
|
   |
 |
ArtificialIntel

Joined: Jan 31, 2004
Posts: -88
|
Posted:
Fri Feb 14, 2003 10:21 am |
  |
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 |
|
|
   |
 |
mikem
Theme Guru


Joined: Jan 13, 2003
Posts: 1582
Location: Corn fields of Indiana
|
Posted:
Fri Feb 14, 2003 12:06 pm |
  |
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.
 |
|
|
   |
 |
mindozza
Nuke Soldier


Joined: Jan 24, 2003
Posts: 26
Location: Lithuania
|
Posted:
Sat Feb 15, 2003 1:16 am |
  |
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 (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. |
|
|
   |
 |
mikem
Theme Guru


Joined: Jan 13, 2003
Posts: 1582
Location: Corn fields of Indiana
|
Posted:
Sat Feb 15, 2003 4:51 am |
  |
I just compared your code on those lines in those files with the ones from my Nuke package.
They ALL match EXACTLY.
So we are back to square one.
mikem |
|
|
   |
 |
chatserv
General


Joined: Jan 12, 2003
Posts: 3128
Location: Puerto Rico
|
Posted:
Sat Feb 15, 2003 4:58 am |
  |
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 |
|
    |
 |
|
|