0

I have a View with 1,000 potential items. When it is paged, it works perfectly, both with Ajax paging or normal paging. But when I try to switch off the display type, the server throws a Server Error 500. No log in the watchdog table of the database or any other registry. I guess that there must be some problem with memory or something, but I would expect a PHP memory allocation error or something. It is not practical to show the 1,000 items at a time for the first time, but if I would want to change to some Page scroll pager like jScroll, I am worried that this is not entirely possible in Drupal.

1

Answering your last statement displaying multiple nodes at once is totally possible in Drupal. (Bear in mind though the power of hosting and caching is something to consider.) Unfortunately, the 500 error isn't helping a lot; a good approach is checking the error logs for any indications there.

If you are suspecting a PHP memory allocation error, try increasing the memory_limit variable in php.ini to a higher value. This link might be helpful.

Displaying thousands of nodes at once needs caching, so your site can be nice and quick. First, enable the caching in the advanced section of your View UI. Also consider using modules like memcache and boost.

As I said, first check what this 500 error you are getting is, because maybe it has nothing to do with the amount of nodes you are displaying.

  • I have looked at the Apache logs and don't see the error. I am pretty confident it is a problem of memory or something, because if I use the pager and set a high limit, there is a moment where the problem happens, and even changing the order fields criterion on the View, so it seems to deal with the number of rows to be shown. In any case, it was just a curiosity, thank you very much. I think that the Taxonomy admin GUI had the same problem cause they had no pagination and with many items it crashed, and installed the module Taxonomy Manager. Now seems to work fine in new Drupal core versions. – Cesar Aug 11 '16 at 6:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.