Trying to implement http://www.kiloroot.com/drupal-views-megarow-tokens-how-to and unable to expand form below views row with following error/warning.

Warning: implode(): Invalid arguments passed in pm_kickstart_theme_preprocess_links__ctools_dropbutton() (line 38 of /home/nithu/public_html/ps2html.org/public/sites/all/themes/pm_kickstart_theme/template.php).
Warning: implode(): Invalid arguments passed in pm_kickstart_theme_preprocess_links__ctools_dropbutton() (line 38 of /home/nithu/public_html/ps2html.org/public/sites/all/themes/pm_kickstart_theme/template.php).

This same view is working fine with bartik and many other.

Comments

d34dman’s picture

Category: Bug report » Support request

This is not a bug with PM Kickstart Theme.

This bug seems to be caused due to the class attribute being passed as a string, instead of array ( Read more here ).

This same view is working fine with bartik and many other.

That is because, those theme doesn't override ctools dropdown buttons.

I have worked with Views megarow, so if you supply the relevant codes, i can try to help you out.

nithinkolekar’s picture

Views for article content type with megarow format created. No other modules like jquery update is installed except which are required.
Update: Jquery update installed and enabled as dropdown menu not expanding and also site messages couldn't discarded.
I think, for best accessibility of this theme Jquery update (or just jquery > 1.7) is required and can be added as dependent module.

Exported View code is following.

$view = new view();
$view->name = 'megarow_pm_kickstart_test';
$view->description = '';
$view->tag = 'default';
$view->base_table = 'node';
$view->human_name = 'Megarow PM Kickstart test';
$view->core = 7;
$view->api_version = '3.0';
$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */

/* Display: Master */
$handler = $view->new_display('default', 'Master', 'default');
$handler->display->display_options['title'] = 'Megarow PM Kickstart test';
$handler->display->display_options['use_more_always'] = FALSE;
$handler->display->display_options['access']['type'] = 'perm';
$handler->display->display_options['cache']['type'] = 'none';
$handler->display->display_options['query']['type'] = 'views_query';
$handler->display->display_options['exposed_form']['type'] = 'basic';
$handler->display->display_options['pager']['type'] = 'full';
$handler->display->display_options['pager']['options']['items_per_page'] = '10';
$handler->display->display_options['style_plugin'] = 'table_megarows';
$handler->display->display_options['style_options']['columns'] = array(
  'title' => 'title',
);
$handler->display->display_options['style_options']['default'] = '-1';
$handler->display->display_options['style_options']['info'] = array(
  'title' => array(
    'sortable' => 0,
    'default_sort_order' => 'asc',
    'align' => '',
    'separator' => '',
    'empty_column' => 0,
  ),
);
$handler->display->display_options['style_options']['scroll_padding'] = '120';
$handler->display->display_options['row_plugin'] = 'node';
/* Field: Content: Title */
$handler->display->display_options['fields']['title']['id'] = 'title';
$handler->display->display_options['fields']['title']['table'] = 'node';
$handler->display->display_options['fields']['title']['field'] = 'title';
$handler->display->display_options['fields']['title']['label'] = '';
$handler->display->display_options['fields']['title']['alter']['word_boundary'] = FALSE;
$handler->display->display_options['fields']['title']['alter']['ellipsis'] = FALSE;
/* Field: Content: Megarow links */
$handler->display->display_options['fields']['megarow_links']['id'] = 'megarow_links';
$handler->display->display_options['fields']['megarow_links']['table'] = 'views_entity_node';
$handler->display->display_options['fields']['megarow_links']['field'] = 'megarow_links';
$handler->display->display_options['fields']['megarow_links']['megarow'] = array(
  'links' => 'More|node/[node:nid]
Edit|node/[node:nid]/edit',
);
/* Sort criterion: Content: Post date */
$handler->display->display_options['sorts']['created']['id'] = 'created';
$handler->display->display_options['sorts']['created']['table'] = 'node';
$handler->display->display_options['sorts']['created']['field'] = 'created';
$handler->display->display_options['sorts']['created']['order'] = 'DESC';
/* Filter criterion: Content: Published */
$handler->display->display_options['filters']['status']['id'] = 'status';
$handler->display->display_options['filters']['status']['table'] = 'node';
$handler->display->display_options['filters']['status']['field'] = 'status';
$handler->display->display_options['filters']['status']['value'] = 1;
$handler->display->display_options['filters']['status']['group'] = 1;
$handler->display->display_options['filters']['status']['expose']['operator'] = FALSE;
/* Filter criterion: Content: Type */
$handler->display->display_options['filters']['type']['id'] = 'type';
$handler->display->display_options['filters']['type']['table'] = 'node';
$handler->display->display_options['filters']['type']['field'] = 'type';
$handler->display->display_options['filters']['type']['value'] = array(
  'article' => 'article',
);

/* Display: Page */
$handler = $view->new_display('page', 'Page', 'page');
$handler->display->display_options['path'] = 'megarow-pm-kickstart-test';
d34dman’s picture

Project: PM Kickstart Theme » Views Megarow
Category: Support request » Bug report
Status: Active » Needs review
StatusFileSize
new700 bytes

This is a bug in Views Megarow. Supplying a patch for views megarow.

artusamak’s picture

Status: Needs review » Closed (duplicate)

I'm closing this one, a patch has been committed in #2419095: php fatal error. Thank your for reporting.