When Clean Pagination module is enabled and Rubik (a subtheme of Tao) is set as admin theme pages with pager can not be loaded.

After adding

if (!is_array($options)) {
  debug_print_backtrace();
  exit();
}

to common.inc, this is the output

#0 l(<, <, 2) called at [C:\xampp\htdocs\drupal\includes\theme.inc:1218]
#1 theme_links(Array ([1 pager-current] => Array ([title] => 1),[2 pager-item] => 2), Array ([class] => links pager pager-list)) called at [(null):0]
#2 call_user_func_array(theme_links, Array ([0] => Array ([1 pager-current] => Array ([title] => 1),[2 pager-item] => 2),[1] => Array ([class] => links pager pager-list))) called at [C:\xampp\htdocs\drupal\includes\theme.inc:656]
#3 theme(links, Array ([1 pager-current] => Array ([title] => 1),[2 pager-item] => 2), Array ([class] => links pager pager-list)) called at [C:\xampp\htdocs\drupal\sites\all\themes\tao\template.php:472]
#4 tao_pager_list(, 50, 0, Array (), 9) called at [(null):0]
#5 call_user_func_array(tao_pager_list, Array ([0] => ,[1] => 50,[2] => 0,[3] => Array (),[4] => 9)) called at [C:\xampp\htdocs\drupal\includes\theme.inc:656]
#6 theme(pager_list, , 50, 0, Array (), 9) called at [C:\xampp\htdocs\drupal\sites\all\themes\tao\template.php:408]
#7 tao_pager(, 50, 0) called at [(null):0]
#8 call_user_func_array(tao_pager, Array ([0] => ,[1] => 50,[2] => 0)) called at [C:\xampp\htdocs\drupal\includes\theme.inc:656]
#9 theme(pager, , 50, 0) called at [C:\xampp\htdocs\drupal\modules\node\node.admin.inc:499]
#10 node_admin_nodes() called at [C:\xampp\htdocs\drupal\modules\node\node.admin.inc:444]
#11 node_admin_content(Array ([storage] => ,[submitted] => ,[post] => Array ())) called at [(null):0]
#12 call_user_func_array(node_admin_content, Array ([0] => Array ([storage] => ,[submitted] => ,[post] => Array ()))) called at [C:\xampp\htdocs\drupal\includes\form.inc:376]
#13 drupal_retrieve_form(node_admin_content, Array ([storage] => ,[submitted] => ,[post] => Array ())) called at [(null):0]
#14 call_user_func_array(drupal_retrieve_form, Array ([0] => node_admin_content,[1] => Array ([storage] => ,[submitted] => ,[post] => Array ()))) called at [C:\xampp\htdocs\drupal\includes\form.inc:102]
#15 drupal_get_form(node_admin_content) called at [(null):0]
#16 call_user_func_array(drupal_get_form, Array ([0] => node_admin_content)) called at [C:\xampp\htdocs\drupal\includes\menu.inc:348]
#17 menu_execute_active_handler() called at [C:\xampp\htdocs\drupal\index.php:18]
CommentFileSizeAuthor
#4 cleanpager_taosupport-982794.patch1.84 KBj_ten_man

Comments

drupalgideon’s picture

Subscribe

fuerst’s picture

I tried to track this down but had no luck. My findings so far:

  • Using the technique described at http://drupal.org/node/362799 I traced it to $options at includes/common.inc on line 1592 (that's the l() function) being a string instead of an array.
  • Tao/Rubik's template.php builds the $links array for calling theme_links() as array of strings. theme_links() is expecting an array of arrays. This actually is the point where it breaks. This code works though when the cleanpager module is not enabled.
  • Temporarily replacing cleanpager_theme_pager_link() by Drupal's theme_pager_link() does not help either.
  • Out of ideas I get implementing my own modification in the template.php as described at http://groups.drupal.org/node/3472.

    cbeier’s picture

    The problem also occurs with versions 7.x-1.0-alpha4 and Tao 7.x-3.0-beta4 under Drupal 7.10. I have also open an issue on the Tao project: #1413908: "Argument 3 passed to l() must be an array, string given" on admin content page

    j_ten_man’s picture

    Version: 6.x-1.0-alpha2 » 7.x-1.x-dev
    StatusFileSize
    new1.84 KB

    Here is an attached patch for fixing this issue. It will also be in the new dev release.

    j_ten_man’s picture

    Status: Active » Needs review
    cbeier’s picture

    Thanks, the patch (7.x-1.x-dev) works for me.

    j_ten_man’s picture

    Version: 7.x-1.x-dev » 7.x-1.0
    Status: Needs review » Fixed

    Status: Fixed » Closed (fixed)
    Issue tags: -pagination, -rubik, -clash, -tao

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