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]
  • #16 / Jul 26, 2011 1:58pm

    Sue Crocker

    26054 posts

    Matt, you mentioned you used Low’s add-on to fix the problem you were having. I don’t want to fiddle with your live site, can we have you duplicate a template group where you’re having this issue somewhere else on the site? I’m sending you a note in email about this as well. Please respond via email.

  • #17 / Jul 26, 2011 3:40pm

    Sue Crocker

    26054 posts

    Hi, Matt. Now that we have a copy of your templates, I’m not seeing where you are using pagination, and where it is failing. Can you be more specific here with an exact link where you see the behavior?

  • #18 / Jul 27, 2011 1:06pm

    Lisa Wess

    20502 posts

    Ok, our dev team had a look.  Here’s the issue.  In your system/expressionengine/config file you have this line:

    $config['enable_query_strings'] = TRUE;

    by default, this line would be FALSE. Changing that to TRUE will cause this pagination issue.  Please change that back to FALSE.

    If you want EE to use query strings, i.e. Force Query Strings, the best way to do that is via the control panel in Admin > Output and Debugging.

    You’ll also see in your config file this line:

    // END EE config items

    Really you shouldn’t be messing with things below that line as they can impact your site is strange and fascinating ways (such as these odd pagination strings).

    So, if you change that line to FALSE, does that fix your issue?

    What about for you, sm9? Same problem?

  • #19 / Aug 07, 2011 8:39pm

    sm9

    352 posts

    Hi Lisa,

    I know why the pagination links are breaking, as it’s what I explained in the original post. I guess my point is, I don’t see why they should be changing (and breaking), even if that default setting is changed. I’ve now repeated this issue in EE 2.2.2 also.

    I need the enable_query_strings setting to be true in order to get the Channel Images addon to work. It was actually the DevDemon guys that changed this value when I was having issues with it. Changing this back to False and forcing URL query strings does not solve the issue in this case.

    I’ll chase them up on the exact reasons why I’m needing this value set to True and if there are any other options (maybe it’s due to a server setting or something).

    But back to the pagination issue I’ve reported - I think this is a bug, even if only a minor one in the grand scheme of things, as I don’t think enabling query strings should cause the pagination links to change and break in the way I described in the original post, regardless of what the default setting is. If you agree, I’ll file it in the bug tracker.

    Thanks,

    Stephen

  • #20 / Aug 08, 2011 12:44pm

    Lisa Wess

    20502 posts

    Hi, sm9 -

    To enable query strings you should use the force_ option, not enable_.  Changing the enable_ option will cause EE to use the CI pagination routine instead of the EE one.  I’m not sure why you would need to change that setting for any add-on as it is not one of the config settings that should be changed for an EE installation.

    if you use the force query string option which is designed for EE, then your pagination links will be the normal type.

  • #21 / Aug 08, 2011 11:44pm

    sm9

    352 posts

    Hi Lisa,

    I’ve just found that the underlying cause of my Channel Images issue was down to the ACT urls not working, and this was caused by Freebie rather than Channel images, as per this issue. Disabling Freebie caused Channel Images to work fine once again, without needing to enable the query strings in the config file.

    So now I have no need to have the query strings enabled, I’m no longer going to encounter this pagination issue. 😊

    Thanks for your help with this,

    Stephen

  • #22 / Aug 09, 2011 10:06am

    Sue Crocker

    26054 posts

    Glad things are working for you again.. If anything else comes up, please do let us know in a new thread..

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

ExpressionEngine News!

#eecms, #events, #releases