Sitefinity + MySQL : Ecommerce module problem
Hello
We installed Sitefinity + Ecommerce module with a Mysql community edition 5.2.47CE.
After creating a new site, we tried to activate the module, and we got the following message :
SelectByBasketID :
SQL exception on '-- Index 'idx_sf_fldrs_rtId_pth' was not detected in the database. It will be created
ALTER TABLE `sf_folders` ADD INDEX `idx_sf_fldrs_rtId_pth`(`root_id`, `path`)' : Specified key was too long; max key length is 767 bytes
Is this problem related to the InnoDB/MyISAM engine ?
We are very surprise that this kind of problem occurs on a brand new installation...
Olivier
We just had a similar problem when going to design a template. The failure then leaves us with no options for working with templates.
Hi Guys,
The behavior you are experiencing is due to a limitation posed on MySQL server. You can find more details on this here.
You can bypass this restriction by increasing the max key length.
Regards,
Sabrie Nedzhip
Telerik
Hi Guys,
I had the same error when I tried to create a new template.
Thanks to Sabrie's answer, I fixed this by droping the sf_folders table (be sure the table is empty) and creating by setting the engine mode to InnoDB. I don't know if this solution is the best one.
So, you just need to run those requests in mysql console :
DROP TABLE sf_folders;
CREATE TABLE sf_folders (
id varchar(40) PRIMARY KEY NOT NULL,
url_name_ varchar(255),
title_ varchar(255),
root_id varchar(40),
path varchar(255),
parent_id varchar(40),
is_deleted integer,
description_ varchar(255),
cover_id varchar(40),
app_name varchar(255),
voa_version TINYINT (1))
ENGINE = InnoDB
DEFAULT CHARSET = utf8mb4
ROW_FORMAT = DYNAMIC;
Adrien