user error: Table 'webpage.profile_fields' doesn't exist
query: SELECT f.name, f.type, v.value FROM profile_fields f INNER JOIN profile_values v ON f.fid = v.fid WHERE uid = 1 in C:\publichtml\includes\database.mysql.inc on line 66.
user error: Field 'revisions' doesn't have a default value
query: INSERT INTO node (status, moderate, promote, sticky, comment, title, body, format, uid, created, type, teaser, changed, nid) VALUES('1', '0', '1', '0', '0', 'bla', 'test', '3', '1', '1135816561', 'story', 'test', '1135816639', '3') in C:\publichtml\includes\database.mysql.inc on line 66.
warning: Cannot modify header information - headers already sent by (output started at C:\publichtml\includes\common.inc:384) in C:\publichtml\includes\common.inc on line 192.
i receive the following :( any ideas?
Comments
Table 'webpage.profile_fields' doesn't exist
Um, so make it?
Looks like your creation of the database tables failed somewhat. Better run the entire MySQL import again - and watch the errors this time.
Probably the same story with your "CREATE TABLE node".
It's a new install, so just delete the DB altogether, re-create it, and run the
database.mysql again.
http://www.coders.co.nz/
.dan. is the New Zealand Drupal Developer working on Government Web Standards
mysql> -- Table structure
mysql> -- Table structure for table 'term_data'
mysql> --
mysql>
mysql> CREATE TABLE term_data (
-> tid int(10) unsigned NOT NULL auto_increment,
-> vid int(10) unsigned NOT NULL default '0',
-> name varchar(255) NOT NULL default '',
-> description longtext,
-> weight tinyint(4) NOT NULL default '0',
-> PRIMARY KEY (tid),
-> KEY vid (vid)
-> ) TYPE=MyISAM;
Query OK, 0 rows affected, 1 warning (0.11 sec)
mysql>
mysql> --
mysql> -- Table structure for table 'term_hierarchy'
mysql> --
mysql>
mysql> CREATE TABLE term_hierarchy (
-> tid int(10) unsigned NOT NULL default '0',
-> parent int(10) unsigned NOT NULL default '0',
-> KEY tid (tid),
-> KEY parent (parent)
-> ) TYPE=MyISAM;
Query OK, 0 rows affected, 1 warning (0.11 sec)
mysql>
mysql> --
mysql> -- Table structure for table 'term_node'
mysql> --
mysql>
mysql> CREATE TABLE term_node (
-> nid int(10) unsigned NOT NULL default '0',
-> tid int(10) unsigned NOT NULL default '0',
-> KEY nid (nid),
-> KEY tid (tid),
-> PRIMARY KEY (tid,nid)
-> ) TYPE=MyISAM;
Query OK, 0 rows affected, 1 warning (0.11 sec)
mysql>
mysql> --
mysql> -- Table structure for table 'term_relation'
mysql> --
mysql>
mysql> CREATE TABLE term_relation (
-> tid1 int(10) unsigned NOT NULL default '0',
-> tid2 int(10) unsigned NOT NULL default '0',
-> KEY tid1 (tid1),
-> KEY tid2 (tid2)
-> ) TYPE=MyISAM;
Query OK, 0 rows affected, 1 warning (0.09 sec)
mysql>
mysql> --
mysql> -- Table structure for table 'term_synonym'
mysql> --
mysql>
mysql> CREATE TABLE term_synonym (
-> tid int(10) unsigned NOT NULL default '0',
-> name varchar(255) NOT NULL default '',
-> KEY tid (tid),
-> KEY name (name(3))
-> ) TYPE=MyISAM;
Query OK, 0 rows affected, 1 warning (0.09 sec)
mysql>
mysql> --
mysql> -- Table structure for table 'users'
mysql> --
mysql>
mysql> CREATE TABLE users (
-> uid int(10) unsigned NOT NULL default '0',
-> name varchar(60) NOT NULL default '',
-> pass varchar(32) NOT NULL default '',
-> mail varchar(64) default '',
-> mode tinyint(1) NOT NULL default '0',
-> sort tinyint(1) default '0',
-> threshold tinyint(1) default '0',
-> theme varchar(255) NOT NULL default '',
-> signature varchar(255) NOT NULL default '',
-> created int(11) NOT NULL default '0',
-> changed int(11) NOT NULL default '0',
-> status tinyint(4) NOT NULL default '0',
-> timezone varchar(8) default NULL,
-> language varchar(12) NOT NULL default '',
-> picture varchar(255) NOT NULL DEFAULT '',
-> init varchar(64) default '',
-> data longtext,
-> PRIMARY KEY (uid),
-> UNIQUE KEY name (name),
-> KEY changed (changed)
-> ) TYPE=MyISAM;
Query OK, 0 rows affected, 1 warning (0.11 sec)
mysql>
mysql> --
mysql> -- Table structure for table 'users_roles'
mysql> --
mysql>
mysql> CREATE TABLE users_roles (
-> uid int(10) unsigned NOT NULL default '0',
-> rid int(10) unsigned NOT NULL default '0',
-> PRIMARY KEY (uid, rid)
-> ) TYPE=MyISAM;
Query OK, 0 rows affected, 1 warning (0.11 sec)
mysql>
mysql> --
mysql> -- Table structure for table 'variable'
mysql> --
mysql>
mysql> CREATE TABLE variable (
-> name varchar(48) NOT NULL default '',
-> value longtext NOT NULL,
-> PRIMARY KEY (name)
-> ) TYPE=MyISAM;
Query OK, 0 rows affected, 1 warning (0.11 sec)
mysql>
mysql> --
mysql> -- Table structure for table 'vocabulary'
mysql> --
mysql>
mysql> CREATE TABLE vocabulary (
-> vid int(10) unsigned NOT NULL auto_increment,
-> name varchar(255) NOT NULL default '',
-> description longtext,
-> help varchar(255) NOT NULL default '',
-> relations tinyint(3) unsigned NOT NULL default '0',
-> hierarchy tinyint(3) unsigned NOT NULL default '0',
-> multiple tinyint(3) unsigned NOT NULL default '0',
-> required tinyint(3) unsigned NOT NULL default '0',
-> module varchar(255) NOT NULL default '',
-> weight tinyint(4) NOT NULL default '0',
-> PRIMARY KEY (vid)
-> ) TYPE=MyISAM;
Query OK, 0 rows affected, 1 warning (0.11 sec)
mysql>
mysql> --
mysql> -- Table structure for table 'vocabulary_node_types'
mysql> --
mysql>
mysql> CREATE TABLE vocabulary_node_types (
-> vid int(10) unsigned NOT NULL DEFAULT '0',
-> type varchar(16) NOT NULL DEFAULT '',
-> PRIMARY KEY (vid, type)
-> ) TYPE=MyISAM;
Query OK, 0 rows affected, 1 warning (0.11 sec)
mysql>
mysql> --
mysql> -- Table structure for table 'watchdog'
mysql> --
mysql>
mysql>
CREATE TABLE watchdog (
-> wid int(5) NOT NULL auto_increment,
-> uid int(10) NOT NULL default '0',
-> type varchar(16) NOT NULL default '',
-> message longtext NOT NULL,
-> severity tinyint(3) unsigned NOT NULL default '0',
-> link varchar(255) NOT NULL default '',
-> location varchar(128) NOT NULL default '',
-> hostname varchar(128) NOT NULL default '',
-> timestamp int(11) NOT NULL default '0',
-> PRIMARY KEY (wid)
-> ) TYPE=MyISAM;
Query OK, 0 rows affected, 1 warning (0.14 sec)
mysql>
mysql> --
mysql> -- Insert some default values
mysql> --
mysql>
mysql> INSERT INTO system VALUES ('modules/block.module','block','module','',1,0
,0);
Query OK, 1 row affected (0.02 sec)
mysql> INSERT INTO system VALUES ('modules/comment.module','comment','module',''
,1,0,0);
Query OK, 1 row affected (0.00 sec)
mysql> INSERT INTO system VALUES ('modules/filter.module','filter','module','',1
,0,0);
Query OK, 1 row affected (0.00 sec)
mysql> INSERT INTO system VALUES ('modules/help.module','help','module','',1,0,0
);
Query OK, 1 row affected (0.00 sec)
mysql> INSERT INTO system VALUES ('modules/node.module','node','module','',1,0,0
);
Query OK, 1 row affected (0.00 sec)
mysql> INSERT INTO system VALUES ('modules/page.module','page','module','',1,0,0
);
Query OK, 1 row affected (0.00 sec)
mysql> INSERT INTO system VALUES ('modules/story.module','story','module','',1,0
,0);
Query OK, 1 row affected (0.00 sec)
mysql> INSERT INTO system VALUES ('modules/system.module','system','module','',1
,0,0);
Query OK, 1 row affected (0.00 sec)
mysql> INSERT INTO system VALUES ('modules/taxonomy.module','taxonomy','module',
'',1,0,0);
Query OK, 1 row affected (0.00 sec)
mysql> INSERT INTO system VALUES ('modules/user.module','user','module','',1,0,0
);
Query OK, 1 row affected (0.00 sec)
mysql> INSERT INTO system VALUES ('modules/watchdog.module','watchdog','module',
'',1,0,0);
Query OK, 1 row affected (0.00 sec)
mysql> INSERT INTO system VALUES ('themes/bluemarine/xtemplate.xtmpl','bluemarin
e','theme','themes/engines/xtemplate/xtemplate.engine',1,0,0);
Query OK, 1 row affected (0.00 sec)
mysql> INSERT INTO system VALUES ('themes/engines/xtemplate/xtemplate.engine','x
template','theme_engine','',1,0,0);
Query OK, 1 row affected (0.00 sec)
mysql> INSERT INTO users (uid, name, mail) VALUES ('0', '', '');
Query OK, 1 row affected (0.02 sec)
mysql> INSERT INTO users_roles (uid, rid) VALUES (0, 1);
Query OK, 1 row affected (0.00 sec)
mysql>
mysql> INSERT INTO role (rid, name) VALUES (1, 'anonymous user');
Query OK, 1 row affected (0.01 sec)
mysql> INSERT INTO permission VALUES (1,'access content',0);
Query OK, 1 row affected (0.00 sec)
mysql>
mysql> INSERT INTO role (rid, name) VALUES (2, 'authenticated user');
Query OK, 1 row affected (0.00 sec)
mysql> INSERT INTO permission VALUES (2,'access comments, access content, post c
omments, post comments without approval',0);
Query OK, 1 row affected (0.00 sec)
mysql>
mysql> REPLACE variable SET name='update_start', value='s:10:"2005-03-21";';
Query OK, 1 row affected (0.00 sec)
mysql> REPLACE variable SET name='theme_default', value='s:10:"bluemarine";';
Query OK, 1 row affected (0.00 sec)
mysql>
mysql> REPLACE blocks SET module = 'user', delta = '0', status = '1';
ERROR 1364 (HY000): Field 'pages' doesn't have a default value
mysql> REPLACE blocks SET module = 'user', delta = '1', status = '1';
ERROR 1364 (HY000): Field 'pages' doesn't have a default value
mysql>
mysql> INSERT INTO sequences (name, id) VALUES ('menu_mid', 1);
Query OK, 1 row affected (0.00 sec)
mysql>
mysql> INSERT INTO node_access VALUES (0, 0, 'all', 1, 0, 0);
Query OK, 1 row affected (0.02 sec)
mysql>
mysql> INSERT INTO filter_formats VALUES (1,'Filtered HTML',',1,2,',1);
Query OK, 1 row affected (0.00 sec)
mysql> INSERT INTO filter_formats VALUES (2,'PHP code','',0);
Query OK, 1 row affected (0.00 sec)
mysql> INSERT INTO filter_formats VALUES (3,'Full HTML','',1);
Query OK, 1 row affected (0.00 sec)
mysql> INSERT INTO filters VALUES (1,'filter',0,0);
Query OK, 1 row affected (0.00 sec)
mysql> INSERT INTO filters VALUES (1,'filter',2,1);
Query OK, 1 row affected (0.00 sec)
mysql> INSERT INTO filters VALUES (2,'filter',1,0);
Query OK, 1 row affected (0.00 sec)
mysql> INSERT INTO filters VALUES (3,'filter',2,0);
Query OK, 1 row affected (0.00 sec)
mysql> INSERT INTO variable (name,value) VALUES ('filter_html_1','i:1;');
Query OK, 1 row affected (0.00 sec)
mysql>
mysql> INSERT INTO locales_meta (locale, name, enabled, isdefault) VALUES ('en',
'English', '1', '1');
Query OK, 1 row affected (0.00 sec)
mysql>
getting errors using the stock tables included.........any suggestions?
heres what im using...
Error: 1005 SQLSTATE: HY000 (ER_CANT_CREATE_TABLE)
Message: Can't create table '%s' (errno: %d)
incomplete?
Oddly enough, that listing did tell me something.
I didn't see profile_fields get created then. did you? It should have been there. (and more)
Most likely the first 2/3 of that result was just truncated.
Are you still getting the original 'table does not exist' error now?
what does SHOW TABLES give us?
http://www.coders.co.nz/
.dan. is the New Zealand Drupal Developer working on Government Web Standards
same here
seems like i'm having the same problem too when i'm creating a new content.
Field 'revisions' doesn't have a default value query: INSERT INTO node (status, moderate, promote, sticky, comment, title, body, format, uid, created, type, teaser, changed, nid) VALUES('1', '0', '1', '0', '2', 'test', 'test 2', '1', '1', '1135721283', 'page', 'test 2', '1135721380', '5')
The revision field could not be null but does not have a default value and this insert sttement doesn't specify the value for the revision field. Thus contributing the error.
Is this a bug or what? Any help would be much appreciated
Thanks
Joe
I fixed it
I just went to the newest release from 4.6 and had it running within minutes. apparantly there is an error in the database setup files with 4.6
How did you fix it???
hello
am facing the same problem but am novice in Mysql and drupal ; would you please tell me how to fix it???
Field 'revisions' doesn't
Field 'revisions' doesn't have a default value query
I ran into several fields that had no default value. I just set them to 'null' and those went away.
I have the same error
user error: Field 'revisions' doesn't have a default value
query: INSERT INTO node (status, moderate, promote, sticky, comment, title, body, format, uid, created, type, teaser, changed, nid) VALUES('1', '0', '1', '1', '2', 'adfad', 'adfadfadf', '', '1', '1138955604', 'page', 'adfadfadf', '1138956362', '11') in c:\program files\apache group\Apache\htdocs\drupal\includes\database.mysql.inc on line 66.
warning: Cannot modify header information - headers already sent by (output started at c:\program files\apache group\Apache\htd
I have freshly installed drupal and got through a bunch of bugs. But it is way past my bed time and I don't the answer is coming to me anytime soon.
This happens when I try to add content to my website. I don't even have one node up so I am a little disappointed.
I tried changing some of the database values but that did not seem to help at all.
Thanks for any help in advance.
The Newb
MySQL 5
It's my guess that you run MySQL 5 in strict mode. See solving MySQL strict mode problems.
You probably got an error already when importing the database file.
--
Tips for posting to the forums.
When your problem is solved, please post a follow-up to the thread you started.
im sorry! :)problem was
im sorry! :)
problem was solved by adding MYISAM tages at the end of each table...
Field Revisions
I got through this one by editing the table, and setting the default for the field 'revisions' to ''
which I presume, being a newbie, is null for a text type.
a patch
see #76743: Incompatibilities with MySQL 5.0