Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Unable to determine the page link - strange!


vinegar

Recommended Posts

Hello,

 

I have installed a fresh 2.2MS2 and STS 2.01

 

When I enter my site with the addres: www.mysite.com I got an error message:

 

Languages 

Error!

Unable to determine the page link!

 

But when I enter the site like this: www.mysite.com/index.php - everything works fine and without any problems.

 

This is the source of html provided to the browser when I get the error msg:

 

<!-- languages //-->
<tr>
<td>
  <table border="0" width="100%" cellspacing="0" cellpadding="0">
    <tr>
      <td height="14" class="infoBoxHeading"><img src="images/infobox/corner_right_left.gif" border="0" alt="" width="11" height="14"></td>
      <td width="100%" height="14" class="infoBoxHeading">Languages</td>
      <td height="14" class="infoBoxHeading" nowrap><img src="images/pixel_trans.gif" border="0" alt="" width="11" height="14"></td>
    </tr>
 </table>
</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>

 

It looks like there is some part of application generating error when accessing the site without the file refernece after www.mysite.com/

 

Do you know how to overcome that error? I would be very grateful for any help.

 

Regards,

Lukas.

Link to comment
Share on other sites

have you got search engine friendly urls activated in admin - if so try disabling it - it solved it for me once

 

no they are not activated.

I tired to turn them on and off again - still doesn't work.

 

Thanks for you effort! Any other ideas?

Link to comment
Share on other sites

i believe you have an index.htm/index.html page, remove it from the directory

 

No, that is not the case... If you tried www.rohloff.pl/index.html or www.rohloff.pl/index.htm you would see there are no such files - I also doulbe checked at my server for other 'extra' files but nothong apart from standard osCommerce found....

 

Regards, Lukas.

Link to comment
Share on other sites

try this instead :

 

go to includes/application_top.php and find

 

 

// set php_self in the local scope

if (!isset($PHP_SELF)) $PHP_SELF = $HTTP_SERVER_VARS['PHP_SELF'];

 

 

insert this after the above line

 

if ($PHP_SELF != $SCRIPT_NAME) {

$PHP_SELF = $SCRIPT_NAME.$PHP_SELF;

}

Link to comment
Share on other sites

  • 1 year later...

Your server just got upgraded to apache 2.2. I have the same problem. If you turn off STS then you will get some of the page to show but the bottom will error out. Still working on that error.

Link to comment
Share on other sites

Oooh... I see. I hope the new shared account Im actually delivering the site on doesnt have this version...

 

Thankyou so much for the update. and I did notice that it works w/out STS, but its not really much of an option for me, NOT usng STS.

Link to comment
Share on other sites

Oooh... I see. I hope the new shared account Im actually delivering the site on doesnt have this version...

 

Thankyou so much for the update. and I did notice that it works w/out STS, but its not really much of an option for me, NOT usng STS.

 

Just figured it out.

In catalog\includes\classes\sts.php

 

After

<?php

 

add

  $PHP_SELF =  $_SERVER['SCRIPT_FILENAME'];

Link to comment
Share on other sites

Just figured it out.

In catalog\includes\classes\sts.php

 

After

<?php

 

add

 $PHP_SELF = $_SERVER['SCRIPT_FILENAME'];

I can't agree with you on this. It appears you may be experiencing server issues and if that is the case, then you are going to have to change files other than those that have to do with STS.

I would research this a bit further to determine the exact cause and then come up with a better solution. If I find one, I'll post it here for you. :thumbsup:

Bill Kellum

 

Sounds Good Productions

STS Tutorials & more: STSv4.6, STS Add-ons (STS Power Pack), STS V4 Forum STS Forum FREE TEMPLATE

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...