Receiving the following error on context add / edit pages:

User warning: The following module is missing from the file system: vertical_tabs_example. For information about how to fix this, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1128 of /home1/user/public_html/t/sandbox/includes/bootstrap.inc).

The following issue: https://www.drupal.org/node/2771685 made me dig into the file creating the reference to vertical tabs, and the ONLY file that came back was from this one.

grep -rnw './' -e "vertical_tabs_example"
./sites/all/modules/contextual_view_modes/plugins/context_reaction.view_mode.inc:32: 'vertical-tabs' => drupal_get_path('module', 'vertical_tabs_example') . '/vertical_tabs_example.js',
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

philsward created an issue. See original summary.

philsward’s picture

Forgot to test this issue against disabling CVM last night. If CVM is disabled, the error does indeed go away.

philsward’s picture

To remove this error, remove the vertical tab javascript attachment from plugins/context_reaction.view_mode.inc

Starting around line 28, the code needs to go from:

    // Create a VT group for supported entity types.
    $form['entity_types'] = array(
      '#type' => 'vertical_tabs',
      '#attached' => array(
        'js' => array(
          'vertical-tabs' => drupal_get_path('module', 'vertical_tabs_example') . '/vertical_tabs_example.js',
        ),
      ),
    );

to

   // Create a VT group for supported entity types.
  $form['entity_types'] = array(
  '#type' => 'vertical_tabs',
  );
mausolos’s picture

Status: Active » Patch (to be ported)
FileSize
860 bytes

Same issue. I created a patch reflecting philsward's #3, and it appears to resolve the issue.

mausolos’s picture

Hello? Any update on this? Thanks!

sherakama’s picture

sherakama’s picture

Status: Patch (to be ported) » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.