Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

PHP_SELF is empty and is giving me Unable to determine error


dandick

Recommended Posts

I'm getting

 

Unable to determine the page link!

 

I traced this down to PHP_SELF being undefined, and I haven't a clue why.

I see others seem to be running into this, too.

 

Can any of you give me a clue what I might be doing wrong? I have a

feeling I'm missing something really obvious.

 

I see many files call tep_href_link with basename($PHP_SELF), and when

this is blank, this function dies with an error message. So, I stuck in some

debugging stuff to print out the contents of page, $PHP_SELF and other

things, and that's how I determined PHP_SELF wasn't being set.

 

Then I cruised though the functions looking for global $PHP_SELF;

statements. The problem is that although there are a zillion "requires"

and "includes" statements nested, there are no nested function calles at

this time. That is, it goes directly from php web page to a function call

with basename($PHP_SELF) as a parameter, so there's no opportunity to

use a global $PHP_SELF; statement. But, still, this variable ends up dry.

Empty.

 

Any ideas? Thank you so much.

 

Dan

Link to comment
Share on other sites

I created a configure.php file in the "includes" directory as follows:

 

<?

 

$PHP_SELF=$_SERVER['PHP_SELF'];

 

define('CONFIGURE_STATUS_COMPLETED', 1);

?>

 

 

I don't know if this is really the "clean" way to do it, but my oscommerce

site came up working just fine afterward.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...