Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Admin Login - Strange Problem


Guest

Recommended Posts

Posted

Hi,

 

I have 2 Loaded OSCommerce stores that are identical copies of each other with the exception of graphics. Now, the scenario. In our office we have 4 pc's, 2 of them can login to the admin of BOTH sites without problems. The other 2 pc's have problems. 1 pc can log into one site but not the other, the other pc can't login to either. The pc's are all built from the same CD, have the same serv packs etc.

 

The error I receive is as follows:-

 

Error!

 

Unable to determine the page link!

 

Function used:

 

tep_href_link('', '', 'NONSSL')

 

 

I have looked at some of the suggestions mentioned elsewhere but nothing seems to apply here.

Posted
Hi,

 

I have 2 Loaded OSCommerce stores that are identical copies of each other with the exception of graphics. Now, the scenario. In our office we have 4 pc's, 2 of them can login to the admin of BOTH sites without problems. The other 2 pc's have problems. 1 pc can log into one site but not the other, the other pc can't login to either. The pc's are all built from the same CD, have the same serv packs etc.

 

The error I receive is as follows:-

 

Error!

 

Unable to determine the page link!

 

Function used:

 

tep_href_link('', '', 'NONSSL')

I have looked at some of the suggestions mentioned elsewhere but nothing seems to apply here.

 

well, this is the relevant code :

 

// The HTML href link wrapper function

function tep_href_link($page = '', $parameters = '', $connection = 'NONSSL') {

if ($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>Function used:<br><br>tep_href_link(\'' . $page . '\', \'' . $parameters . '\', \'' . $connection . '\')</b>');

}

if ($connection == 'NONSSL') {

$link = HTTP_SERVER . DIR_WS_ADMIN;

} elseif ($connection == 'SSL') {

if (ENABLE_SSL == 'true') {

$link = HTTPS_SERVER . DIR_WS_ADMIN;

} else {

$link = HTTP_SERVER . DIR_WS_ADMIN;

}

} else {

die('</td></tr></table></td></tr></table><br><br><font color="#ff0000"><b>Error!</b></font><br><br><b>Unable to determine connection method on a link!<br><br>Known methods: NONSSL SSL<br><br>Function used:<br><br>tep_href_link(\'' . $page . '\', \'' . $parameters . '\', \'' . $connection . '\')</b>');

}

 

so either your page parameter is blank or the connection parameter is anything other than NONSSL or SSL.

 

I would suggest adding a test echo to that function so you know which.

 

 

// The HTML href link wrapper function

function tep_href_link($page = '', $parameters = '', $connection = 'NONSSL') {

 

if (current ip address is your ip address) {

echo 'page:' . $page . '<br>Conn:' . $connection;

}

 

if ($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>Function used:<br><br>tep_href_link(\'' . $page . '\', \'' . $parameters . '\', \'' . $connection . '\')</b>');

}

if ($connection == 'NONSSL') {

$link = HTTP_SERVER . DIR_WS_ADMIN;

} elseif ($connection == 'SSL') {

if (ENABLE_SSL == 'true') {

$link = HTTPS_SERVER . DIR_WS_ADMIN;

} else {

$link = HTTP_SERVER . DIR_WS_ADMIN;

}

} else {

die('</td></tr></table></td></tr></table><br><br><font color="#ff0000"><b>Error!</b></font><br><br><b>Unable to determine connection method on a link!<br><br>Known methods: NONSSL SSL<br><br>Function used:<br><br>tep_href_link(\'' . $page . '\', \'' . $parameters . '\', \'' . $connection . '\')</b>');

}

Treasurer MFC

Posted
well, this is the relevant code :

 

// The HTML href link wrapper function

  function tep_href_link($page = '', $parameters = '', $connection = 'NONSSL') {

    if ($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>Function used:<br><br>tep_href_link(\'' . $page . '\', \'' . $parameters . '\', \'' . $connection . '\')</b>');

    }

    if ($connection == 'NONSSL') {

      $link = HTTP_SERVER . DIR_WS_ADMIN;

    } elseif ($connection == 'SSL') {

      if (ENABLE_SSL == 'true') {

        $link = HTTPS_SERVER . DIR_WS_ADMIN;

      } else {

        $link = HTTP_SERVER . DIR_WS_ADMIN;

      }

    } else {

      die('</td></tr></table></td></tr></table><br><br><font color="#ff0000"><b>Error!</b></font><br><br><b>Unable to determine connection method on a link!<br><br>Known methods: NONSSL SSL<br><br>Function used:<br><br>tep_href_link(\'' . $page . '\', \'' . $parameters . '\', \'' . $connection . '\')</b>');

    }

 

so either your page parameter is blank or the connection parameter is anything other than NONSSL or SSL.

 

I would suggest adding a test echo to that function so you know which.

// The HTML href link wrapper function

  function tep_href_link($page = '', $parameters = '', $connection = 'NONSSL') {

 

    if (current ip address is your ip address) {

      echo 'page:' . $page . '<br>Conn:' . $connection;

    }

     

    if ($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>Function used:<br><br>tep_href_link(\'' . $page . '\', \'' . $parameters . '\', \'' . $connection . '\')</b>');

    }

    if ($connection == 'NONSSL') {

      $link = HTTP_SERVER . DIR_WS_ADMIN;

    } elseif ($connection == 'SSL') {

      if (ENABLE_SSL == 'true') {

        $link = HTTPS_SERVER . DIR_WS_ADMIN;

      } else {

        $link = HTTP_SERVER . DIR_WS_ADMIN;

      }

    } else {

      die('</td></tr></table></td></tr></table><br><br><font color="#ff0000"><b>Error!</b></font><br><br><b>Unable to determine connection method on a link!<br><br>Known methods: NONSSL SSL<br><br>Function used:<br><br>tep_href_link(\'' . $page . '\', \'' . $parameters . '\', \'' . $connection . '\')</b>');

    }

 

I see that you already know that the page parameter is empty.

 

Where does this ocurr ?

 

and I would never use the die option as that message goes to the one person who does not understand it and can do nothing about it but leave, your customer.

Use the email option to send you the errors, there is a contribution for that I believe for sql errors.

Treasurer MFC

Posted

This is just the standard catalog/admin/login.php page for the admin. It has not been ammended in any way by me.

 

I recently moved the sites to a new hosts and wondered if this could be the problem. Maybe the working amchines are caching something that the newer ones are not?

 

 

I see that you already know that the page parameter is empty.

 

Where does this ocurr ?

 

and I would never use the die option as that message goes to the one person who does not understand it and can do nothing about it but leave, your customer.

Use the email option to send you the errors, there is a contribution for that I believe for sql errors.

Posted

In what way do you mean Loaded OSCommerce stores

 

Do you mean that you have 2 osCommerce stores installed or do you mean that you are using a version of osCommerce that comes with a load of contributions allready installed.

No longer giving free advice. Please place deposit in meter slot provided.  Individual: [=] SME: [==] Corporation: [===]
If deposit does not fit one of the slots provided then you are asking too much! :P

Is your Osc dated try Phoenix  raising oscommerce from the ashes.

Posted

Sorry, I have 2 oscommerce stores. I have not changed anything for months now EXCEPT moving them to a new dedicated server. Same problem on both sites.

Posted
Unable to determine the page link!

 

In your osC admin panel, under Configuration --> My Store, set 'Use Search Engine Friendly URL's' to false.

 

Vger

Posted

Yes I did read that elsewhere but sadly it doesn't work for me.

 

Any more ideas? I really need to sort this ASAP. Will even pay :o

In your osC admin panel, under Configuration --> My Store, set 'Use Search Engine Friendly URL's' to false.

 

Vger

Posted

Just an update on this problem. I have just tried logging onto my XP desktop as a new user and I am now unable to login to my site admin when this new user is logged onto my desktop.

 

If I log them off and log backon as myself, then I regain the access to my site admin.

 

This leads me to believe that something is stored in the local profile on my desktop that enables the logon to work.

 

Any more ideas guys? I don't doubt that there is something wrong with the site so it does look like some sort of caching issue.

Posted

Does anyone have any more ideas? I'm getting desperate.............

Archived

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

×
×
  • Create New...