Page 1 of 2 12 LastLast
Results 1 to 10 of 13
  1. #1
    Join Date
    Oct 2006
    Location
    Worcester, MA
    Posts
    453
    Plugin Contributions
    0

    Default Home page redirecting to non-existent product page

    PHP Version: 7.4.30 (Zend: 3.4.0)
    Database Engine: MySQL 5.7.33-log
    Zen Cart 1.5.7b
    ---


    My client's shop is suddenly redirecting index.php or index.php?main_page=index to a product page (index.php?main_page=product_info&products_id=4189). As it happens that product doesn't exist, so there's just a "Sorry, the product was not found." message.

    I'm a bit baffled by this. Client claims he did not make any change. Unknown if the hosting company did something.

    No other URLs are similarly effected. So, categories pages, other products, ez pages etc. all work as expected.

    Any suggestions of what to look for that might be causing this?

    Thanks!
    Ellie Armsby

  2. #2
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,137
    Plugin Contributions
    11

    Default Re: Home page redirecting to non-existent product page

    Make sure you haven't accidentally made a selection in Configuration >> Layout Settings. One of those could force the site to open with a product or one-product category.

  3. #3
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,681
    Plugin Contributions
    123

    Default Re: Home page redirecting to non-existent product page

    As @dbltoe said, check Layout Settings > Main Page - Opens with Category
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  4. #4
    Join Date
    Oct 2006
    Location
    Worcester, MA
    Posts
    453
    Plugin Contributions
    0

    Default Re: Home page redirecting to non-existent product page

    Thanks for that. I checked the settings in Configuration >> Layout Settings to see if this might be causing it. I'm guessing the most likely culprit would be "Main Page - Opens with Category"? This is set to 0 currently which seems correct. Just to test, I set it to an actual category ID but the main page still opens to the same non-existent product.

    Any other thoughts?
    Ellie Armsby

  5. #5
    Join Date
    Oct 2006
    Location
    Worcester, MA
    Posts
    453
    Plugin Contributions
    0

    Default Re: Home page redirecting to non-existent product page

    After looking into several things (htaccess issues, hacked files, etc), I'm still not finding the cause of this. Does anyone have another suggestion for me to check?
    Ellie Armsby

  6. #6
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,137
    Plugin Contributions
    11

    Default Re: Home page redirecting to non-existent product page

    Do you have a link we can look at?

    Have you tried https://smallseotools.com/redirect-checker/?

  7. #7
    Join Date
    Oct 2006
    Location
    Worcester, MA
    Posts
    453
    Plugin Contributions
    0

    Default Re: Home page redirecting to non-existent product page

    I'll have a look at that tool. Wasn't aware of it.

    The link to my client's store with the problem is: https://billholabmusic.com/store
    Ellie Armsby

  8. #8
    Join Date
    Oct 2006
    Location
    Worcester, MA
    Posts
    453
    Plugin Contributions
    0

    Default Re: Home page redirecting to non-existent product page

    So, the redirect checker shows a 302 redirect to "store/index.php?main_page=product_info&products_id=4189"

    My client claims that he did not do anything in his hosting set up (he uses Ionos which doesn't use cPanel but some other proprietary software for server config). There's also nothing set in the htaccess file that would doing this rediect.

    Where could this be introduced?
    Ellie Armsby

  9. #9
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,137
    Plugin Contributions
    11

    Default Re: Home page redirecting to non-existent product page

    It's not coming from the WordPress home-to-store link.

    I would contact the host and ask where they have added the 302 redirect.

    These are normally temporay and certainly no one would want to temporarily reroute to a non-existant product.

  10. #10
    Join Date
    Feb 2009
    Location
    UK
    Posts
    1,238
    Plugin Contributions
    1

    Default Re: Home page redirecting to non-existent product page

    I've seen a mention on the Forum that this might happen if there's a product in the Top level category (0). Perhaps your client copied one there by mistake and they now have both products and categories in the same category (0) - a big no-no.

    However, given the product does not exist then I'm not so sure but might be worth checking the contents of Top (0) just in case.
    Simon

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v155 Search Box: Search for non-existent product produces redirect error
    By Saintsteven in forum General Questions
    Replies: 3
    Last Post: 3 Feb 2018, 05:35 AM
  2. Replies: 12
    Last Post: 13 Oct 2013, 11:41 PM
  3. v139h Home Page is Redirecting to /default
    By westech in forum General Questions
    Replies: 2
    Last Post: 8 Jul 2013, 04:36 PM
  4. help, someone added non visible links to my home page?
    By simondirect in forum General Questions
    Replies: 2
    Last Post: 2 May 2011, 10:18 AM
  5. Non-template home page
    By lbowenc in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 4 Jan 2008, 05:01 AM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR