Jump to content

Popular product errors


Recommended Posts

Popular products list is showing an ip address for the link address. You get this:

 

error.PNG

I have people that clicked and it took them to ftp.csrocketry.com as well

 

If you clear cache, it goes away but returns at some unknown point in the future. 

Edited by Christopher Short
Link to comment
Share on other sites

Given that domain names are a courtesy with respect to how computers actually talk to each other, using an IP address is the actual way to initiate communications - given certain conditions.

The fact that the IP address remains as part of the link to the site, and is cached, suggests some part of your site is still at an older version -- where such version added the domain name to the URLs built for parts of the skin and then cached. That scenario was fixed many versions ago.

When this happens, in the folder /cache/, examine all the files (other than request, sql, and lang) to see which one may have the full domain name (IP Address) in it.

You might also ask your hosting provider to configure your web server [host] file to reject accepting IP addresses on port 80 and 443.

 

Link to comment
Share on other sites

1 hour ago, bsmither said:

Given that domain names are a courtesy with respect to how computers actually talk to each other, using an IP address is the actual way to initiate communications - given certain conditions.

The fact that the IP address remains as part of the link to the site, and is cached, suggests some part of your site is still at an older version -- where such version added the domain name to the URLs built for parts of the skin and then cached. That scenario was fixed many versions ago.

When this happens, in the folder /cache/, examine all the files (other than request, sql, and lang) to see which one may have the full domain name (IP Address) in it.

You might also ask your hosting provider to configure your web server [host] file to reject accepting IP addresses on port 80 and 443.

 

Do you happen to know what version that was fixed in?

Link to comment
Share on other sites

According to the GitHub, issue #1134 changed the Shop by Category navigation code that got cached, in CC6012.

At about that time, I was also having to add the following to the /includes/global.inc.php file, to force CubeCart to use discreet domain names:

$glob['storeURL'] = 'http://www.example.com';
$glob['standard_url'] = 'http://www.example.com';
$glob['ssl_url'] = 'https://www.example.com';

Please know that CubeCart cares not what the "hostname" is, but whatever it is, CubeCart figures it out and remembers it. But, these config settings will override what was used. Which "may" confuse some web browsers -- I am not up to speed on the security and safety measures browsers have lately.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...