The error ‘Unable to determine the page link’ in OSCommerce MS 2

Challenge: Recently I tried to move an older OSC website from one host to another host. After I made changes in the configure.php files and uploaded them to the new host, the first page could not be loaded such error messages as “unable to determine the page link…”. And everything would be fine if I commented out any codes with basename($PHP_SELF) function.

Trouble Shootings: The first suggested solution is to turn register_globals on by putting php_flag register_globals on in the .htaccess file. But I got “500 internal error” by doing so. Even I put register_globals = on in a new php.ini file, the problem still existed.

After I checked my phpinfo() I found out the register_globals already turned on, then I concluded that this is not the way I needed to continue.

Next, I replaced $PHP_SELF with _SERVER['PHP_SELF'] , all pages appeared fine, but all these images disappeared since the image path became to something like “http://www.domainname.com/product_info.php/path/c/images/…”.

Working Solution:

Finally, I got the working solution: I need to turn off the Use Search-Engine Safe URLs feature through the back-end admin portion.

How-to:

  1. Log into your administrative portion.
  2. Click Configuration–>My Store.
  3. Find “Use Search-Engine Safe URLs (still in development)” and click edit button, then make the option as “false”.
  4. Refresh your website, everything should be fine now.
Tags: , , ,

Related posts

2 Responses to “The error ‘Unable to determine the page link’ in OSCommerce MS 2”


  1. 1 saijin

    1. create an .htaccess file
    2. write the following text on the .htaccess file:
    3. php_value register_long_arrays on
    2. upload it inside your catalog/ folder

    [ Reply ]

    WebGuru replied on March 28, 2008:

    thanks, I will try it later.

Leave a Reply