Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Problem posted again...install went okay, but some wierd err


arretx

Recommended Posts

I can't get a response from anyone on this. What does the following error mean?

 

After running the install process, I get this error.

 

Fatal error: Call to undefined function: tep_db_connect() in c:inetpubwwwrootphpshopcatalogincludesapplication_top.php on line 155

 

 

I haven't found anyone else that has had the 155 line error...but plenty of people with the tep_db_connect() error.

Link to comment
Share on other sites

Hi Jon.

 

This function isn't found:

  function tep_db_connect($server = DB_SERVER, $username = DB_SERVER_USERNAME, $password = DB_SERVER_PASSWORD, $database = DB_DATABASE, $link = 'db_link') {

   global $$link;



   if (USE_PCONNECT == 'true') {

     $$link = mysql_pconnect($server, $username, $password);

   } else {

     $$link = mysql_connect($server, $username, $password);

   }



   if ($$link) mysql_select_db($database);



   return $$link;

 }

It's part of the catalog/includes/functions/database.php.

If the file is present - check - then you have a path setup wrong, most likely the includes-path in:

  define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');

HTH

Best Regards

olby

Link to comment
Share on other sites

I have this in the catalog/includes/configure.php

 

define('DIR_WS_INCLUDES', 'includes/');

 

 

and below that a few lines....

 

define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');

 

So what am I missing? I didn't understand your solution.

Link to comment
Share on other sites

Hi Jon

 

Try changing this:

define('DIR_WS_INCLUDES', 'includes/');

to an absolute address - like this:

define('DIR_WS_INCLUDES', 'c:/inetpub/wwwroot/phpshop/catalog/includes/');

 

If this dosn't help, I suggest you try a reinstall, and let osCommerce installation-modul do these settings for you.

 

HTH

Best Regards

olby

Link to comment
Share on other sites

Now, I've got a new error upon a complete fresh install....

 

Fatal error: Call to undefined function: osc_draw_checkbox_field() in c:inetpubwwwrootcataloginstalltemplatespagesinstall.php on line 48

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...