Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Error! Unable to determine the page link!


BuddyFinton

Recommended Posts

Posted

I am working on my setting up a new osCommerce site. For some reason when I click on a category it goes to the page but part way through generating the page it it gives a "Error! Unable to determine the page link!" message. It can be seen at the bottom of the page. You can see the message at http://www.magicmenagerie.com/shop/index.php/cPath/25

 

Anyone one have any ideas what the problem maybe?

 

The only contribution I've added is the mini-stores contribution.

 

Any help would be appreciated.

 

Thanks,

 

Buddy

Posted

I've not seen this error before, but have you got any products within any of the categories you've created. If not, try it with some test items.

 

Julian

A little knowledge is dangerous, I SHOULD KNOW.

If Life Begins At 40, What ends????

Posted

First, turn off the SEF URLs.

 

Next, edit includes/functions/html_output.php and find this code:

    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)) {
     #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>');
 $page = 'here-i-am-now-fix-me.error.html';
}

Save the file and reload the page. The above code removes the script error die and will complete the page load. Next, look at the source of your page and look for the link that has "here-i-am-now-fix-me.error.html" and fix it.

 

For example, after making the above change you find that the error is in a certain box. Go to the box and correct the error.

 

Bobby

Posted

I made the changes you recommended and of course the page finished loading but when I searched the source the "here-i-am-now-fix-me.error.html" was not anywhere in the links. I did turn off SEF URLs first. It seem to be wokring fine. Are there any foreseeable pitfalls of leaving the code as changed? Can I re-enable SEF URLs?

 

Thanks for your help,

 

Buddy

  • 1 month later...
Posted
I made the changes you recommended and of course the page finished loading but when I searched the source the "here-i-am-now-fix-me.error.html" was not anywhere in the links.  I did turn off SEF  URLs first.  It seem to be wokring fine.  Are there any foreseeable pitfalls of leaving the code as changed?  Can I re-enable SEF URLs?

 

Thanks for your help,

 

Buddy

 

Here one potential solution for SEF URL problems

 

http://www.oscommerce.com/forums/index.php?showtopic=139660

 

Hope that helps! :thumbsup:

Archived

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

×
×
  • Create New...