CoreBOSBB
CoreBOS 5.5 Issues - Printable Version

+- CoreBOSBB (https://discussions.corebos.org)
+-- Forum: Open (https://discussions.corebos.org/forumdisplay.php?fid=20)
+--- Forum: Open Discussions (https://discussions.corebos.org/forumdisplay.php?fid=10)
+--- Thread: CoreBOS 5.5 Issues (/showthread.php?tid=51)

Pages: 1 2 3


Re: CoreBOS 5.5 Issues - anilp78 - 08-31-2014

Hi Joe, I've sent you the log.

thanks,


Re: CoreBOS 5.5 Issues - joebordes - 08-31-2014

We seem to have found the problem. It is due to a missing table that couldn't be created because of a collation difference between fields on different tables. There is a foreign key between _webforms_field table and _fields table. When a foreign key is set both fields must be exactly the same. In this case the _field table had a different collation.

@anilp78 please execute this SQL command and tell me the result:

Code:
SELECT DEFAULT_COLLATION_NAME FROM information_schema.SCHEMATA WHERE SCHEMA_NAME = 'your_database' LIMIT 1;

this should return utf8_general_ci but I think it will return utf8_unicode_ci in your case and that would explain the problem.

I will create a ticket so we can look into this to see if we can fix it.

As a temporal solution for anybody running into this we can do two things:

1.- change the collation of the _field table and then create the missing table:

Code:
CREATE TABLE `vtiger_webforms_field` (
  `id` int(19) NOT NULL AUTO_INCREMENT,
  `webformid` int(19) NOT NULL,
  `fieldname` varchar(50) NOT NULL,
  `neutralizedfield` varchar(50) NOT NULL,
  `defaultvalue` varchar(200) DEFAULT NULL,
  `required` int(10) NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  KEY `webforms_webforms_field_idx` (`id`),
  KEY `fk_1_vtiger_webforms_field` (`webformid`),
  KEY `fk_2_vtiger_webforms_field` (`fieldname`),
  CONSTRAINT `fk_1_vtiger_webforms_field` FOREIGN KEY (`webformid`) REFERENCES `vtiger_webforms` (`id`) ON DELETE CASCADE,
  CONSTRAINT `fk_3_vtiger_webforms_field` FOREIGN KEY (`fieldname`) REFERENCES `vtiger_field` (`fieldname`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

2.- Contact me, we have a coreBOS Updater changeset that changes your whole database to utf8_general_ci. You can run that and then create the table above.


Re: CoreBOS 5.5 Issues - joebordes - 09-01-2014

I reproduced the issue.
I created a ticket to fix it:

<!-- m --><a class="postlink" href="http://corebos.org/development/view.php?id=228">http://corebos.org/development/view.php?id=228</a><!-- m -->