symphonists / order_entries

[Symphony 2] Allow drag-and-drop re-ordering of entries
http://github.com/symphonists/order_entries
Other
28 stars 21 forks source link

Symphony Fatal Database Error: Can't DROP 'unique'; check that column/key exists #67

Closed animaux closed 9 years ago

animaux commented 9 years ago

After updating from 2.1.x to 2.2.1 I get the following error while trying to save a section containing sort_order:

Symphony Fatal Database Error: Can't DROP 'unique'; check that column/key exists
An error occurred while attempting to execute the following query
ALTER TABLE `sym_entries_data_48` DROP INDEX `unique`;

Backtrace

[/…/symphony/lib/toolkit/class.mysql.php:515]
    MySQL->__error();
[/…/extensions/order_entries/fields/field.order_entries.php:243]
    MySQL->query();
[/…/extensions/order_entries/fields/field.order_entries.php:276]
    fieldOrder_Entries->updateFilterTable();
[/…/symphony/content/content.blueprintssections.php:787]
    fieldOrder_Entries->commit();
[/…/symphony/content/content.blueprintssections.php:883]
    contentBlueprintsSections->__actionNew();
[/…/symphony/lib/toolkit/class.administrationpage.php:705]
    contentBlueprintsSections->__actionEdit();
[/…/symphony/lib/toolkit/class.administrationpage.php:668]
    AdministrationPage->__switchboard();
[/…/symphony/lib/toolkit/class.administrationpage.php:450]
    AdministrationPage->action();
[/…/symphony/content/content.blueprintssections.php:26]
    AdministrationPage->build();
[/…/symphony/lib/core/class.administration.php:212]
    contentBlueprintsSections->build();
[/…/symphony/lib/core/class.administration.php:490]
    Administration->__buildPage();
[/…/symphony/lib/boot/func.utilities.php:232]
    Administration->display();
[/…/symphony/lib/boot/func.utilities.php:212]
    symphony_launcher();
[/…/index.php:17]
    symphony();

Database Query Log

[0.0001] SET character_set_connection = 'utf8', character_set_database = 'utf8', character_set_server = 'utf8';
[0.0001] SET CHARACTER SET 'utf8';
[0.0001] SET time_zone = '+02:00';
[0.0021] SELECT SQL_CACHE t1.name, t2.page, t2.delegate, t2.callback FROM `sym_extensions` as t1 INNER JOIN `sym_extensions_delegates` as t2 ON t1.id = t2.extension_id WHERE t1.status = 'enabled' ORDER BY t2.delegate, t1.name;
[0.0006] SELECT SQL_CACHE `name` FROM `sym_extensions` WHERE `status` = 'enabled';
[0.0003] SELECT SQL_CACHE `session_data` FROM `sym_sessions` WHERE `session` = 'c4135e6a72979b8ab6501b0a056a7b79' LIMIT 1;
[0.0003] SELECT SQL_CACHE a.* FROM `sym_authors` AS `a` WHERE `username` = 'goldwiege' ORDER BY a.id ASC LIMIT 1;
[0.0002] UPDATE sym_authors SET `last_seen` = '2015-07-14 09:36:15' WHERE `id` = 1;
[0.0005] SELECT SQL_CACHE * FROM `sym_extensions`;
[0.0006] SELECT SQL_CACHE * FROM `sym_sections_association` AS `sa`, `sym_sections` AS `s` WHERE `sa`.`child_section_id` = 6 AND `s`.`id` = `sa`.`parent_section_id` ORDER BY `s`.`sortorder` ASC;
[0.0003] SELECT SQL_CACHE * FROM `sym_sections_association` AS `sa`, `sym_sections` AS `s` WHERE `sa`.`parent_section_id` = 6 AND `s`.`id` = `sa`.`child_section_id` ORDER BY `s`.`sortorder` ASC;
[0.0006] SELECT SQL_CACHE `s`.* FROM `sym_sections` AS `s` ORDER BY `s`.`sortorder` asc;
[0.0004] SELECT SQL_CACHE `s`.* FROM `sym_sections` AS `s` WHERE `s`.`id` IN (16);
[0.0004] SELECT SQL_CACHE d.pages, d.id FROM `sym_documentation` AS d ORDER BY d.pages ASC;
[0.0002] SELECT SQL_CACHE `id` FROM `sym_sections` WHERE `handle` = 'artikel' LIMIT 1;
[0.0003] UPDATE sym_sections SET `name` = 'Artikel', `handle` = 'artikel', `navigation_group` = 'Inhalte', `hidden` = 'no', `filter` = 'yes', `max_entries` = '0' WHERE `id` = 6;
[0.0004] SELECT SQL_CACHE `id` FROM `sym_fields` WHERE `parent_section` = '6' AND `id` NOT IN ('38', '39', '49', '94', '61', '46', '80', '82', '44', '45', '211', '41', '42', '50', '62', '63', '64', '48');
[0.0001] UPDATE sym_fields SET `label` = 'Deutsch', `element_name` = 'de', `parent_section` = '6', `location` = 'main', `required` = 'no', `type` = 'publish_tabs', `show_column` = 'no', `sortorder` = '0' WHERE `id` = 38;
[0.0001] SELECT SQL_CACHE `type` FROM `sym_fields` WHERE `id` = 38 LIMIT 1;
[0.0001] DELETE FROM `sym_fields_publish_tabs` WHERE `field_id` = 38 LIMIT 1;
[0.0001] INSERT INTO `sym_fields_publish_tabs` (`field_id`) VALUES ('38');
[0.0001] UPDATE sym_fields SET `label` = 'Titel (de)', `element_name` = 'titel-de', `parent_section` = '6', `location` = 'main', `required` = 'yes', `type` = 'input', `show_column` = 'yes', `sortorder` = '1' WHERE `id` = 39;
[0.0001] SELECT SQL_CACHE `type` FROM `sym_fields` WHERE `id` = 39 LIMIT 1;
[0.0001] DELETE FROM `sym_fields_input` WHERE `field_id` = 39 LIMIT 1;
[0.0001] INSERT INTO `sym_fields_input` (`validator`, `field_id`) VALUES (null, '39');
[0.0001] UPDATE sym_fields SET `label` = 'Text (de)', `element_name` = 'text-de', `parent_section` = '6', `location` = 'main', `required` = 'yes', `type` = 'textarea', `show_column` = 'no', `sortorder` = '2' WHERE `id` = 49;
[0.0001] SELECT SQL_CACHE `type` FROM `sym_fields` WHERE `id` = 49 LIMIT 1;
[0.0001] DELETE FROM `sym_fields_textarea` WHERE `field_id` = 49 LIMIT 1;
[0.0001] INSERT INTO `sym_fields_textarea` (`formatter`, `size`, `field_id`) VALUES ('markdown_extra_with_smartypants', '15', '49');
[0.0001] UPDATE sym_fields SET `label` = 'Website', `element_name` = 'bereich', `parent_section` = '6', `location` = 'sidebar', `required` = 'yes', `type` = 'association', `show_column` = 'yes', `sortorder` = '3' WHERE `id` = 94;
[0.0001] SELECT SQL_CACHE `type` FROM `sym_fields` WHERE `id` = 94 LIMIT 1;
[0.0001] DELETE FROM `sym_fields_association` WHERE `field_id` = 94 LIMIT 1;
[0.0002] INSERT INTO `sym_fields_association` (`field_id`, `related_field_id`, `allow_multiple_selection`, `hide_when_prepopulated`, `limit`) VALUES ('94', '52', 'no', 'no', '20');
[0.0002] DELETE FROM sym_sections_association WHERE `child_section_field_id` = 94 OR `parent_section_field_id` = 94;
[0.0003] SELECT SQL_CACHE t1.* FROM sym_fields AS `t1` WHERE 1 AND t1.`id` IN(52);
[0.0004] SELECT SQL_CACHE * FROM `sym_fields_input` WHERE `field_id` IN (52);
[0.0002] SELECT SQL_CACHE t1.* FROM sym_fields AS `t1` WHERE 1 AND t1.`id` IN(94);
[0.0002] SELECT SQL_CACHE * FROM `sym_fields_association` WHERE `field_id` IN (94);
[0.0002] SELECT SQL_CACHE CASE hide_association WHEN "no" THEN "yes" ELSE "no" END as show_association FROM `sym_sections_association` WHERE `child_section_field_id` = 94;
[0.0002] INSERT INTO `sym_sections_association` (`parent_section_id`, `parent_section_field_id`, `child_section_id`, `child_section_field_id`, `hide_association`, `interface`, `editor`) VALUES ('7', '52', '6', '94', 'no', 'aui-selector', null);
[0.0002] UPDATE sym_fields SET `label` = 'Navigationspunkt', `element_name` = 'nav', `parent_section` = '6', `location` = 'sidebar', `required` = 'yes', `type` = 'association', `show_column` = 'yes', `sortorder` = '4' WHERE `id` = 61;
[0.0001] SELECT SQL_CACHE `type` FROM `sym_fields` WHERE `id` = 61 LIMIT 1;
[0.0001] DELETE FROM `sym_fields_association` WHERE `field_id` = 61 LIMIT 1;
[0.0001] INSERT INTO `sym_fields_association` (`field_id`, `related_field_id`, `allow_multiple_selection`, `hide_when_prepopulated`, `limit`) VALUES ('61', '60', 'no', 'no', '20');
[0.0002] DELETE FROM sym_sections_association WHERE `child_section_field_id` = 61 OR `parent_section_field_id` = 61;
[0.0002] SELECT SQL_CACHE t1.* FROM sym_fields AS `t1` WHERE 1 AND t1.`id` IN(60);
[0.0002] SELECT SQL_CACHE * FROM `sym_fields_reflection` WHERE `field_id` IN (60);
[0.0003] SELECT SQL_CACHE t1.* FROM sym_fields AS `t1` WHERE 1 AND t1.`id` IN(61);
[0.0002] SELECT SQL_CACHE * FROM `sym_fields_association` WHERE `field_id` IN (61);
[0.0002] SELECT SQL_CACHE CASE hide_association WHEN "no" THEN "yes" ELSE "no" END as show_association FROM `sym_sections_association` WHERE `child_section_field_id` = 61;
[0.0002] INSERT INTO `sym_sections_association` (`parent_section_id`, `parent_section_field_id`, `child_section_id`, `child_section_field_id`, `hide_association`, `interface`, `editor`) VALUES ('5', '60', '6', '61', 'no', 'aui-selector', 'aui-editor-new');
[0.0001] UPDATE sym_fields SET `label` = 'Veröffentlicht', `element_name` = 'veroeffentlicht', `parent_section` = '6', `location` = 'sidebar', `required` = 'no', `type` = 'checkbox', `show_column` = 'yes', `sortorder` = '5' WHERE `id` = 46;
[0.0001] SELECT SQL_CACHE `type` FROM `sym_fields` WHERE `id` = 46 LIMIT 1;
[0.0001] DELETE FROM `sym_fields_checkbox` WHERE `field_id` = 46 LIMIT 1;
[0.0001] INSERT INTO `sym_fields_checkbox` (`default_state`, `field_id`) VALUES ('on', '46');
[0.0001] UPDATE sym_fields SET `label` = 'Ist nur Navigationspunkt', `element_name` = 'nur-nav', `parent_section` = '6', `location` = 'sidebar', `required` = 'no', `type` = 'checkbox', `show_column` = 'yes', `sortorder` = '6' WHERE `id` = 80;
[0.0001] SELECT SQL_CACHE `type` FROM `sym_fields` WHERE `id` = 80 LIMIT 1;
[0.0001] DELETE FROM `sym_fields_checkbox` WHERE `field_id` = 80 LIMIT 1;
[0.0001] INSERT INTO `sym_fields_checkbox` (`default_state`, `field_id`) VALUES ('off', '80');
[0.0001] UPDATE sym_fields SET `label` = 'Großbild/er (über dem Haupttext)', `element_name` = 'grossbild', `parent_section` = '6', `location` = 'sidebar', `required` = 'no', `type` = 'association', `show_column` = 'no', `sortorder` = '7' WHERE `id` = 82;
[0.0001] SELECT SQL_CACHE `type` FROM `sym_fields` WHERE `id` = 82 LIMIT 1;
[0.0001] DELETE FROM `sym_fields_association` WHERE `field_id` = 82 LIMIT 1;
[0.0001] INSERT INTO `sym_fields_association` (`field_id`, `related_field_id`, `allow_multiple_selection`, `hide_when_prepopulated`, `limit`) VALUES ('82', '28', 'yes', 'no', '20');
[0.0002] DELETE FROM sym_sections_association WHERE `child_section_field_id` = 82 OR `parent_section_field_id` = 82;
[0.0002] SELECT SQL_CACHE t1.* FROM sym_fields AS `t1` WHERE 1 AND t1.`id` IN(28);
[0.0002] SELECT SQL_CACHE * FROM `sym_fields_reflection` WHERE `field_id` IN (28);
[0.0002] SELECT SQL_CACHE t1.* FROM sym_fields AS `t1` WHERE 1 AND t1.`id` IN(82);
[0.0002] SELECT SQL_CACHE * FROM `sym_fields_association` WHERE `field_id` IN (82);
[0.0002] SELECT SQL_CACHE CASE hide_association WHEN "no" THEN "yes" ELSE "no" END as show_association FROM `sym_sections_association` WHERE `child_section_field_id` = 82;
[0.0001] INSERT INTO `sym_sections_association` (`parent_section_id`, `parent_section_field_id`, `child_section_id`, `child_section_field_id`, `hide_association`, `interface`, `editor`) VALUES ('3', '28', '6', '82', 'no', 'aui-selector-sortable', 'aui-editor-new');
[0.0001] UPDATE sym_fields SET `label` = 'Bilder', `element_name` = 'bilder', `parent_section` = '6', `location` = 'sidebar', `required` = 'no', `type` = 'association', `show_column` = 'no', `sortorder` = '8' WHERE `id` = 44;
[0.0001] SELECT SQL_CACHE `type` FROM `sym_fields` WHERE `id` = 44 LIMIT 1;
[0.0001] DELETE FROM `sym_fields_association` WHERE `field_id` = 44 LIMIT 1;
[0.0001] INSERT INTO `sym_fields_association` (`field_id`, `related_field_id`, `allow_multiple_selection`, `hide_when_prepopulated`, `limit`) VALUES ('44', '28', 'yes', 'no', '20');
[0.0001] DELETE FROM sym_sections_association WHERE `child_section_field_id` = 44 OR `parent_section_field_id` = 44;
[0.0002] SELECT SQL_CACHE t1.* FROM sym_fields AS `t1` WHERE 1 AND t1.`id` IN(44);
[0.0002] SELECT SQL_CACHE * FROM `sym_fields_association` WHERE `field_id` IN (44);
[0.0002] SELECT SQL_CACHE CASE hide_association WHEN "no" THEN "yes" ELSE "no" END as show_association FROM `sym_sections_association` WHERE `child_section_field_id` = 44;
[0.0001] INSERT INTO `sym_sections_association` (`parent_section_id`, `parent_section_field_id`, `child_section_id`, `child_section_field_id`, `hide_association`, `interface`, `editor`) VALUES ('3', '28', '6', '44', 'no', 'aui-selector-sortable', 'aui-editor-new');
[0.0002] UPDATE sym_fields SET `label` = 'Downloads', `element_name` = 'downloads', `parent_section` = '6', `location` = 'sidebar', `required` = 'no', `type` = 'association', `show_column` = 'no', `sortorder` = '9' WHERE `id` = 45;
[0.0001] SELECT SQL_CACHE `type` FROM `sym_fields` WHERE `id` = 45 LIMIT 1;
[0.0001] DELETE FROM `sym_fields_association` WHERE `field_id` = 45 LIMIT 1;
[0.0001] INSERT INTO `sym_fields_association` (`field_id`, `related_field_id`, `allow_multiple_selection`, `hide_when_prepopulated`, `limit`) VALUES ('45', '33', 'yes', 'no', '20');
[0.0002] DELETE FROM sym_sections_association WHERE `child_section_field_id` = 45 OR `parent_section_field_id` = 45;
[0.0002] SELECT SQL_CACHE t1.* FROM sym_fields AS `t1` WHERE 1 AND t1.`id` IN(33);
[0.0002] SELECT SQL_CACHE * FROM `sym_fields_reflection` WHERE `field_id` IN (33);
[0.0002] SELECT SQL_CACHE t1.* FROM sym_fields AS `t1` WHERE 1 AND t1.`id` IN(45);
[0.0002] SELECT SQL_CACHE * FROM `sym_fields_association` WHERE `field_id` IN (45);
[0.0002] SELECT SQL_CACHE CASE hide_association WHEN "no" THEN "yes" ELSE "no" END as show_association FROM `sym_sections_association` WHERE `child_section_field_id` = 45;
[0.0002] INSERT INTO `sym_sections_association` (`parent_section_id`, `parent_section_field_id`, `child_section_id`, `child_section_field_id`, `hide_association`, `interface`, `editor`) VALUES ('4', '33', '6', '45', 'no', 'aui-selector-sortable', 'aui-editor-new');
[0.0002] UPDATE sym_fields SET `label` = 'Karte', `element_name` = 'geo', `parent_section` = '6', `location` = 'sidebar', `required` = 'no', `type` = 'association', `show_column` = 'no', `sortorder` = '10' WHERE `id` = 211;
[0.0002] SELECT SQL_CACHE `type` FROM `sym_fields` WHERE `id` = 211 LIMIT 1;
[0.0001] DELETE FROM `sym_fields_association` WHERE `field_id` = 211 LIMIT 1;
[0.0001] INSERT INTO `sym_fields_association` (`field_id`, `related_field_id`, `allow_multiple_selection`, `hide_when_prepopulated`, `limit`) VALUES ('211', '179', 'yes', 'no', '20');
[0.0002] DELETE FROM sym_sections_association WHERE `child_section_field_id` = 211 OR `parent_section_field_id` = 211;
[0.0002] SELECT SQL_CACHE t1.* FROM sym_fields AS `t1` WHERE 1 AND t1.`id` IN(179);
[0.0002] SELECT SQL_CACHE * FROM `sym_fields_input` WHERE `field_id` IN (179);
[0.0002] SELECT SQL_CACHE t1.* FROM sym_fields AS `t1` WHERE 1 AND t1.`id` IN(211);
[0.0002] SELECT SQL_CACHE * FROM `sym_fields_association` WHERE `field_id` IN (211);
[0.0002] SELECT SQL_CACHE CASE hide_association WHEN "no" THEN "yes" ELSE "no" END as show_association FROM `sym_sections_association` WHERE `child_section_field_id` = 211;
[0.0001] INSERT INTO `sym_sections_association` (`parent_section_id`, `parent_section_field_id`, `child_section_id`, `child_section_field_id`, `hide_association`, `interface`, `editor`) VALUES ('19', '179', '6', '211', 'no', 'aui-selector', 'aui-editor-new');
[0.0001] UPDATE sym_fields SET `label` = 'Englisch', `element_name` = 'en', `parent_section` = '6', `location` = 'main', `required` = 'no', `type` = 'publish_tabs', `show_column` = 'no', `sortorder` = '11' WHERE `id` = 41;
[0.0002] SELECT SQL_CACHE `type` FROM `sym_fields` WHERE `id` = 41 LIMIT 1;
[0.0001] DELETE FROM `sym_fields_publish_tabs` WHERE `field_id` = 41 LIMIT 1;
[0.0001] INSERT INTO `sym_fields_publish_tabs` (`field_id`) VALUES ('41');
[0.0002] UPDATE sym_fields SET `label` = 'Titel (en)', `element_name` = 'titel-en', `parent_section` = '6', `location` = 'main', `required` = 'no', `type` = 'input', `show_column` = 'yes', `sortorder` = '12' WHERE `id` = 42;
[0.0002] SELECT SQL_CACHE `type` FROM `sym_fields` WHERE `id` = 42 LIMIT 1;
[0.0002] DELETE FROM `sym_fields_input` WHERE `field_id` = 42 LIMIT 1;
[0.0001] INSERT INTO `sym_fields_input` (`validator`, `field_id`) VALUES (null, '42');
[0.0002] UPDATE sym_fields SET `label` = 'Text (en)', `element_name` = 'text-en', `parent_section` = '6', `location` = 'main', `required` = 'no', `type` = 'textarea', `show_column` = 'no', `sortorder` = '13' WHERE `id` = 50;
[0.0001] SELECT SQL_CACHE `type` FROM `sym_fields` WHERE `id` = 50 LIMIT 1;
[0.0002] DELETE FROM `sym_fields_textarea` WHERE `field_id` = 50 LIMIT 1;
[0.0001] INSERT INTO `sym_fields_textarea` (`formatter`, `size`, `field_id`) VALUES ('markdown_extra_with_smartypants', '15', '50');
[0.0002] UPDATE sym_fields SET `label` = 'Leichte Sprache', `element_name` = 'ls', `parent_section` = '6', `location` = 'main', `required` = 'no', `type` = 'publish_tabs', `show_column` = 'no', `sortorder` = '14' WHERE `id` = 62;
[0.0001] SELECT SQL_CACHE `type` FROM `sym_fields` WHERE `id` = 62 LIMIT 1;
[0.0001] DELETE FROM `sym_fields_publish_tabs` WHERE `field_id` = 62 LIMIT 1;
[0.0001] INSERT INTO `sym_fields_publish_tabs` (`field_id`) VALUES ('62');
[0.0001] UPDATE sym_fields SET `label` = 'Titel (ls)', `element_name` = 'titel-ls', `parent_section` = '6', `location` = 'main', `required` = 'no', `type` = 'input', `show_column` = 'yes', `sortorder` = '15' WHERE `id` = 63;
[0.0001] SELECT SQL_CACHE `type` FROM `sym_fields` WHERE `id` = 63 LIMIT 1;
[0.0001] DELETE FROM `sym_fields_input` WHERE `field_id` = 63 LIMIT 1;
[0.0001] INSERT INTO `sym_fields_input` (`validator`, `field_id`) VALUES (null, '63');
[0.0001] UPDATE sym_fields SET `label` = 'Text (ls)', `element_name` = 'text-ls', `parent_section` = '6', `location` = 'main', `required` = 'no', `type` = 'textarea', `show_column` = 'no', `sortorder` = '16' WHERE `id` = 64;
[0.0001] SELECT SQL_CACHE `type` FROM `sym_fields` WHERE `id` = 64 LIMIT 1;
[0.0001] DELETE FROM `sym_fields_textarea` WHERE `field_id` = 64 LIMIT 1;
[0.0001] INSERT INTO `sym_fields_textarea` (`formatter`, `size`, `field_id`) VALUES ('markdown_extra_with_smartypants', '15', '64');
[0.0001] UPDATE sym_fields SET `label` = 'Reihenfolge', `element_name` = 'reihenfolge', `parent_section` = '6', `location` = 'sidebar', `required` = 'no', `type` = 'order_entries', `show_column` = 'no', `sortorder` = '17' WHERE `id` = 48;
[0.0246] SHOW COLUMNS FROM sym_entries_data_48 WHERE Field like 'field_%';;
[0.0802] ALTER TABLE `sym_entries_data_48` DROP COLUMN `field_94`;
[0.0873] ALTER TABLE `sym_entries_data_48` ADD COLUMN `field_`varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL;
nitriques commented 9 years ago

The only way I've fixed it for now was to wrap this SQL statement in a try catch block.

Still trying to figure out a better solution, but was not able to check if the index exists before dropping it.

nitriques commented 9 years ago

cc @jonmifsud

animaux commented 9 years ago

I get yet another mySQL Error on a fresh Symphony 2.6.2 install:

Symphony Fatal Database Error: 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 '' at line 3

An error occurred while attempting to execute the following query
SELECT SQL_CACHE value, field_ FROM sym_entries_data_20 WHERE entry_id=

Backtrace

[/www/htdocs/…/2015/symphony/lib/toolkit/class.mysql.php:556]
    MySQL->__error();
[/www/htdocs/…/2015/symphony/lib/toolkit/class.mysql.php:772]
    MySQL->query();
[/www/htdocs/…/2015/extensions/order_entries/fields/field.order_entries.php:52]
    MySQL->fetch();
[/www/htdocs/…/2015/symphony/lib/toolkit/class.entry.php:182]
    fieldOrder_Entries->processRawFieldData();
[/www/htdocs/…/2015/symphony/content/content.publish.php:988]
    Entry->setDataFromPost();
[/www/htdocs/…/2015/symphony/content/content.publish.php:349]
    contentPublish->__viewNew();
[/www/htdocs/…/2015/symphony/content/content.publish.php:354]
    contentPublish->__switchboard();
[/www/htdocs/…/2015/symphony/lib/toolkit/class.administrationpage.php:465]
    contentPublish->view();
[/www/htdocs/…/2015/symphony/content/content.publish.php:320]
    AdministrationPage->build();
[/www/htdocs/…/2015/symphony/lib/core/class.administration.php:212]
    contentPublish->build();
[/www/htdocs/…/2015/symphony/lib/core/class.administration.php:490]
    Administration->__buildPage();
[/www/htdocs/…/2015/symphony/lib/boot/func.utilities.php:232]
    Administration->display();
[/www/htdocs/…/2015/symphony/lib/boot/func.utilities.php:212]
    symphony_launcher();
[/www/htdocs/…/2015/index.php:17]
    symphony();

Database Query Log

[0.0001] SET character_set_connection = 'utf8', character_set_database = 'utf8', character_set_server = 'utf8';
[0.0000] SET CHARACTER SET 'utf8';
[0.0001] SET time_zone = '+02:00';
[0.0004] SELECT SQL_CACHE t1.name, t2.page, t2.delegate, t2.callback FROM `sym_extensions` as t1 INNER JOIN `sym_extensions_delegates` as t2 ON t1.id = t2.extension_id WHERE t1.status = 'enabled' ORDER BY t2.delegate, t1.name;
[0.0001] SELECT SQL_CACHE `name` FROM `sym_extensions` WHERE `status` = 'enabled';
[0.0002] SELECT SQL_CACHE `session_data` FROM `sym_sessions` WHERE `session` = '2d6b80462cfe74ed18f290605c6a3bd5' LIMIT 1;
[0.0001] SELECT SQL_CACHE a.* FROM `sym_authors` AS `a` WHERE `username` = 'alex' ORDER BY a.id ASC LIMIT 1;
[0.0001] UPDATE sym_authors SET `last_seen` = '2015-07-23 20:48:00' WHERE `id` = 1;
[0.0001] SELECT SQL_CACHE * FROM `sym_extensions`;
[0.0002] SELECT SQL_CACHE `id` FROM `sym_sections` WHERE `handle` = 'projekte' LIMIT 1;
[0.0002] SELECT SQL_CACHE * FROM `sym_sections_association` AS `sa`, `sym_sections` AS `s` WHERE `sa`.`child_section_id` = 1 AND `s`.`id` = `sa`.`parent_section_id` ORDER BY `s`.`sortorder` ASC;
[0.0000] SELECT SQL_CACHE * FROM `sym_sections_association` AS `sa`, `sym_sections` AS `s` WHERE `sa`.`parent_section_id` = 1 AND `s`.`id` = `sa`.`child_section_id` ORDER BY `s`.`sortorder` ASC;
[0.0002] SELECT SQL_CACHE `s`.* FROM `sym_sections` AS `s` ORDER BY `s`.`sortorder` asc;
[0.0001] SELECT SQL_CACHE d.pages, d.id FROM `sym_documentation` AS d ORDER BY d.pages ASC;
[0.0001] SELECT SQL_CACHE `id` FROM `sym_sections` WHERE `handle` = 'projekte' LIMIT 1;
[0.0001] SELECT SQL_CACHE COUNT(*) FROM `sym_entries` WHERE `section_id` = '1';
[0.0001] SELECT SQL_CACHE t1.* FROM sym_fields AS `t1` WHERE 1 AND t1.`id` IN(20);
[0.0001] SELECT SQL_CACHE * FROM `sym_fields_order_entries` WHERE `field_id` IN (20);
[0.0001] SELECT SQL_CACHE `e`.id, `e`.section_id, e.`author_id`, UNIX_TIMESTAMP(e.`creation_date`) AS `creation_date`, UNIX_TIMESTAMP(e.`modification_date`) AS `modification_date` FROM `sym_entries` AS `e` LEFT OUTER JOIN `sym_entries_data_20` AS `ed` ON (`e`.`id` = `ed`.`entry_id`) WHERE 1 AND `e`.`section_id` = 1 ORDER BY `ed`.`value` asc LIMIT 0, 1;
[0.0001] SELECT SQL_CACHE `id`, `element_name`, `type`, `location` FROM `sym_fields` WHERE `parent_section` = 1 ORDER BY `sortorder` ASC;
[0.0000] SELECT SQL_CACHE t1.* FROM sym_fields AS `t1` WHERE 1 AND t1.`id` IN(1);
[0.0001] SELECT SQL_CACHE * FROM `sym_fields_input` WHERE `field_id` IN (1);
[0.0000] SELECT SQL_CACHE t1.* FROM sym_fields AS `t1` WHERE 1 AND t1.`id` IN(2);
[0.0000] SELECT SQL_CACHE * FROM `sym_fields_input` WHERE `field_id` IN (2);
[0.0000] SELECT SQL_CACHE t1.* FROM sym_fields AS `t1` WHERE 1 AND t1.`id` IN(3);
[0.0000] SELECT SQL_CACHE * FROM `sym_fields_checkbox` WHERE `field_id` IN (3);
[0.0001] SELECT SQL_CACHE t1.* FROM sym_fields AS `t1` WHERE 1 AND t1.`id` IN(4);
[0.0001] SELECT SQL_CACHE * FROM `sym_fields_taglist` WHERE `field_id` IN (4);
[0.0001] SELECT SQL_CACHE CASE hide_association WHEN "no" THEN "yes" ELSE "no" END as show_association FROM `sym_sections_association` WHERE `child_section_field_id` = 4;
[0.0000] SELECT SQL_CACHE t1.* FROM sym_fields AS `t1` WHERE 1 AND t1.`id` IN(5);
[0.0000] SELECT SQL_CACHE * FROM `sym_fields_textarea` WHERE `field_id` IN (5);
[0.0001] SELECT SQL_CACHE t1.* FROM sym_fields AS `t1` WHERE 1 AND t1.`id` IN(9);
[0.0001] SELECT SQL_CACHE * FROM `sym_fields_association` WHERE `field_id` IN (9);
[0.0000] SELECT SQL_CACHE CASE hide_association WHEN "no" THEN "yes" ELSE "no" END as show_association FROM `sym_sections_association` WHERE `child_section_field_id` = 9;
[0.0000] SELECT SQL_CACHE t1.* FROM sym_fields AS `t1` WHERE 1 AND t1.`id` IN(10);
[0.0000] SELECT SQL_CACHE * FROM `sym_fields_association` WHERE `field_id` IN (10);
[0.0000] SELECT SQL_CACHE CASE hide_association WHEN "no" THEN "yes" ELSE "no" END as show_association FROM `sym_sections_association` WHERE `child_section_field_id` = 10;
[0.0000] SELECT SQL_CACHE t1.* FROM sym_fields AS `t1` WHERE 1 AND t1.`id` IN(11);
[0.0000] SELECT SQL_CACHE * FROM `sym_fields_association` WHERE `field_id` IN (11);
[0.0000] SELECT SQL_CACHE CASE hide_association WHEN "no" THEN "yes" ELSE "no" END as show_association FROM `sym_sections_association` WHERE `child_section_field_id` = 11;
[0.0001] SELECT SQL_CACHE `id` FROM `sym_sections` WHERE `handle` = 'projekte' LIMIT 1;
[0.0001] SELECT SQL_CACHE t1.* FROM sym_fields AS `t1` WHERE 1 AND t1.`location` = 'sidebar' AND t1.`parent_section` = '1' ORDER BY t1.`sortorder` ASC;
[0.0000] SELECT SQL_CACHE * FROM `sym_fields_checkbox` WHERE `field_id` IN (3);
[0.0000] SELECT SQL_CACHE * FROM `sym_fields_taglist` WHERE `field_id` IN (4);
[0.0000] SELECT SQL_CACHE * FROM `sym_fields_order_entries` WHERE `field_id` IN (20);
[0.0000] SELECT SQL_CACHE t1.* FROM sym_fields AS `t1` WHERE 1 AND t1.`location` = 'main' AND t1.`parent_section` = '1' ORDER BY t1.`sortorder` ASC;
[0.0000] SELECT SQL_CACHE * FROM `sym_fields_input` WHERE `field_id` IN (1,2);
[0.0000] SELECT SQL_CACHE * FROM `sym_fields_textarea` WHERE `field_id` IN (5);
[0.0000] SELECT SQL_CACHE * FROM `sym_fields_association` WHERE `field_id` IN (9,10,11);
[0.0000] SELECT SQL_CACHE `id`, `element_name`, `type`, `location` FROM `sym_fields` WHERE `parent_section` = 1 ORDER BY `sortorder` ASC;
[0.0005] SHOW COLUMNS FROM sym_entries_data_20 WHERE Field like 'field_%';;

Looking into PMA I also found the extension creates columns using swedish encoding instead of unicode …

nitriques commented 9 years ago

Looking into PMA I also found the extension creates columns using swedish encoding instead of unicode

This is the default collation in MySQL (swedish). But yeah, it should be fixed here

Does this helps ?

animaux commented 9 years ago

Will have to check later. It’s worth noting that the error only occurs on entry creation/saving when required fields are not filled.

animaux commented 9 years ago

Removing the code you mentioned seems to work for me! Thanks!

nitriques commented 9 years ago

Ok great.

nitriques commented 9 years ago

66 has it, so closing here.