Notice: Undefined index: default in message_field_attach_form()

Created on 23 November 2012, over 11 years ago
Updated 15 January 2024, 5 months ago

Hello,

I tried to manage the display of my message using display suite. I have simple message to display and only want to keep the Default display, but when I delete all the others display, I get an error message on the message edit page :


    Notice: Undefined index: default in message_field_attach_form() (line 505 of D:\***\Drupal\sites\all\modules\message\message.module). Backtrace:

    message_field_attach_form('message_type', Object, Array, Array, 'en') field.attach.inc:580
    field_attach_form('message_type', Object, Array, Array, 'en') message.admin.inc:297
    message_type_form(Array, Array, Object, 'edit', 'message_type') 
    call_user_func_array('message_type_form', Array) form.inc:798
    drupal_retrieve_form('message_type_edit_commerce_order_message_form', Array) form.inc:339
    drupal_build_form('message_type_edit_commerce_order_message_form', Array) entity.module:1095
    entity_ui_get_form('message_type', Object) 
    call_user_func_array('entity_ui_get_form', Array) menu.inc:517
    menu_execute_active_handler() index.php:21

    Notice: Undefined index: default in message_field_attach_form() (line 505 of D:\***\Drupal\sites\all\modules\message\message.module). Backtrace:

    message_field_attach_form('message_type', Object, Array, Array, 'en') field.attach.inc:580
    field_attach_form('message_type', Object, Array, Array, 'en') message.admin.inc:297
    message_type_form(Array, Array, Object, 'edit', 'message_type') 
    call_user_func_array('message_type_form', Array) form.inc:798
    drupal_retrieve_form('message_type_edit_commerce_order_message_form', Array) form.inc:339
    drupal_build_form('message_type_edit_commerce_order_message_form', Array) entity.module:1095
    entity_ui_get_form('message_type', Object) 
    call_user_func_array('entity_ui_get_form', Array) menu.inc:517
    menu_execute_active_handler() index.php:21

Any idead how to fix it ? Is message not compatible with display suite ? I thought it was as it integrate entity API and should not be different than all others entities that perfectly works with DS

Regards,

Alex

πŸ› Bug report
Status

Closed: outdated

Version

1.7

Component

Code

Created by

πŸ‡«πŸ‡·France zmove

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024