ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Pagination Links with Query Strings Enabled

June 28, 2011 11:39am

Subscribe [3]
  • #1 / Jun 28, 2011 11:39am

    sm9

    352 posts

    Hi there,

    When I enable query strings in the config.php file, it stops the pagination from working as it changes the pagination links.

    They change from this: mywebsite.com/blog/P10 (which works)

    To this: mywebsite.com/blog&per_page=P10 (which doesn’t work)

    With query strings enabled, pagination does work if I manually change the URL to the format that works above.

    Is there a way to enable the query strings (which I need to make an addon work), without it changing the pagination links at all?

    Or if not, is this a bug? I’m using EE 2.1.4 Beta 20110411.

    Thanks,

    Stephen

  • #2 / Jun 28, 2011 9:37pm

    Lisa Wess

    20502 posts

    Hi, Stephen -

    Are you removing index.php?  Two things:

    1.  I’d recommend using the supported method of removing index.php, which can account for the question mark.

    2.  You’re on an older beta, so an update to 2.2 is likely in order.

    Does that help?

  • #3 / Jun 28, 2011 9:58pm

    sm9

    352 posts

    Hi Lisa,

    1. I’ve just tried using the supported .htaccess method but that didn’t work either. I also tried manually adding /index.php into the URL, but that didn’t help.

    2. I’ll have to check my addons and see if I’m okay to upgrade to EE 2.2, then I’ll come back to you about this.

    Also, the way my pagination links changed from /blog/P10 to /blog&per_page=P10 after query strings were enabled - is that normal?

    Thanks,

    Stephen

  • #4 / Jun 28, 2011 10:10pm

    Lisa Wess

    20502 posts

    No, that isn’t normal; actually, I’m happy you brought it back up because seeing it with fresh eyes - I’m wondering if you’re using some form of add-on for pagination, or even something like Structure?

  • #5 / Jun 28, 2011 10:18pm

    sm9

    352 posts

    I’m not using any specific pagination addons, but I am using Structure. I’ll have a go at disabling/re-enabling things and see if I can narrow it down. I’ll report back.

    Thanks,

    Stephen

  • #6 / Jun 28, 2011 10:21pm

    Lisa Wess

    20502 posts

    While you try that, can you paste a minimized template code? The bare minimum to reproduce this issue - ie just the entries tag and pagination?

    Thanks!

  • #7 / Jul 26, 2011 2:03am

    Matt Stein

    110 posts

    I’m having the exact same problem with EE 2.2.1—any news?

  • #8 / Jul 26, 2011 2:12am

    Matt Stein

    110 posts

    Just came across FountainInternet’s perfect Low Replace workaround that’ll do for now: http://ellislab.com/forums/viewthread/176487/#852559

  • #9 / Jul 26, 2011 12:56pm

    Lisa Wess

    20502 posts

    Hi, Matt -

    Those aren’t URLs that EE generates.  Are you also on 2.2.1? 

    Also, are you using any add-ons?  It may be time for us to have a look, but let’s get these answers then move from there.

    Thank you.

  • #10 / Jul 26, 2011 1:06pm

    Matt Stein

    110 posts

    Hey Lisa,

    Yes this is on 2.2.1, and this is an add-on-heavy install:
    CartThrob
    Mountee
    SEO Lite
    Structure
    BN Edit Menu
    CP Analytics
    Current URL
    Freebie
    Low NoSpam
    EE2 Child Categories
    ImageSizer
    Low Replace
    Low Widon’t
    Low Yearly Archives
    URL title to entry ID
    Matrix

    This site is now public so I’m hesitant to start disabling add ons, but I can back up and be quick/sneaky if you’d recommend it.

  • #11 / Jul 26, 2011 1:29pm

    Lisa Wess

    20502 posts

    Hi, Matt -

    If you can sneak in temporarily disabling all extensions - using the “Disable all Extensions” button (do not disable individual extensions, that will cause data loss)  - then that might help us figure out what is going on.

    Let me know what you find out.  Thank you!

  • #12 / Jul 26, 2011 1:35pm

    Matt Stein

    110 posts

    Okay, I just disabled the extensions via big green button and nothing happened. I also deleted all caches for good measure, but exact same on-page result with the “blog&per_page=P6” style links.

  • #13 / Jul 26, 2011 1:36pm

    Lisa Wess

    20502 posts

    Did the extensions grey out, Matt?  Want to make sure the disabling “took”.

    I’m going to send an email your way, so please be on the lookout in the next few minutes.

  • #14 / Jul 26, 2011 1:39pm

    Matt Stein

    110 posts

    Yes, they grayed out and the little green confirmation icon appeared as expected:
    http://wrkcpt.com/323H1a111M0C1w372y17

  • #15 / Jul 26, 2011 1:54pm

    Lisa Wess

    20502 posts

    Alright.  We got your details and having a look.  Will update here as soon as we know more.  Thanks Matt!

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases