Page 1 of 3 123 LastLast
Results 1 to 10 of 24
  1. #1
    Join Date
    Aug 2009
    Location
    Longs, SC
    Posts
    626
    Plugin Contributions
    2

    Default Problem with redirects

    I'm having a problem that's a real head scratcher. When you enter a search term that is not found it gives the message:
    The page isn't redirecting properly
    Firefox has detected that the server is redirecting the request for this address in a way that will never complete.
    A valid search works correctly. This site was recently upgraded from 1.3.9 and has the CEON URI mapping mod installed and active. PHP 5.3.29 MySQL 5.5.41-cll-lve. A complete list of mods is:
    blank sidebox
    advanced shipper
    ceon uri mapping manager
    ckeditor
    email archive manager
    google analytics
    image handler 4.3.2
    cowoa 2.4
    mydebug backtrace
    numinix facebook lke button
    product listing sorter
    tabbed product pro
    thub
    timezone fix
    ty package tracker

    There a no errors being logged and the server logs are not showing anything. Anybody have any suggestions on how to debug this? Here's a link to the site if you want to see the problem http://tinyurl.com/qay5dhe

  2. #2
    Join Date
    Aug 2009
    Location
    Longs, SC
    Posts
    626
    Plugin Contributions
    2

    Default Re: Problem with redirects

    Just a quick update. The hosting company was able to see the following in the logs:
    Its actually causing a small flood, you can see here in the access logs (only the first copied):

    x.x.x.x- - [03/Mar/2015:11:21:44 -0600] "GET /index.php?main_page=advanced_search&search_in_description=1&keyword=sebhor&inc_s ubcat=0&sort=20a HTTP/1.1" 302 24 "http://domain.com/"; "Mozilla/5.0 (Windows NT 6.3; WOW64; Trident/7.0; rv:11.0) like Gecko"
    x.x.x.x - - [03/Mar/2015:11:21:44 -0600] "GET /index.php?main_page=advanced_search&search_in_description=1&keyword=sebhor&inc_s ubcat=0&sort=20a HTTP/1.1" 302 24
    You can see its 3-4 times a second, that is your IP so its obviously not malicious. It doesn't appear to be from htaccess so something like an internal PHP redirect. Do you have any mods that use rewrites like SEO?
    So it seems it's related to the CEON SEO mods.

  3. #3
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,949
    Plugin Contributions
    96

    Default Re: Problem with redirects

    To validate your theory, you could temporarily turn the Ceon SEO 'off' ...

    Additionally, I noticed:
    Code:
    &inc_s ubcat=0&
    Is there really that space between &inc_ and ubcat?

  4. #4
    Join Date
    Aug 2009
    Location
    Longs, SC
    Posts
    626
    Plugin Contributions
    2

    Default Re: Problem with redirects

    No extra space. It must have been from the cut and paste. I tried turning it off and interestingly it does not make a difference. This is the only situation where it happens and the rewrites work perfectly in all other pages and it works correctly if the search term is found.

  5. #5
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: Problem with redirects

    Quote Originally Posted by badarac View Post
    So it seems it's related to the CEON SEO mods.
    This is almost always the case (can happen with any SEO mod that doesn't take everything into consideration, or one that has additional rules added to the .htaccess file (possibly in the wrong order).

    @lat9
    "Is there really that space between &inc_ and ubcat?"

    The answer is No. Here's what the actual URL shows.
    index.php?main_page=advanced_search&search_in_description=1&keyword=QWERTY&inc_s ubcat=0&sort=20a


    Cheers
    RodG

  6. #6
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: Problem with redirects

    Quote Originally Posted by badarac View Post
    I tried turning it off and interestingly it does not make a difference.
    Try renaming or removing the .htaccess file. Does the problem still persist?

    Cheers
    RodG

  7. #7
    Join Date
    Aug 2009
    Location
    Longs, SC
    Posts
    626
    Plugin Contributions
    2

    Default Re: Problem with redirects

    With the htacces file renamed and the seo mod turned off it still happens. I guess I'm going to need to look at the search form and what happens when it doesn't find a match.

  8. #8
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: Problem with redirects

    Quote Originally Posted by RodG View Post
    @lat9
    "Is there really that space between &inc_ and ubcat?"

    The answer is No. Here's what the actual URL shows.
    index.php?main_page=advanced_search&search_in_description=1&keyword=QWERTY&inc_s ubcat=0&sort=20a

    Cheers
    RodG
    Oooer. I think you may be in to something here. I just noted that MY cut n paste also has this space. It ISN'T showing in the URL though.

    I think some kind of odd character has managed to creep in somewhere that is messing with things.

    More investigationing needed.

    Cheers
    RodG

  9. #9
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: Problem with redirects

    Quote Originally Posted by badarac View Post
    With the htacces file renamed and the seo mod turned off it still happens. I guess I'm going to need to look at the search form and what happens when it doesn't find a match.
    See my next/previous message. We appear to be barking up the wrong tree.

    There is *something* amiss with the "inc_s ubcat".

    Offhand I don't know where that is set or defined, but find and fix that and you'll probably fix the issue.

    Cheers
    RodG

  10. #10
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: Problem with redirects

    Quote Originally Posted by RodG View Post
    More investigationing needed.
    templates/tpl_advanced_search_default.php (or the same named file in your CUSTOM_TEMPLATE folder)


    Probably around line#35

    Code:
    <?php echo zen_draw_checkbox_field('inc_subcat', '1', $sData['inc_subcat'], 'id="inc-subcat"'); ?>
    Re-enter the 'inc_subcat' in both places, even if it *looks* ok. (type it. Don't cut n paste)

    Cheers
    RodG

 

 
Page 1 of 3 123 LastLast

Similar Threads

  1. v153 Admin page access fails with too many redirects
    By swguy in forum Bug Reports
    Replies: 28
    Last Post: 16 Jan 2015, 07:13 PM
  2. Replies: 3
    Last Post: 17 Jan 2011, 05:15 PM
  3. redirects problem
    By lieven23 in forum General Questions
    Replies: 5
    Last Post: 3 Oct 2009, 12:18 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg