Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Sign in to follow this  
nyderrn

redirect_login_to problems

Recommended Posts

I got this error

 

Fatal error: Call to undefined function: tep_href_link() in c:apachehtdocstep_snapshotcatalogincludesredirect_login_to.php on line 23

 

line 23:

 

$link = tep_href_link(FILENAME_DEFAULT);

 

 

There anyone with more experience that could help me out with this one? I'm using the 5/28/03 snapshot, if that makes a difference in this case.

 

Thanks

Share this post


Link to post
Share on other sites

you are getting the erro because you did not "require" nor "include" DIR_WS_FUNCTIONS . 'html_output.php'

as this is the file in wich the function tep_href_link() is defined. compare the contents of your file 'redirect_login_to.php' with for example to 'application_top.php'. As you'll see you need to include or require the file that contains a function (so it gets to life so to say) before you could use that function.

 

regards

ralf

btw. working with snapshots is not recommended for live servers :-)


sometimes I change code before reading the comments, sometimes code doesn't even have comments, sometimes I rechange code after I read the code others wrote :-)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×