Pagination stopped working
The pagination on the my blog posts has stopped working. If you click on 'next' (1 of 4) it just stays on the same page (page1).
<perch:if exists="paging">
<div class="paging">
Page
<perch:blog id="current_page" /> of
<perch:blog id="number_of_pages" />
<perch:blog id="page_links" encode="false" />
<perch:if exists="not_first_page">
<a href="<perch:blog id=" prev_url " encode="false " rewrite="/blog/{cat:category:%s/}{page:page/%s} "/>"
rel="prev">Previous</a>
</perch:if>
<perch:if exists="not_last_page">
<a href="<perch:blog id=" next_url " encode="false " rewrite="/blog/{cat:category:%s/}{page:page/%s} "/>" rel="next">Next</a>
</perch:if>
</div>
</perch:if>
</perch:after>
Please post your Diagnostics Report with each post to the forum.
Also, what happened before it stopped working? The code can't break itself so something has changed.
Also, what happened before it stopped working? The code can't break itself so something has changed.
The only things that have happened is that I have styled the pagination with CSS and updated perch.
Diagnostics Report below. Perch Runway: 2.8.29, PHP: 5.5.31, MySQL: mysqlnd 5.0.11-dev - 20120503 - $Id: 15d5c781cfcad91193dceae1d2cdd127674ddb3e $, with PDO Server OS: Linux, cgi-fcgi Installed apps: content (2.8.29), assets (2.8.29), categories (2.8.29), perch_blog (4.6), perch_kraken (1.0), collection_1 (2.8.29), perch_backup (1.2), perch_mailchimp (3.0.1) App runtimes: <?php $apps_list = array( 'content', 'categories', 'perch_blog', 'perch_mailchimp', ); PERCH_LOGINPATH: /perch PERCH_PATH: /home4/digitale/public_html/perch PERCH_CORE: /home4/digitale/public_html/perch/core PERCH_RESFILEPATH: /home4/digitale/public_html/perch/resources Image manipulation: GD Imagick PHP limits: Max upload 128M, Max POST 128M, Memory: 128M, Total max file upload: 128M F1: 2edba60ed1f613d6dd804feb202456a2 Resource folder writeable: Yes SCRIPT_NAME: /perch/core/settings/diagnostics/index.php REQUEST_URI: /perch/core/settings/diagnostics/ DOCUMENT_ROOT: /home4/digitale/public_html HTTP_HOST: digitaleducation.education
It looks like you've updated Perch but you've not updated Blog to go along with it. The current version is 5.0.
Updated to v5.00 still have the same issue.
What code are you using to display the listing that has no pagination?
Top of this page is what I am using for pagination. It does not move from 1 to 2 2 to 3 etc just stays on the same page when you click next.
Can you show me your function call in the page? Something like
perch_blog_custom(...)
Can you try adding the option:
so it reads:
Added, no change.
Can you show me what the debug outputs now?
Debug output:
That looks like it's filtering for the first 10 correctly. Does the output change for page 2?
What's the URL for page 2?
I am only on 1-4 pages
This is page 2
Ok, that looks correct - it's getting 10 records from record 10 onwards.
So, is there a reason it is not working on the site?
It looks like it is working to me. Is the page online?
It is https://digitaleducation.education/blog but the server is down!! its just being rebooted, so I would wait half an hour or so or I will repost when it is up.
It is back up now.
It looks like it's working for me. I get different result for each page:
Well that's very strange, I have tried it on:
Google, Google developer edition, Firefox, Firefox developer edition, Safari, iPad, iPhone and I get the same results each time, it just stays on page 1?
If you look at the source code, should there not be a link for <a href="" instead of blank?
<div class="paging"> Page 1 of 4 <a href="" rel="next">Next</a> </div>