Where is my Drupal View player?

I have a Drupal 6 site where I created a view that shows a list of nodes. Nothing complicated - except that when I select "use pager" β†’ "yes" (and select the option "full pager"), the pager does not appear on the page. The first page of the nodes appears, but there is no access to other pages.

Through googling, I saw that some people had a problem with the Pager Element element, so I changed this from 0 to 1 - no luck.

It should not be very difficult, but I was on it for a while!

Help!

ETA: I traced it to the following lines in /modules/views/theme/theme.inc:

$pager_theme = views_theme_functions($pager_type, $view, $view->display_handler->display); $vars['pager'] = theme($pager_theme, $exposed_input, $view->pager['items_per_page'], $view->pager['element']); 

The first line returns an array; the second line returns nothing.

Now I suspect that this is a problem with the custom theme that I use, maybe not completely updated for Drupal 6 - like, maybe for some reason I miss the pager template? β€œHowever, I am pretty new to Drupal and don’t understand how to further track and fix the problem.” Any advice would be highly appreciated!

ETA again:

The pager also does not appear when using Garland, so in the end it is not a topic. ALSO: I have a copy of this site configured on the development server, and this copy works on a pagination basis! I checked what I thought could be different - the files in the topic, which modules are included, and it looks like everything is the same. However, one thing I know is different from the fact that the production server has a lower version of MySQL (lower than recommended for Drupal 6 - we expect the hosting company to be able to change this later). Does it make sense that the old version of MySQL cannot correctly render pages in Drupal 6? If so, does anyone know a workaround that I can make until we can upgrade MySQL?

+4
source share
4 answers

It was MySQL all the time! Moved to a new server with the correct version of MySQL, and everything is witty again.

+3
source

I had this problem and fixed it like this:

edit your opinion: click "Use Pager" and set "Pager Element:" from 0 to 1. Save the view.

+5
source

It looks like you did a lot to troubleshoot. Try a default theme like Garland and see if it fixes it. If so, you know that this is a topic issue.

+2
source

A few things you can try:

  • Clone the view and see if the pager is displayed there.
  • Change the view from the node list to the field list and back (or vice versa)
  • See if you have any comments shown in the view. Disable comments to see if this causes a problem, since comments have their own pager. (If you need comments, you may need to change your pager # to a larger number than nodes, i.e. # From nodes +1)
  • Enable / disable ajax pager option
  • Check your .htaccess on the production server. Tweak the RewriteBase
  • Try deleting the database and restoring it again. Updating from 4 to 5 may not properly configure table sorting.

This is all I can think of now to try without additional information. Using the export of your submission may help.

Also, did you try to duplicate the site on the production server under a different domain name or subdomain? This can lead to some problems. Good luck

+1
source

All Articles