#16104 – SQL error 1064 when on installation attempts

Posted in ‘Akeeba Ticket System’
This is a public ticket. Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.
Thursday, 16 May 2013 15:18 CDT
gsmela
Have I read the related troubleshooter articles above before posting (which pages?)? Yes
Have I searched the tickets before posting? Yes
Have I read the documentation before posting (which pages?)? Yes
Joomla! version: 2.5.11
PHP version: (unknown) 5.3.25
MySQL version: (unknown) 5.5.28
Host: (optional, but it helps us help you) Siteground.com

Hello. When attempting to install ATS I get the following error (have tried multiple times).

JInstaller: :Install: Error SQL DB function failed with error number 1064
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '`timespent` FLOAT NOT NULL DEFAULT 0, `created_on` datetime NOT NULL DEFAULT '' at line 11 SQL=CREATE TABLE IF NOT EXISTS `emft_ats_tickets` ( `ats_ticket_id` bigint(20) NOT NULL AUTO_INCREMENT, `catid` bigint(20) NOT NULL, `status` ENUM('O','P','C','1','2','3','4','5','6','7','8','9') NOT NULL DEFAULT 'O', `ats_bucket_id` bigint(20) NULL DEFAULT NULL, `title` varchar(1024) NOT NULL, `alias` varchar(255) NOT NULL DEFAULT '', `public` tinyint(3) NOT NULL DEFAULT '1', `origin` varchar(10) NOT NULL DEFAULT 'web', `assigned_to` BIGINT(20) NOT NULL DEFAULT '0' `timespent` FLOAT NOT NULL DEFAULT 0, `created_on` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', `created_by` bigint(20) NOT NULL DEFAULT '0', `modified_on` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', `modified_by` bigint(20) NOT NULL DEFAULT '0', `enabled` tinyint(3) NOT NULL DEFAULT '1', `params` TEXT NULL DEFAULT NULL, PRIMARY KEY (`ats_ticket_id`) ) DEFAULT CHARSET=utf8;
SQL =

CREATE TABLE IF NOT EXISTS `#__ats_tickets` (
`ats_ticket_id` bigint(20) NOT NULL AUTO_INCREMENT,
`catid` bigint(20) NOT NULL,
`status` ENUM('O','P','C','1','2','3','4','5','6','7','8','9') NOT NULL DEFAULT 'O',
`ats_bucket_id` bigint(20) NULL DEFAULT NULL,
`title` varchar(1024) NOT NULL,
`alias` varchar(255) NOT NULL DEFAULT '',
`public` tinyint(3) NOT NULL DEFAULT '1',
`origin` varchar(10) NOT NULL DEFAULT 'web',
`assigned_to` BIGINT(20) NOT NULL DEFAULT '0'
`timespent` FLOAT NOT NULL DEFAULT 0,
`created_on` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`created_by` bigint(20) NOT NULL DEFAULT '0',
`modified_on` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`modified_by` bigint(20) NOT NULL DEFAULT '0',
`enabled` tinyint(3) NOT NULL DEFAULT '1',
`params` TEXT NULL DEFAULT NULL,
PRIMARY KEY (`ats_ticket_id`)
) DEFAULT CHARSET=utf8;

Component Install: SQL error file DB function failed with error number 1064
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '`timespent` FLOAT NOT NULL DEFAULT 0, `created_on` datetime NOT NULL DEFAULT '' at line 11 SQL=CREATE TABLE IF NOT EXISTS `emft_ats_tickets` ( `ats_ticket_id` bigint(20) NOT NULL AUTO_INCREMENT, `catid` bigint(20) NOT NULL, `status` ENUM('O','P','C','1','2','3','4','5','6','7','8','9') NOT NULL DEFAULT 'O', `ats_bucket_id` bigint(20) NULL DEFAULT NULL, `title` varchar(1024) NOT NULL, `alias` varchar(255) NOT NULL DEFAULT '', `public` tinyint(3) NOT NULL DEFAULT '1', `origin` varchar(10) NOT NULL DEFAULT 'web', `assigned_to` BIGINT(20) NOT NULL DEFAULT '0' `timespent` FLOAT NOT NULL DEFAULT 0, `created_on` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', `created_by` bigint(20) NOT NULL DEFAULT '0', `modified_on` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', `modified_by` bigint(20) NOT NULL DEFAULT '0', `enabled` tinyint(3) NOT NULL DEFAULT '1', `params` TEXT NULL DEFAULT NULL, PRIMARY KEY (`ats_ticket_id`) ) DEFAULT CHARSET=utf8;
SQL =

CREATE TABLE IF NOT EXISTS `#__ats_tickets` (
`ats_ticket_id` bigint(20) NOT NULL AUTO_INCREMENT,
`catid` bigint(20) NOT NULL,
`status` ENUM('O','P','C','1','2','3','4','5','6','7','8','9') NOT NULL DEFAULT 'O',
`ats_bucket_id` bigint(20) NULL DEFAULT NULL,
`title` varchar(1024) NOT NULL,
`alias` varchar(255) NOT NULL DEFAULT '',
`public` tinyint(3) NOT NULL DEFAULT '1',
`origin` varchar(10) NOT NULL DEFAULT 'web',
`assigned_to` BIGINT(20) NOT NULL DEFAULT '0'
`timespent` FLOAT NOT NULL DEFAULT 0,
`created_on` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`created_by` bigint(20) NOT NULL DEFAULT '0',
`modified_on` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`modified_by` bigint(20) NOT NULL DEFAULT '0',
`enabled` tinyint(3) NOT NULL DEFAULT '1',
`params` TEXT NULL DEFAULT NULL,
PRIMARY KEY (`ats_ticket_id`)
) DEFAULT CHARSET=utf8;
 
Thursday, 16 May 2013 15:45 CDT
nicholas
Can you please try installing the latest dev release and tell me if it's fixed? I am almost ready to publish it as version 1.1.1.


Nicholas K. Dionysopoulos

Lead Developer and Director



🇬🇷Greek: native

🇬🇧English: excellent

🇫🇷French: basic



Please keep in mind my timezone and cultural differences when reading my replies. Thank you!



Friday, 17 May 2013 04:31 CDT
gsmela
Yes Nicholas, that worked fine.

If it matters, I noticed that, after installation, I saw the warning about "enabling the custom fields plugin" when I selected that option in the Administration. Looking at the plugins screen it showed that plugin as being enabled. Disabling it and re-enabling it made the warning go away and it works properly.

Thanks again.
 
Friday, 17 May 2013 04:36 CDT
nicholas
Thank you for the feedback!

I am not sure what happened with the custom fields plugin. We read this information from the database. Well, if the disable/enable trick worked I guess it was something that had to do with the values stored by Joomla! in the database.


Nicholas K. Dionysopoulos

Lead Developer and Director



🇬🇷Greek: native

🇬🇧English: excellent

🇫🇷French: basic



Please keep in mind my timezone and cultural differences when reading my replies. Thank you!



This ticket is closed, therefore read-only. You can no longer reply to it. If you need to provide more information, please open a new ticket and mention this ticket's number.

Support Information

Working hours: Typically we work Monday to Friday, 9am to 7pm Cyprus timezone (EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets, but we cannot respond to them, outside of our working hours.

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. Thank you for your understanding and for helping us help you!