Author Topic: category menu links  (Read 9405 times)

Offline jesus_automatic

  • Jr. Member
  • **
  • Posts: 75
  • Karma: +5/-0
    • View Profile
category menu links
« on: January 17, 2014, 03:02:18 PM »
I have a strange problem that seems to be intermittent, and I cant see what it might relate to.
The links from the category menu keep coming up as the numerical ip address instead of the text address. For example
http://37.61.233.155/index.php?rt=product/category&path=49
instead of
http://www.figtreebeauty.com/index.php?rt=product/category&path=49

The links still go to the correct page but a problem arises when you log in or add a product to the cart because the browser cant find the security certificate. Also if you log in, then click one of these links it logs you out? I've tried from another computer in case it was my machine or browser but just the same.
And then its back to normal, only to start again the next day. I'm using 1.1.6 html5 template.

Have you come across anything similar?

Offline abantecart

  • Administrator
  • Hero Member
  • *****
  • Posts: 4153
  • Karma: +251/-9
    • View Profile
    • Ideal Open Source Ecommerce Solution
Re: category menu links
« Reply #1 on: January 17, 2014, 05:02:34 PM »
This depends how you enter the site.
If you enter site with domain link all links will be constructed with your domain.

If you do not want allow IP based access you can add rewrite rule

See if this help you:
http://stackoverflow.com/questions/9985735/redirect-ip-to-domain
We need your help to build better free open source eCommerce platform for everyone.
See how you can help

Offline jesus_automatic

  • Jr. Member
  • **
  • Posts: 75
  • Karma: +5/-0
    • View Profile
Re: category menu links
« Reply #2 on: January 23, 2014, 06:31:49 AM »
Thanks for the reply.
I am starting off on the frontpage with the domain name, and only the category tabs are sending me to ip address pages, after that all pages come up with the ip . And the intermittent nature of it is driving me mad. Just when I think I am getting somewhere it stops and behaves as it should. I had a car like this once. It would run terribly but when I took it to the mechanic it would run like a dream and he would look at me like I was stupid.

gordontaylor

  • Guest
Re: category menu links
« Reply #3 on: January 23, 2014, 09:54:50 AM »
Do a quick with your hosting company, they may have your security Cert installed wrong, it happened to me once. If you installed it, I'm sure they will install it for you for free.

Offline jesus_automatic

  • Jr. Member
  • **
  • Posts: 75
  • Karma: +5/-0
    • View Profile
Re: category menu links
« Reply #4 on: January 24, 2014, 06:45:00 AM »
Thanks Gordon. They installed it themselves and all seemed fine until I changed from default template to html5. But I will check back with them.

Offline jesus_automatic

  • Jr. Member
  • **
  • Posts: 75
  • Karma: +5/-0
    • View Profile
Re: category menu links
« Reply #5 on: January 27, 2014, 12:45:30 PM »
There doesn't appear to be a problem with the SSL.
I've checked from a couple of different devices here and the same. Enter at www.figtreebeauty.com but the category menu links point to  http://37.61.233.155/index.php?rt=product/category&path=64. And once there all further links stay with the numerical address. When you reach a page that requires https you get an error that the security certificate isn't valid etc.

Would someone be kind enough to have a look at my site and see they can replicate this?
And any ideas on why? I have not being doing anything structural to the site, just updating product info and the like.

gordontaylor

  • Guest
Re: category menu links
« Reply #6 on: January 27, 2014, 01:00:59 PM »
I get the same thing, even when using the https:// prefix.

Some security certs DO NOT install in the www prefix, only the root prefix.

I'm using Global trust and they cover both www and the root.

Offline jesus_automatic

  • Jr. Member
  • **
  • Posts: 75
  • Karma: +5/-0
    • View Profile
Re: category menu links
« Reply #7 on: January 27, 2014, 01:15:58 PM »
I get what you are saying, but the issue really is why those links direct to the root address. And why only some days? If they followed the rule that if you start from http://www.domainname it sticks with it then there wouldnt be a problem.

gordontaylor

  • Guest
Re: category menu links
« Reply #8 on: January 27, 2014, 01:35:30 PM »
I can't explain it either, who is your hosting company?

gordontaylor

  • Guest
Re: category menu links
« Reply #9 on: January 27, 2014, 01:37:52 PM »
OK, now it's weird. It's going to the named domain, not the IP of the domain.

Have you tried this in different browsers?

It's a good problem to solve!

It works correctly in IE, FF and Chrome for me now....but it didn't before.

« Last Edit: January 27, 2014, 01:40:52 PM by gordontaylor »

Offline jesus_automatic

  • Jr. Member
  • **
  • Posts: 75
  • Karma: +5/-0
    • View Profile
Re: category menu links
« Reply #10 on: January 27, 2014, 01:44:09 PM »
I have found in my tinkering that if I clear the store cache, then it corrects itself for a day or two, before the problem reappears. That explains the apparent random nature of it, but doesnt help me understand whats causing it.

Thanks for your help and input. I'm glad you like an interesting problem.

gordontaylor

  • Guest
Re: category menu links
« Reply #11 on: January 27, 2014, 01:45:38 PM »
Ah, sounds like an issue with your install.

Have you upgraded to 1.1.8?

It's available today.

Offline jesus_automatic

  • Jr. Member
  • **
  • Posts: 75
  • Karma: +5/-0
    • View Profile
Re: category menu links
« Reply #12 on: January 27, 2014, 01:54:29 PM »
Yes, I saw that. Problem is I had some of the files edited to get it to show wholesale prices when logged in as a wholesaler. I think upgrading will create a whole load of work. I'll leave it until I've got a free day. (in my dreams)

Offline jesus_automatic

  • Jr. Member
  • **
  • Posts: 75
  • Karma: +5/-0
    • View Profile
Re: category menu links
« Reply #13 on: March 11, 2014, 05:15:12 PM »
I have been happily ignoring this problem for a couple of months. And that doesnt seem to have worked. Customers keep calling to let me know the links dont work on my site.
And most recently the link target has been giving the address as
localhost/index.php?rt=product/category&path=49
which doesnt return any page.
I know if I clear the category cache then the problem goes away for a while.
Can anyone tell me which file(s) generates this link address so I can try swapping it out for a clean copy?

Offline junkyard

  • Full Member
  • ***
  • Posts: 127
  • Karma: +24/-0
    • View Profile
Re: category menu links
« Reply #14 on: March 12, 2014, 09:59:55 AM »
These could be related:

core/helper/html.php
core/lib/menu_control_storefront.php
storefront/controller/common/menu.php
storefront/view/default_html5/template/blocks/category.tpl
storefront/view/default_html5/template/blocks/category_top.tpl

Also, see what you have in the public_html/system/cache dir -- look for specific files containing 37.61.233.155
And when had is started to happen?  once you have triggered the SEO URLs feature or something ?

 

Powered by SMFPacks Social Login Mod