11 years ago
4
Topic

Normally pagination works ok but after using Search Form I get some problem. When I click some of pagination link I get empty page. I found out that when I add "&view=list" to that url, it starts to work.

I deleted pagination.php from my overrides but it didnt helped.

Any ideas where is the problem and how to solve it?

Regards

Tomek.

Get a VIP membership
11 years ago
0
Level 1

Looking for solution I found something strange in code:

libraries/cck/base/list/list_inc.php

if ( ! $error ) {
     $current['stage']   =   0;
     $items         =   CCK_List::getList( $ordering, $areas, $fields, $fields_order, $config, $current, $options, $user );
   }
   $total   =   count( $items );
   
   // Pagination
   if ( $limitstart != -1 && $limitend > 0 && !( $preconfig['limit2'] > 0 ) ) {
     $items   =   array_splice( $items, $limitstart, $limitend );
   }








It seems that all list is loaded, and after that trimed to limitstart and limitend. With huge data amount it is not optimal.

Maybe some parameters to getList function?

Regards

11 years ago
0
Level 1

Does anyone can report the same error?

10 years ago
1
Level 1
Removing 'Search Friendy URL' from Joomla fixed my problem on this issue!

Global Configuration > Search Engine Friendly URL > off
103 Posts
shubhaanshu
6 years ago
0
Level 2

I also had this problem and it is resolved by disabling the "search engine friendly urls"

Get a Book for SEBLOD