Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

I'm getting this error on my new setup - HELP


alark

Recommended Posts

I just changed hosting companies and am creating a whole new store for my site. I thought all was well, but now I whenever I try to look up products by category or click different buttons, I see this:

 

Error!

 

Unable to determine the page link!

 

Also, for some reason the category listing on the left side wants to link to a different domain of mine, however the domain is not listed in any of the config files.

 

Please help me fix this or tell me what is wrong. I've got to get my store back up and going, I'm losing money and probably customers.

 

Thanks,

Stephen

Link to comment
Share on other sites

I just changed hosting companies and am creating a whole new store for my site. I thought all was well, but now I whenever I try to look up products by category or click different buttons, I see this:

 

Error!

 

Unable to determine the page link!

 

In includes/functions/html_output.php find this code in the tep_href_link() function:

	if (!tep_not_null($page)) {
  die('</td></tr></table></td></tr></table><br><br><font color="#ff0000"><b>Error!</b></font><br><br><b>Unable to determine the page link!<br><br>');
}

and change it to this:

	if (!tep_not_null($page)) {
  trigger_error('</td></tr></table></td></tr></table><br><br><font color="#ff0000"><b>Error!</b></font><br><br><b>Unable to determine the page link!</b><br><br>');
}

This change will not kill the script but instead output an error at the exact place that the null page variable is being passed. In turn, once you find out where the error is occurring it should be a simple matter to fix.

 

Also, for some reason the category listing on the left side wants to link to a different domain of mine, however the domain is not listed in any of the config files.

Most likely this is due to the fact that you are using the default location for the cache folder (/tmp/). This directory is a shared once with everyone that is hosted on that particular server. So, if there are other osC stores on that box it is very possible and likely that you are using THEIR cache file and not your own. The best thing to do is create a cache directory OUTSIDE your webroot (i.e. - directly adjacent to the public_html folder) and give it 777 permission (world readable and writable). Then, set your cache directory to this folder and it will ALWAYS just use your cache files and not others.

 

Enjoy!

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...