We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

bystrom pagination and ee 2.1

Development and Programming

dstechroom's avatar
dstechroom
113 posts
15 years ago
dstechroom's avatar dstechroom

Bystrom pagination does not work with EE 2.1, as it searches for a pagination library previous found in here: (line 197 of the extension):

if ( ! class_exists('Paginate'))
                {
                    require APPPATH.'_to_be_replaced/lib.paginate'.EXT;
                }

This library no longer exists as of EE 2.1.

I’m not sure on a solution to this. Pointing to CI’s native pagination library resulted in a error because the two pagination classes are not identical.

Pages that use the pagination class will return a fatal error, or show a blank page, depending on what your debug settings are.

       
dstechroom's avatar
dstechroom
113 posts
15 years ago
dstechroom's avatar dstechroom

In order to get around this, I just copied the old “_to_be_replaced” folder and it’s contents into the /system/expressionengine folder (as a temporary fix).

       
Ingmar's avatar
Ingmar
29,245 posts
15 years ago
Ingmar's avatar Ingmar

This looks like an issue with this particular add-on; I’ll move this thread.

       
chealey's avatar
chealey
95 posts
15 years ago
chealey's avatar chealey

Having the same issue with something else. Can someone tell us where this folders contents went to in the release of 2.1 so we can edit our code appropriately?

       
Greg Aker's avatar
Greg Aker
6,022 posts
15 years ago
Greg Aker's avatar Greg Aker

ExpressionEngine uses the CodeIgniter pagination class.

       
Studio Meta's avatar
Studio Meta
105 posts
15 years ago
Studio Meta's avatar Studio Meta

Any idea when this will be fixed ? Is there similar addons available ?

Regards,

       
Ingmar's avatar
Ingmar
29,245 posts
15 years ago
Ingmar's avatar Ingmar

Just to stress that this is not an issue with EE as such but with a third-party add-on. Have you tried to contact the original author?

       
trenchard's avatar
trenchard
128 posts
15 years ago
trenchard's avatar trenchard

Is there any information for developers on how to adjust the code? I assume we simply call the CI library function now.

       
chealey's avatar
chealey
95 posts
15 years ago
chealey's avatar chealey

@trenchard the new pagination.php file is located at SYSTEM/CODEIGNITER/SYSTEM/LIBRARY/PAGINATION.PHP

However the files are not exactly the same so for things like Bystrom’s pagination, just pointing it there won’t work because you still have a class mis-match so you’ll get a php Fatal Error.

       
trenchard's avatar
trenchard
128 posts
15 years ago
trenchard's avatar trenchard

I have confirmed that simply using the CI library as documented works well in our modules.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.