PDA

View Full Version : php nuke help


a66fm
12-10-02, 11:05 AM
i have tried to run php nuke 6 with no luck but 5.6 seems like working.
When i try to upgrade the 5.6 to 6 i get the same error message i got on the clean 6 install after the completed message.
is there anyone that has php nuke 6 running on callisto??

Jade Dragon
12-10-02, 11:24 AM
I have installed/installing several phpnuke6 sites, on various powweb servers. here is one site (http://wizardry-realm.drazanfamily.com)

what particular error does it show?

a66fm
12-10-02, 11:35 AM
i get this
Warning: Failed opening 'themes//theme.php' for inclusion ....
Fatal error: Call to undefined function: themeheader() in ................../header.php on line 47

Jade Dragon
12-10-02, 11:46 AM
ok.

did you follow the tutorial on help.powweb.com?

if you did, I think it was made for a prior 6 release.

in my phpnuke installs I have to keep the mysql as MySQL in the config.php and the includes/sql_layer.php

make sure your database is configured correctly in the config.php

Jade Dragon
12-10-02, 11:48 AM
one other thing,,,,,NEVER change your them to "slash" there's an error in the coding of that theme.

Jade Dragon
12-10-02, 12:18 PM
step one unzip into a local folder,

step two edit (using notepad) the config.php

$dbhost = "server.powweb.com";

$dbuname = "username";

$dbpass = "password";

$dbname = "name of mysql";

$prefix = "nuke";

$user_prefix = "nuke";

$dbtype = "MySQL"; = leave this alone for nuke6


upload everything ~ use ascii setting for php files.

chmod folders to 777
and files to 755

this sets the permissions

Also if your are trying to duplicate installs you may need to either erase the first set or rename the table prefixes.

$prefix = "nuke2";

$user_prefix = "nuke2";

and in the nuke.sql you will have to change the table prefixes.

# Table structure for table 'nuke_access'
#

CREATE TABLE nuke_access (
access_id int(10) NOT NULL auto_increment,
access_title varchar(20) default NULL,
PRIMARY KEY (access_id),
KEY access_id (access_id)
) TYPE=MyISAM;

#
# Dumping data for table 'nuke_access'
#

INSERT INTO nuke_access VALUES (-1,'Deleted');
INSERT INTO nuke_access VALUES (1,'User');
INSERT INTO nuke_access VALUES (2,'Moderator');
INSERT INTO nuke_access VALUES (3,'Super Moderator');
INSERT INTO nuke_access VALUES (4,'Administrator');

to

# Table structure for table 'nuke2_access'
#

CREATE TABLE nuke2_access (
access_id int(10) NOT NULL auto_increment,
access_title varchar(20) default NULL,
PRIMARY KEY (access_id),
KEY access_id (access_id)
) TYPE=MyISAM;

#
# Dumping data for table 'nuke2_access'
#

INSERT INTO nuke2_access VALUES (-1,'Deleted');
INSERT INTO nuke2_access VALUES (1,'User');
INSERT INTO nuke2_access VALUES (2,'Moderator');
INSERT INTO nuke2_access VALUES (3,'Super Moderator');
INSERT INTO nuke2_access VALUES (4,'Administrator');

change everything down the page

this is also the method to install multiple independant phpnuke sites on one mysql db.

a66fm
12-10-02, 02:02 PM
i still get this:

Warning: Failed opening 'themes//theme.php' for inclusion (include_path='') in ....../htdocs/html/header.php on line 43

Fatal error: Call to undefined function: themeheader() in ....../htdocs/html/header.php on line 55

I'll go nuts.
i upload 5.6 everything work fine.I do the same thing for 6 i get this @#!#@@$ error.
heeeeeeeeeeelp!!!!!!!

Jade Dragon
12-10-02, 02:13 PM
did you rename the table files for phpnuke6?

if not the nuke6 is trying to call nuke5 files....won't work.

you need a complete new set of tables for nuke6. OR delete the nuke5 tables and start over.

Nuke 6 will work "out of the box", with a clean nuke.sql and the config.php adjusted with your db info.

(I have never tried the upgrade package, I believe there has been problems with that, though)

a66fm
12-10-02, 02:18 PM
the thing is that i tried 6 for the first time and i got the same error
then i uploaded 5.6 on a differend folder and it worked.
i then tried to upgrade the 5.6 to 6 and error again.
today i have done the same thing for the 3rd time.

cmschool
12-10-02, 02:24 PM
Maybe it would help if you posted the info that is on lines 43 and 55. Then we can see what is entered and possibly causing the problem.

a66fm
12-10-02, 02:29 PM
header.php
line 43 include("themes/$ThemeSel/theme.php");

line 55 themeheader();

NMS
12-10-02, 02:48 PM
Did you check the tutorials at help.powweb.com/tutorials

Jade Dragon
12-10-02, 02:50 PM
all it is is trying to find the theme.

the theme is what defines how phpnuke puts the site together.

do you have phpmyadmin installed?

look at your tables & tell me what you see.

also clear your cookies / phpnuke has a nasty habit of cookie crossover from nuke site to nuke site.

Jade Dragon
12-10-02, 02:56 PM
the nuke tutorials do not work for Nuke6. It only installs for me if the "mysql" remain "MySQL" don't know why, but it's true when I installed on "io", "comet", "callisto" & "quasar"


I believe by trying the multiple installs the nuke tables are not cooperating, ran into this on my first dual install on the same database.

in the table "nuke_config" there is an entry for the base url for nuke to use.

if you have sucessfully installed nuke5 with the current table prefix of "nuke" then the nuke6 package will not install the tables for itself and try to call the nuke5 tables.

thus changing the nuke.sql to write/install new table prefixes & the config.php to call the new tables should fix it.

Jade Dragon
12-10-02, 03:10 PM
looks like it worked :cool:

can you tell us what you did to make it work?

a66fm
12-10-02, 03:25 PM
i made the nuke2 tables (through config.php) and it didnt work.
i then used phpmyadmin to see if the tables were actualy created and then you show first that nuke was "on air"
the thing is that only
nuke2_config
contactbook
jurnal
jurnalcoments
jurnalstats
popsettings
public_messages
tables were created and that i uploaded again nuke 6 overwriting the previous files..
i dont know why but ..... IT WORKS!!!!!
For now that is

Jade Dragon
12-10-02, 03:31 PM
huh??? and that actually worked???

well good luck with your site, hopefully your mods will work better. :)

a66fm
12-10-02, 03:41 PM
it works for now.
i'm still uploading.
:confused: :confused: