[bug] Create new Types in v3.0.9-dev2, assigns id=0 to new type, and next generated type fails with error

More
9 years 2 months ago - 9 years 2 months ago #57371 by SteP
If you try to create a new type, after saving its id is equal to 0 instead of an incremental number.

If you try to create a further new type, it fails with this error:
Code:
Duplicate entry '0' for key 'id' SQL=INSERT INTO `j3vm3mmc_flexicontent_types` (`id`,`name`,`alias`,`published`,`itemscreatable`,`checked_out`,`checked_out_time`,`access`,`attribs`) VALUES ('0','test','test','1','0','0','','1','{\"title_display_label\":\"\",\"title_label\":\"\",\"title_desc\":\"\",\"title_viewdesc\":\"\",\"auto_title\":\"0\",\"maintext_display_label\":\"\",\"maintext_label\":\"\",\"maintext_desc\":\"\",\"maintext_viewdesc\":\"\",\"hide_maintext\":\"0\",\"maintext_hide_html\":\"\",\"maintext_height\":\"400\",\"categories_display_label\":\"\",\"categories_label\":\"\",\"categories_desc\":\"\",\"categories_viewdesc\":\"\",\"created_display_label\":\"\",\"created_label\":\"\",\"created_desc\":\"\",\"created_viewdesc\":\"\",\"created_by_display_label\":\"\",\"created_by_label\":\"\",\"created_by_desc\":\"\",\"created_by_viewdesc\":\"\",\"modified_display_label\":\"\",\"modified_label\":\"\",\"modified_desc\":\"\",\"modified_viewdesc\":\"\",\"modified_by_display_label\":\"\",\"modified_by_label\":\"\",\"modified_by_desc\":\"\",\"modified_by_viewdesc\":\"\",\"document_display_label\":\"\",\"document_type_label\":\"\",\"document_type_desc\":\"\",\"document_type_viewdesc\":\"\",\"hits_display_label\":\"\",\"hits_label\":\"\",\"hits_desc\":\"\",\"hits_viewdesc\":\"\",\"version_display_label\":\"\",\"version_label\":\"\",\"version_desc\":\"\",\"version_viewdesc\":\"\",\"state_display_label\":\"\",\"state_label\":\"\",\"state_desc\":\"\",\"state_viewdesc\":\"\",\"voting_display_label\":\"\",\"voting_label\":\"\",\"voting_desc\":\"\",\"voting_viewdesc\":\"\",\"voting_main_counter\":\"\",\"voting_main_counter_show_label\":\"\",\"voting_main_counter_show_percentage\":\"\",\"voting_main_label\":\"\",\"voting_enable_extra_votes\":\"\",\"voting_extra_votes\":\"\",\"voting_extra_counter\":\"\",\"voting_extra_counter_show_label\":\"\",\"voting_extra_counter_show_percentage\":\"\",\"favourites_display_label\":\"\",\"favourites_label\":\"\",\"favourites_desc\":\"\",\"favourites_viewdesc\":\"\",\"tags_display_label\":\"\",\"tags_label\":\"\",\"tags_desc\":\"\",\"tags_viewdesc\":\"\",\"catid_allowed_parent\":\"\",\"catid_allowed_parent_disable\":\"1\",\"catid_default\":\"\",\"cid_allowed_parent\":\"\",\"cid_allowed_parent_disable\":\"1\",\"microdata_itemtype\":\"\",\"override_title\":\"0\",\"addcat_title\":\"1\",\"add_canonical\":\"\",\"robots\":\"\",\"allow_jview\":\"0\",\"search_jlinks\":\"1\",\"type_menu_itemid\":\"379\",\"type_menu_itemid_usage\":\"0\",\"show_title\":\"\",\"show_intro\":\"\",\"comments\":\"\",\"automatic_pathways\":\"\",\"show_print_icon\":\"\",\"show_email_icon\":\"\",\"show_editbutton\":\"\",\"show_state_icon\":\"\",\"searchable\":\"\",\"filters\":\"\",\"buttons_placement_fe\":\"\",\"approval_warning_inform_fe\":\"\",\"approval_warning_aftersubmit_fe\":\"\",\"submit_message\":\"\",\"submit_redirect_url_fe\":\"\",\"notauthurl\":\"379\",\"use_captcha\":\"\",\"captcha\":\"\",\"captcha_formop\":\"\",\"usetitle_fe\":\"\",\"usealias_fe\":\"\",\"usetags_fe\":\"\",\"allowdisablingcomments_fe\":\"\",\"uselang_fe\":\"\",\"default_language_fe\":\"\",\"langdisplay_fe\":\"\",\"langdisplay_flags_fe\":\"\",\"langdisplay_texts_fe\":\"\",\"allow_subscribers_notify_fe\":\"\",\"usepublicationdetails_fe\":\"\",\"usemetadata_fe\":\"\",\"useseoconf_fe\":\"\",\"usedisplaydetails_fe\":\"\",\"selecttheme_fe\":\"\",\"form_tab_titles\":\"\",\"form_tab_icons\":\"\",\"form_tabs_above\":\"\",\"form_tabs_below\":\"\",\"form_tab01_fields\":\"\",\"form_tab02_fields\":\"\",\"form_tab03_fields\":\"\",\"form_tab04_fields\":\"\",\"form_tab05_fields\":\"\",\"form_tab06_fields\":\"\",\"form_tab07_fields\":\"\",\"form_tabs_fieldsman\":\"\",\"form_container_css_fe\":\"\",\"form_extra_css_fe\":\"\",\"form_extra_js_fe\":\"\",\"form_extra_css_be\":\"\",\"form_extra_js_be\":\"\",\"form_extra_css\":\"\",\"form_extra_js\":\"\",\"enable_notifications\":\"\",\"nf_send_as_bcc\":\"\",\"nf_add_introtext\":\"\",\"nf_add_fulltext\":\"\",\"nf_enable_debug\":\"\",\"userlist_notify_new\":\"\",\"text_notify_new\":\"\",\"userlist_notify_new_pending\":\"\",\"text_notify_new_pending\":\"\",\"userlist_notify_existing\":\"\",\"text_notify_existing\":\"\",\"userlist_notify_existing_reviewal\":\"\",\"text_notify_existing_reviewal\":\"\",\"items_manager_extra_fields\":\"\",\"items_manager_custom_filters\":\"\",\"ilayout\":\"blog\",\"title_cut_text\":\"\",\"show_author\":\"\",\"show_create_date\":\"\",\"show_modifier\":\"\",\"show_modify_date\":\"\",\"show_category\":\"\",\"show_vote\":\"\",\"show_favs\":\"\",\"show_tags\":\"\",\"columnmode\":\"\",\"htmlmode\":\"\"}')

Joomla 3.4.4 - FC 3.0.9-dev2 Release date: 2015-09-18

_________________________________________
MMC Edizioni - www.mmcedizioni.it
Website Developer & Graphics
Last edit: 9 years 2 months ago by ggppdk.

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

More
9 years 2 months ago #57382 by ggppdk
Hello

so you cannot create a new type ?

- can you check if the DB table
flexicontent_types
is marked as crashed in phpmyadmin and click repair on it ?
- reupload v3.0.9-dev2 via Joomla installer

if the above does not work, then also try with this one
github.com/FLEXIcontent/flexicontent-cck...ag/v3.0.9-2015_09_22


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

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

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.877 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline