Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Fatal error: Call to undefined function tep_db_query() in C:\Program\WEB\wamp\www\Home\info_pages.php on line 13


Thewiruz

Recommended Posts

Well i have installed a Swedish modefication of OScommerce and this error code comes up

 

(Fatal error: Call to undefined function tep_db_query() in C:\Program\WEB\wamp\www\Home\info_pages.php on line 13)

 

if i push

 

terms

purchase information

Cargo & returned goods

 

i have translate it from swedish to english

 

they all get thesame error and i have tried to get some help in the swedish Oscommerce forum but with no sucess.We are a couple who has this problem!

 

Need advice fast :/

 

Thanks alot !

Link to comment
Share on other sites

tep_db_query() is defined at catalog/includes/functions/database.php:

  function tep_db_query($query, $link = 'db_link') {
 global $link;

 if (defined('STORE_DB_TRANSACTIONS') && (STORE_DB_TRANSACTIONS == 'true')) {
   error_log('QUERY ' . $query . "\n", 3, STORE_PAGE_PARSE_TIME_LOG);
 }

 $result = mysql_query($query, $link) or tep_db_error($query, mysql_errno(), mysql_error());

 if (defined('STORE_DB_TRANSACTIONS') && (STORE_DB_TRANSACTIONS == 'true')) {
	$result_error = mysql_error();
	error_log('RESULT ' . $result . ' ' . $result_error . "\n", 3, STORE_PAGE_PARSE_TIME_LOG);
 }

 return $result;
  }

Do, or do not. There is no try.

 

Order Editor 5.0.6 "Ultra Violet" is now available!

For support or to post comments, suggestions, etc, please visit the Order Editor support thread.

Link to comment
Share on other sites

ok well im pretty new at this and im not sure what you mean?

 

 

I do know its a diffrence in your code and mine if you look here

 

here is the exact same file (mine)

 

function tep_db_query($query, $link = 'db_link') {
  global $$link;

  if (defined('STORE_DB_TRANSACTIONS') && (STORE_DB_TRANSACTIONS == 'true')) {
 error_log('QUERY ' . $query . "\n", 3, STORE_PAGE_PARSE_TIME_LOG);
  }

  $result = mysql_query($query, $$link) or tep_db_error($query, mysql_errno(), mysql_error());

  if (defined('STORE_DB_TRANSACTIONS') && (STORE_DB_TRANSACTIONS == 'true')) {
  $result_error = mysql_error();
  error_log('RESULT ' . $result . ' ' . $result_error . "\n", 3, STORE_PAGE_PARSE_TIME_LOG);
  }

  return $result;
}

Link to comment
Share on other sites

ok well im pretty new at this and im not sure what you mean?

 

 

I do know its a diffrence in your code and mine if you look here

 

here is the exact same file (mine)

 

What is the name of the contribution that info_pages.php comes from?

Do, or do not. There is no try.

 

Order Editor 5.0.6 "Ultra Violet" is now available!

For support or to post comments, suggestions, etc, please visit the Order Editor support thread.

Link to comment
Share on other sites

Sorry can you specify what you mean??

 

 

The thing is that i downloaded this cart which is a Swedish version all in one with several of modules just for swedish shipping and such

 

http://www.oscforum.se/download/index.php?ACT=dl&id=30

 

 

Ok then, paste the contents of the file info_pages.php.

Do, or do not. There is no try.

 

Order Editor 5.0.6 "Ultra Violet" is now available!

For support or to post comments, suggestions, etc, please visit the Order Editor support thread.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...