I am using Magento v1.8.1
My developer (who has now left the team) had implemented custom pagination on my site about a year ago. It was working just fine till recently. Now, clicking on the right arrow button, or on any of the page numbers just returns the first page of results. While we changed our hosting from GoDaddy to AWS recently, there should not have been any code changes that I am aware of.
Here is the codeblock from the phtml page -- for simplicity, I have stripped out all the html formatting related code:
<?php $specialorders = $this->getCollection(); ?> <?php if(count($specialorders) > 0): ?> <?php echo $this->getPagerHtml(); ?> <?php foreach($specialorders as $specialorder): ?> <?php echo $specialorder->getData('special_order_num') ;?> <?php echo $this->getStatus($specialorder->getData('status')) ;?> <?php endforeach; ?> <?php else: ?> <?php echo "<p class='msg'>You don't have any special orders associated with your account</p>"; ?> <?php endif; ?>