Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Just added store...


djblue321

Recommended Posts

Fatal error: Call to undefined function: tep_href_link() in /var/www/html/store/catalog/admin/index.php on line 17

 

That is the error I am receiving. I just installed the cart for the first time and had no problems then tried to start working on the admin section and that showed up. Any ideas?

Link to comment
Share on other sites

Fatal error: Call to undefined function: tep_href_link() in /var/www/html/store/catalog/admin/index.php on line 17

 

That is the error I am receiving. I just installed the cart for the first time and had no problems then tried to start working on the admin section and that showed up. Any ideas?

 

If you are getting tep_href_link() as an undefined function, you ain't going nowhere!

 

tep_href_link() is defined in includes\functions\html_output.php

 

the functions directory is defined in configure.php (default is define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/'); ). Although it sounds like it may just be your admin configure.php, better go over all of your defines in both your configure.php files (catalog & admin)!

Link to comment
Share on other sites

ok in my admin folder I have a configuration.php file and then admin/includes/ configure.php. Are these files typically the same thing? I'm really confused on what needs to be done about this.

 

They're completely different. configure.php pretty much defines all of your file locations (and database connection.) Read the docs; it's critical that you get configure.php correct.

Link to comment
Share on other sites

I have followed the instructions to the "T". Still the same problem. The configure.php files were written to and the changes were made when I did the installation. I tried reinstalling and still had the same problem. I've read up on some other peoples forums that had this problem and couldn't fix it with those ideas either. I don't know what else to do :blink:

Link to comment
Share on other sites

I have followed the instructions to the "T". Still the same problem. The configure.php files were written to and the changes were made when I did the installation. I tried reinstalling and still had the same problem. I've read up on some other peoples forums that had this problem and couldn't fix it with those ideas either. I don't know what else to do :blink:

 

If you are SURE that the configure.php is correct, then you'll start having to look at the modules giving you this error. For both admin and catalog:

 

1) tep_href_link() is defined in includes\functions\html_output.php

2) the functions directory is defined in configure.php

3) html_output.php is included via application_top.php

 

You could possibly debug this by putting in a var_dump in the admin application_top.php. E.g.,

 

var_dump($PATH_TRANSLATED);

 

This will show you the path of the module including application_top.php; it should show up for every item that you click in the admin console. If it doesn't show up for the module that is giving you the error, you know that application_top isn't getting included. It could also point out path problems.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...