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, 138 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 - Database table nuke_config error [ ]
 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
bigashish
Nuke Cadet
Nuke Cadet


Joined: Feb 08, 2003
Posts: 1

Location: USA

PostPosted: Sat Feb 08, 2003 2:15 pm Reply with quoteBack to top

Hello

I am getting some errors because I cannot seem to insert the table nuke_config

I copy and pasted from the nuke.sql file the insert code for the nuke_config table. Here is the insert code:

INSERT INTO nuke_config VALUES ('PHP-Nuke Powered Site','http://yoursite.com','logo.gif','Your slogan here','September 2002','webmaster@yoursite.com',0,'DeepBlue','<a href=\'http://phpnuke.org\' target=\'blank\'><img src=\'images/powered/nuke.gif\' border=\'0\' Alt=\'Web site powered by PHP-Nuke\' hspace=\'10\'></a><br>','All logos and trademarks in this site are property of their respective owner. The comments are property of their posters, all the rest © 2002 by me','You can syndicate our news using the file <a href=\'backend.php\'><font class=\'footmsg_l\'>backend.php</font></a> or <a href=\'ultramode.txt\'><font class=\'footmsg_l\'>ultramode.txt</font></a>',4096,'Anonymous',5,1,1,1,1,10,10,1,30,0,1,'PHP-Nuke Powered Site','en-us','english','en_US',0,0,0,'me@yoursite.com','NEWS for my site','Hey! You got a new submission for your site.','webmaster','Mail sent from WebMail service at PHP-Nuke Powered Site\r\n- http://yoursite.com',1,'/var/www/html/modules/WebMail/tmp/',0,0,'modules/WebMail/attachments/','','0','Your account',-1,'modules/WebMail/images',1,0,1,1,1000,3,'*****','Web site engine\'s code is Copyright &copy; 2002 by <a href=\"http://phpnuke.org\"><font class=\'footmsg_l\'>PHP-Nuke</font></a>. All Rights Reserved. PHP-Nuke is Free Software released under the <a href=\"http://www.gnu.org\"><font class=\'footmsg_l\'>GNU/GPL license</font></a>.','6.0')

When I ran this sql statement I got this error:

You have an error in your SQL syntax near '0,0,1,'PHP-Nuke Powered Site','en-us','english','en_US',0,0,0,'me@yoursite.com' at line 2

I cannot seem to figure out where in the SQL statement above the error is occuring.

THIS IS MY ONLY ISSUE...PLEASE HELP!

Thanks,

bigashish
Find all posts by bigashishView user's profileSend private message
ArtificialIntel



Joined: Jan 31, 2004
Posts: -88


PostPosted: Sat Feb 08, 2003 2:17 pm Reply with quoteBack to top

if there are lines beginning with a - replace them with a #

ArtificialIntel
Find all posts by ArtificialIntelView user's profileSend private message
chatserv
General
General


Joined: Jan 12, 2003
Posts: 3128

Location: Puerto Rico

PostPosted: Sat Feb 08, 2003 8:12 pm Reply with quoteBack to top

copy the following code into a file, name it fixnuke.php, upload it to where config.php is and point your browser to it, much like you did with analyzer.php, once done, delete it.
Code:

<?php

#####################################################
#####################################################

require("config.php");

$host = $dbhost;
$database = $dbname;
$username = $dbuname;
$password = $dbpass;
mysql_connect($host, $username, $password);
@mysql_select_db($database);

# Just upload this file to nuke's main dir (where config.php is)
# and point your browser to
# http://your_nuke_url/fixnuke.php
#
################### BEGIN THE FIX ###################

mysql_query("DROP TABLE IF EXISTS ".$prefix."_config");
mysql_query("CREATE TABLE ".$prefix."_config (
sitename varchar(255) NOT NULL default '',
nukeurl varchar(255) NOT NULL default '',
site_logo varchar(255) NOT NULL default '',
slogan varchar(255) NOT NULL default '',
startdate varchar(50) NOT NULL default '',
adminmail varchar(255) NOT NULL default '',
anonpost tinyint(1) NOT NULL default '0',
Default_Theme varchar(255) NOT NULL default '',
foot1 text NOT NULL,
foot2 text NOT NULL,
foot3 text NOT NULL,
commentlimit int(9) NOT NULL default '4096',
anonymous varchar(255) NOT NULL default '',
minpass tinyint(1) NOT NULL default '5',
pollcomm tinyint(1) NOT NULL default '1',
articlecomm tinyint(1) NOT NULL default '1',
broadcast_msg tinyint(1) NOT NULL default '1',
my_headlines tinyint(1) NOT NULL default '1',
top int(3) NOT NULL default '10',
storyhome int(2) NOT NULL default '10',
user_news tinyint(1) NOT NULL default '1',
oldnum int(2) NOT NULL default '30',
ultramode tinyint(1) NOT NULL default '0',
banners tinyint(1) NOT NULL default '1',
backend_title varchar(255) NOT NULL default '',
backend_language varchar(10) NOT NULL default '',
language varchar(100) NOT NULL default '',
locale varchar(10) NOT NULL default '',
multilingual tinyint(1) NOT NULL default '0',
useflags tinyint(1) NOT NULL default '0',
notify tinyint(1) NOT NULL default '0',
notify_email varchar(255) NOT NULL default '',
notify_subject varchar(255) NOT NULL default '',
notify_message varchar(255) NOT NULL default '',
notify_from varchar(255) NOT NULL default '',
footermsgtxt text NOT NULL,
email_send tinyint(1) NOT NULL default '1',
attachmentdir varchar(255) NOT NULL default '',
attachments tinyint(1) NOT NULL default '0',
attachments_view tinyint(1) NOT NULL default '0',
download_dir varchar(255) NOT NULL default '',
defaultpopserver varchar(255) NOT NULL default '',
singleaccount tinyint(1) NOT NULL default '',
singleaccountname varchar(255) NOT NULL default '',
numaccounts tinyint(2) NOT NULL default '-1',
imgpath varchar(255) NOT NULL default '',
filter_forward tinyint(1) NOT NULL default '1',
moderate tinyint(1) NOT NULL default '0',
admingraphic tinyint(1) NOT NULL default '1',
httpref tinyint(1) NOT NULL default '1',
httprefmax int(5) NOT NULL default '1000',
CensorMode tinyint(1) NOT NULL default '3',
CensorReplace varchar(10) NOT NULL default '',
copyright text NOT NULL,
Version_Num varchar(10) NOT NULL default ''
) TYPE=MyISAM");

mysql_query("INSERT INTO ".$prefix."_config VALUES ('PHP-Nuke Powered Site','http://yoursite.com','logo.gif','Your slogan here','February 2003','webmaster@yoursite.com',0,'DeepBlue','<a href=\"http://phpnuke.org\" target=\"blank\"><img src=\"images/powered/nuke.gif\" border=\"0\" Alt=\"Web site powered by PHP-Nuke\" hspace=\"10\"></a><br>','All logos and trademarks in this site are property of their respective owner. The comments are property of their posters, all the rest © 2003 by me','You can syndicate our news using the file <a href=\"backend.php\"><font class=\"footmsg_l\">backend.php</font></a> or <a href=\"ultramode.txt\"><font class=\"footmsg_l\">ultramode.txt</font></a>',4096,'Anonymous',5,1,1,1,1,10,10,1,30,0,1,'PHP-Nuke Powered Site','en-us','english','en_US',0,0,0,'me@yoursite.com','NEWS for my site','Hey! You got a new submission for your site.','webmaster','Mail sent from WebMail service at PHP-Nuke Powered Site\r\n- http://yoursite.com',1,'/var/www/html/modules/WebMail/tmp/',0,0,'modules/WebMail/attachments/','','0','Your account',-1,'modules/WebMail/images',1,0,1,1,1000,3,'*****','Web site engine code is Copyright &copy; 2003 by <a href=\"http://phpnuke.org\"><font class=\"footmsg_l\">PHP-Nuke</font></a>. All Rights Reserved. PHP-Nuke is Free Software released under the <a href=\"http://www.gnu.org\"><font class=\"footmsg_l\">GNU/GPL license</font></a>.','6.0')");
echo "Go back to your <a href=\"index.php\">website</a>.";
?>

_________________
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.605 Seconds - 85 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::