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]
Comments
Comment #1
drupalgideonSubscribe
Comment #2
fuerst commentedI tried to track this down but had no luck. My findings so far:
$optionsat includes/common.inc on line 1592 (that's thel()function) being a string instead of an array.$linksarray for callingtheme_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.cleanpager_theme_pager_link()by Drupal'stheme_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.
Comment #3
cbeier commentedThe 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
Comment #4
j_ten_man commentedHere is an attached patch for fixing this issue. It will also be in the new dev release.
Comment #5
j_ten_man commentedComment #6
cbeier commentedThanks, the patch (7.x-1.x-dev) works for me.
Comment #7
j_ten_man commented