dandick Posted March 29, 2003 Share Posted March 29, 2003 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 More sharing options...
dandick Posted March 29, 2003 Author Share Posted March 29, 2003 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 More sharing options...
dandick Posted March 30, 2003 Author Share Posted March 30, 2003 sorry--2.2 makes all this 2.1 trouble a non-issue. It works great! Thanks for all the great work on this release everyone! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.