Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

JInstaller: :Install: Error SQL DB function failed 29 Jan 2013 06:05 #6548

Getting JInstaller error in the sandbox. I'm not using anything complex - just basic tables and form fields. Happened after changing the form. I think JCook gui has gotten confused?? (Like me :blink: )

Help!

V2.0 Beta,
JS Framework: jQUERY
Embed Framework: No
Form style: Condensed
Features: JDom complete
TODO: No

JInstaller: :Install: Error SQL DB function failed with error number 1071
Specified key was too long; max key length is 1000 bytes SQL=CREATE TABLE IF NOT EXISTS `[PREFIX]demo6062_members` ( `id` int(11) NOT NULL auto_increment, `params` text NOT NULL DEFAULT '', `membership_number` VARCHAR(255) , `joomla_user` INT(11) , `username` VARCHAR(255) NOT NULL , `member_name` VARCHAR(255) NOT NULL , `password` VARCHAR(255) , `email` VARCHAR(255) NOT NULL , `company_id` INT(11) , `address` VARCHAR(255) , `state` VARCHAR(255) , `postcode` VARCHAR(255) , `phone` VARCHAR(255) , `mobile` VARCHAR(255) , `notes` TEXT , `ordering` INT(11) , `access` INT(11) DEFAULT 1 , `created_by` INT(11) , `created_date` DATE , `modified_by` INT(11) , `modification_date` DATE , `checked_out` INT(11) NOT NULL DEFAULT 0 , `checked_out_time` DATETIME , `published` TINYINT , PRIMARY KEY (`id`), UNIQUE(username, email) );
SQL =

CREATE TABLE IF NOT EXISTS `vs4go_demo6062_members` (
	`id` int(11) NOT NULL auto_increment,
	`params` text NOT NULL DEFAULT '',
	`membership_number` VARCHAR(255) ,
	`joomla_user` INT(11) ,
	`username` VARCHAR(255) NOT NULL ,
	`member_name` VARCHAR(255) NOT NULL ,
	`password` VARCHAR(255) ,
	`email` VARCHAR(255) NOT NULL ,
	`company_id` INT(11) ,
	`address` VARCHAR(255) ,
	`state` VARCHAR(255) ,
	`postcode` VARCHAR(255) ,
	`phone` VARCHAR(255) ,
	`mobile` VARCHAR(255) ,
	`notes` TEXT ,
	`ordering` INT(11) ,
	`access` INT(11) DEFAULT 1 ,
	`created_by` INT(11) ,
	`created_date` DATE ,
	`modified_by` INT(11) ,
	`modification_date` DATE ,
	`checked_out` INT(11) NOT NULL DEFAULT 0 ,
	`checked_out_time` DATETIME ,
	`published` TINYINT ,

	PRIMARY KEY  (`id`),
	UNIQUE(username, email)
);
Just call me Chris :)

Please Log in or Create an account to join the conversation.

Re: JInstaller: :Install: Error SQL DB function failed 29 Jan 2013 06:40 #6549

It happens when setting a table field "username" or "email" to Unique, in the JCook table gui,

But it works if I set field any other field like "membership_number" as unique.

Even when I rename "username" and "email" to something else and set it to unique - it fails.

Weird...

Similar issue to this I guess - but I am not joining strings or have control over the sandbox MySQL...
www.j-cook.pro/forum/32-trouble-shooting...le-fails-at-sql#3873
Just call me Chris :)

Please Log in or Create an account to join the conversation.

Re: JInstaller: :Install: Error SQL DB function failed 29 Jan 2013 07:12 #6550

  • JoomGuy
  • JoomGuy's Avatar
  • Offline
  • Moderator
  • Moderator
  • Joomla Enthusiast, Lover of Cooking
  • Posts: 1115
  • Thank you received: 195
It's because the max potential length of the input fields is too great. Indexes on these columns would be too large.
*******ADD*******
UTF-8 encoded characters can take up to 6 bytes each. The length of both fields you are creating indexes on total 510 characters and therefore, they too large to index. You can change the max length of each field by specifying a length property for each in the field's properties.
********************

Gez
Need help with your Cook/Joomla Project? . PM me to find out what I can help with. NO time wasters please!!!
The following user(s) said Thank You: organicwebs

Please Log in or Create an account to join the conversation.

Last edit: by JoomGuy. Reason: ADD

Re: JInstaller: :Install: Error SQL DB function failed 30 Jan 2013 13:06 #6559

  • JoomGuy
  • JoomGuy's Avatar
  • Offline
  • Moderator
  • Moderator
  • Joomla Enthusiast, Lover of Cooking
  • Posts: 1115
  • Thank you received: 195
Need help with your Cook/Joomla Project? . PM me to find out what I can help with. NO time wasters please!!!
The following user(s) said Thank You: organicwebs

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Time to create page: 0.092 seconds

Awards for the best Joomla app. This product is gonna win an award for this amazing job. Cook Self Service is the the best application from all over the Joomla universe ! It brings Joomla to a professional level really advanced for developers. It is a real fun to develop with it. The ACL part and security checks implementation are just... so much hours saved. I can now concentrate myself more on the design part and the creative works. Thank you so much. Guys I offer you all my congratulation ! Keep up the works because Joomla is needing it to increase the quality of extensions availables on the JED. I also learned a lot because I can see how to code at the proper place and I found all my answers reading the forum.
lack_hanson (JED)
          

Get Started