5 users online. Create an account or sign in to join them.Users

Announcement

Symphony's issue tracker has been moved to Github.

Issues are displayed here for reference only and cannot be created or edited.

Browse

Closed#236: [2.0.7] DatabaseException during installation

I’ve just tried to make a clean installation and I have got this error.

Fatal error: Uncaught exception 'DatabaseException' with message 'MySQL Error (1364): Field 'role_id' doesn't have a default value in query "INSERT INTO `sym_authors` ( `id` , `username` , `password` , `first_name` , `last_name` , `email` , `last_seen` , `user_type` , `primary` , `default_section` , `auth_token_active` ) VALUES ( 1, 'dev', MD5('test'), 'Test', 'Example', 'test@example.com', NULL , 'developer', 'yes', '6', 'no' );"' in D:htdocssymphonysymphonylibtoolkitclass.mysql.php:390 Stack trace: #0 D:htdocssymphonysymphonylibtoolkitclass.mysql.php(275): MySQL->__error() #1 D:htdocssymphonysymphonylibtoolkitinclude.install.php(600): MySQL->query('INSERT INTO `t...') #2 [internal function]: Action::install(Object(Page), Array) #3 D:htdocssymphonysymphonylibtoolkitinclude.install.php(1329): call_user_func_array(Array, in D:htdocssymphonysymphonylibtoolkitclass.mysql.php on line 390

You’ re running mysql in strict mode, maybe? If you have enough permissions on the server, I’d try running the following query:

set global sql_mode=''

That is the default value on a common installation, so nothing dangerous is hidden behind it. Restart the server and cross your fingers :)

Unfortunately, I don’t have enough permissions to run that query.

role_id should not be there. That must have snuck in to the install package after testing the Members extension. I’ve updated the install.sql so it wont be a problem. http://github.com/symphony/symphony-2/commit/3b73c6a1bef063d225626a10683c4d07feb3ae9b

This issue is closed.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.2 or above
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.0 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details