Publisher does not support the Fluid field type. Please do not contact asking when support will be available.

If you purchased an add-on from expressionengine.com, be sure to visit boldminded.com/claim to add the license to your account here on boldminded.com.

Ticket: Pagination Error

Status Resolved
Add-on / Version Publisher Lite 1.4.2
Severity Critical
EE Version 2.8.1

Ron Hickson

Jul 21, 2014

When I try to use pagination for a list of entries from a Publisher managed channel this error is thrown:

A PHP Error was encountered
Severity: Notice
Message: Undefined variable: full_sql
Filename: models/publisher_entry.php
Line Number: 1329

A PHP Error was encountered
Severity: Warning
Message: Division by zero
Filename: libraries/EE_Pagination.php
Line Number: 315

A PHP Error was encountered
Severity: Warning
Message: Division by zero
Filename: libraries/EE_Pagination.php
Line Number: 316

Without pagination it works.  Without Publisher it works.  Just not together.  I’m hoping it’s just something as simple as the $full_sql variable missing in the code…

#1

BoldMinded (Brian)

I see that its not defined in that method, but its odd that I didn’t encounter this error during testing. I’ll take another look at it tonight.

#2

BoldMinded (Brian)

What happens if you change that line/variable to this?

$channel->pagination->build($count, $channel->pagination->per_page);

#3

BoldMinded (Brian)

Confirmed this is the fix, will be in the next release.

Login to reply