Viewing 14 replies - 1 through 14 (of 14 total)
  • brodnax2008

    (@brodnax2008)

    Hey I can see your products on the page. I am having a similar issue with my cart and checkout pages when I am not logged in, I only see partial info and the coupon and returning customer links don’t work. If I am logged in the site I can see it all fine and the links worked.

    Can you tell me how you fixed your issue?

    Plugin Contributor Mike Jolley

    (@mikejolley)

    The direct link and site link doesn’t work for me. I see the page is cached, so that may be related.

    Thread Starter rosen4o

    (@rosen4o)

    Yes the problem is direct link is not working
    If you click on top menu second item then same link is opened but then works

    It’s not related of the cache if I turn it off then doesn’t work too
    When I check with query monitor when direct link is hit page is redirected to post_type product
    But when direct link is hit it’s redirected to shop page

    It’s very strange

    Plugin Contributor Mike Jolley

    (@mikejolley)

    No thats not the case. If I click that link I still have no results.

    Thread Starter rosen4o

    (@rosen4o)

    Yes you are correct
    Very strange, I have disabled the cache and now the problem is same
    On direct hit there are no products on click there are.

    Plugin Contributor Mike Jolley

    (@mikejolley)

    It’s strange. If you copy/paste the link it works too. I wonder if its related to the special chars in the URL and your server combined.

    Thread Starter rosen4o

    (@rosen4o)

    First I think the problem comes from the chars and have changed it to Latin chars but same issue is happening.

    I have other woocommerce installation on which shop page is working with Cyrillic chars

    Plugin Contributor Mike Jolley

    (@mikejolley)

    have you done other tests, such as different themes etc?

    Thread Starter rosen4o

    (@rosen4o)

    Yes,
    I have set default theme and disabled all plugins except woocommerce
    And situation is same

    Plugin Contributor Mike Jolley

    (@mikejolley)

    Does not really make any sense if you’re using latin chars, and there is no caching.

    if you compare the URLs, there is one slight difference. The working one, the entities are lower case. The broken one is uppercase.

    Bad link: https://dl.dropboxusercontent.com/s/33g03xvm8m7s5je/2016-03-14%20at%2016.30.png?dl=0

    Good link: https://dl.dropboxusercontent.com/s/4o6u2mm6jntwbo0/2016-03-14%20at%2016.31.png?dl=0

    Thread Starter rosen4o

    (@rosen4o)

    Thanks for the help
    Yes this is the problem

    Probably when I write url then browser encode url by default with uppercases but in the database is with lowercase and this is causing the issue

    Thread Starter rosen4o

    (@rosen4o)

    Solution is simply like

    function unFocus_insensitivity() {
        if (preg_match('/[A-ZА-Я]/', $_SERVER['REQUEST_URI'])) {
            $_SERVER['REQUEST_URI'] = strtolower($_SERVER['REQUEST_URI']);
            $_SERVER['PATH_INFO']   = strtolower($_SERVER['PATH_INFO']);
        }
    }
    add_action('init', 'unFocus_insensitivity');
    Thread Starter rosen4o

    (@rosen4o)

    And thanks once again

    Plugin Contributor Mike Jolley

    (@mikejolley)

    This may be something which should be reported to WP trac – I’m not knowledgeable enough with these types of domains to know if its a core bug or server issue.

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘Very strange issue with redirect’ is closed to new replies.