Overnight the following php error is being reported on our EE (2.6) site for pages requiring pagination:

A PHP Error was encountered

Severity: Notice

Message: Undefined property: Pagination_object::$pager_sql

Filename: ab_pagination/ext.ab_pagination.php

Line Number: 159

e.g. here:


Any thoughts on why + how to fix?


1 Answer 1


It looks as though the error is coming from the AB Pagination add-on. Have you updated it recently?

As to why it's suddenly appearing, it's possible that the error may have always been there and it just wasn't shown. Maybe the server it's hosted on has had it's PHP error_reporting settings changed in it's INI file to allow PHP Notices to be visible?

This blog post tells you how you can turn errors and notices on/off in code. So you would put the code it suggests in the ab_pagination/ext.ab_pagination.php file.

However, I'd suggest getting to the root of why the error is being caused in the first place, rather than putting a sticking plaster over it. I notice you've asked the question over at Addon Bakery, so hopefully the developer will give you a satisfactory answer.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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