Warrior Forum - The #1 Digital Marketing Forum & Marketplace

Warrior Forum - The #1 Digital Marketing Forum & Marketplace (https://www.warriorforum.com/)
-   Programming (https://www.warriorforum.com/programming/)
-   -   Help Oscommerce error? (https://www.warriorforum.com/programming/371304-help-oscommerce-error.html)

samuel.johnson 27th April 2011 01:26 AM

Help Oscommerce error?
 
hi,

since last night I am receiving this error in all my store page

"Unable to determine the page link!"

Can you help me to fix it? It's urgent.

stma 27th April 2011 10:00 AM

Re: Help Oscommerce error?
 
Well I typed out a long list of crap to check - then realized I was making the same boneheaded mistake as you :)

Google: oscommerce Unable to determine the page link - Google Search

deepakg 28th April 2011 03:56 AM

Re: Help Oscommerce error?
 
Well, I read many of the posts for "Unable to determine the page link"

and most reccommend using 2.2 than 2.1...

Anyway, I am already using 2.1, and I have fixed the problem.

The problem wasn't oscommerce rather PHP 4.3

It was return empty string for the php variable $PHP_SELF

So, all I had to do was : in function tep_href_link of general.php (include/functions) , add the following line at the very top

global $HTTP_SERVER_VARS;
if($page='')
$HTTP_SERVER_VARS['PHP_SELF']

That has solved the problem.


All times are GMT -6. The time now is 08:22 AM.