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.

Odd 404 using GET variables

November 30, 2010 7:05am

Subscribe [6]
  • #1 / Nov 30, 2010 7:05am

    Lee Powell

    88 posts

    Hi

    I have an odd thing happening, when passing across data with GET variables. If I use only one variable I get a 404 occurring, however, when I pass 2 or more, I get to the page I want.

    For example:

    http://mysite.com/products/compare?product_1=43

    Results in a 404. However:

    http://mysite.com/products/compare?product_1=43&product_2=21

    Displays my compare page perfectly…

    Any idea on why this may be happening?

    Thanks.

  • #2 / Nov 30, 2010 8:01am

    nathanpitman

    531 posts

    Are you using EE2 or EE1? Could you let me know what version…? I’m able to reproduce this in EE 2.1.1 - it actually solves a problem I had which was that I couldn’t get query-string variables to work at all - it seems the solution is to pass more than one in the URL! :!

  • #3 / Nov 30, 2010 8:06am

    Lee Powell

    88 posts

    EE 2.1.1

    I worked out the same solution, but it’s more of a workaround.

  • #4 / Nov 30, 2010 8:09am

    nathanpitman

    531 posts

    Yea, not ideal… but you can make it look tidy by doing something like:

    /myurl/entry_id/?qs=true&myvariable=thisisabitinsane
  • #5 / Nov 30, 2010 10:10am

    Sue Crocker

    26054 posts

    Hi, Lee. It does sound like a bug. I asked Nathan in an earlier thread to post a bug report..

  • #6 / Nov 30, 2010 1:46pm

    Lee Powell

    88 posts

    Thanks Sue. Will use Nathans approach in the meantime.

  • #7 / Nov 30, 2010 6:03pm

    Ingmar

    29245 posts

    Very good. Please post again in case there’s anything else.

  • #8 / Dec 02, 2010 2:06am

    John Henry Donovan

    12339 posts

    Lee and Nathan,

    Don’t believe its a bug.

    Open up your config file system/expressionengine/config/config.php

    and change

    $config['uri_protocol']    = 'AUTO';

    to

    $config['uri_protocol']    = 'PATH_INFO';

    Does that work for you?

  • #9 / Sep 01, 2011 1:49am

    Nate Iler

    29 posts

    I’m experiencing the same issue and I have

    $config['uri_protocol']    = 'PATH_INFO';

    set.

  • #10 / Sep 01, 2011 7:03pm

    Lisa Wess

    20502 posts

    Hi, Nate —

    If you try QUERY_STRING there, does that help?

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

ExpressionEngine News!

#eecms, #events, #releases