Fatal error: Call to undefined function tep_db_query() in /home/vaultit/public_html/my/go/htdocs/modules/osC/blocks/shopping_cart.php on line 8
All errors (2) queries (38) blocks (13) extra (0) timers (4)
Errors
Notice: Constant BOX_HEADING_CATEGORIES already defined in file /modules/osC/language/english/blocks.php line 7
Notice: Use of undefined constant TABLE_LANGUAGES - assumed 'TABLE_LANGUAGES' in file /modules/osC/blocks/shopping_cart.php line 7
Line 8 of shopping-cart.php is:
$lang=tep_db_query($lang_query);
and its a part of the following if-then-else construct:
if(!isset($_SESSION['languages_id'])) {
$lang_query="select languages_id from ".TABLE_LANGUAGES." where directory ='".$xoopsConfig['language']."'";
$lang=tep_db_query($lang_query);
$lang_id=tep_db_fetch_array($lang);
$languages_id=$lang_id['languages_id'];
}else {
$languages_id=$_SESSION['languages_id'];
}