Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

multiple tep_get errors


Guest

Recommended Posts

Posted

The catalog was running just fine 2 days ago- yesterday, out of the blue, when going through the checkout process a tep_get error came back for the USPS shipping module which disappeared a few hours later. A few hours after that I was working in the Admin area and started getting a tep_get error for who's online:

Fatal error: Call to undefined function: tep_get_ip_address() in /home/quin/public_html/catalog/admin/whos_online.php on line 380

A few hours after that I started getting a similar error when I click on customers

Fatal error: Call to undefined function: tep_get_sources_name() in /home/quin/public_html/catalog/admin/customers.php on line 815

 

And when I go into the catalog- that is, the categories all show up fine but when I actually enter a category I get the left column and the list of products but no right column and the following error message:

Fatal error: Call to undefined function: tep_get_products_special_price() in /home/quin/public_html/catalog/admin/categories.php on line 1121

 

I know for fact that all of those were working fine yesterday morning and the who's online was working fine after the USPS thing worked itself out (I can't say for sure about the categories and customers as I don't remember if I checked them after the USPS or not but they were working earlier in the day for sure). I did contact my host for the USPS thing and, to my knowledge, they never had a chance to actually try anything before it started working again. The catalog end seems to be working okay, all the issues seem to be in the admin end now, I've double-checked general.php and it seems fine, I haven't done any new mod's etc lately so I'm wondering, as my host has been doing upgrade's lately, if there is something at the host end that would affect how the tep_get function is handled?

Posted

I think some of your files may have gotten corrupted on your server.

replace a backup of your includes folder, both /includes and admin/includes folders should be reloaded.

Posted

It was a good idea but I just tried it and it didn't work- any other suggestions?

Posted

try replacing the rest of the files too then :D

if you changed nothing, it should then work, if not, check a different ftp client or other ways to upload your files.

undefined function tells me one or more files are not loaded properly, i.e. are corrupted or missing.

you could also try and post your config files here, so we can have a look at wether or not your inlcudes folders are set correctly (if not you can get these errors too).

Posted

I tried re-upping both of my configure.php files- here is the one from catalog/ (minus the db info at the bottom):

 

 

<?php
/*
 $Id: configure.php,v 1.14 2003/07/09 01:15:48 hpdl Exp $

 osCommerce, Open Source E-Commerce Solutions
 http://www.oscommerce.com

 Copyright (c) 2003 osCommerce

 Released under the GNU General Public License
*/

// Define the webserver and path parameters
// * DIR_FS_* = Filesystem directories (local/physical)
// * DIR_WS_* = Webserver directories (virtual/URL)
 define('HTTP_SERVER', 'http://oddsandinsonline.com'); // eg, http://localhost - should not be empty for productive servers
 define('HTTPS_SERVER', 'https://host12.dnsdomain.net/~quin'); // eg, https://localhost - should not be empty for productive servers
 define('ENABLE_SSL', true); // secure webserver for checkout procedure?
 define('HTTP_COOKIE_DOMAIN', 'oddsandinsonline.com');
 define('HTTPS_COOKIE_DOMAIN', 'host12.dnsdomain.net/~quin');
 define('HTTP_COOKIE_PATH', '/catalog/');
 define('HTTPS_COOKIE_PATH', '/catalog/');
 define('DIR_WS_HTTP_CATALOG', '/catalog/');
 define('DIR_WS_HTTPS_CATALOG', '/catalog/');
 define('DIR_WS_IMAGES', 'images/');
 define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
 define('DIR_WS_INCLUDES', './includes/');
 define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');
 define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
 define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
 define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
 define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');

 define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/');
 define('DIR_FS_CATALOG', '/home/quin/public_html/catalog/');
 define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
 define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');
// Wish List 2.3 Start
 define('MAX_DISPLAY_WISHLIST_PRODUCTS', '6'); // How many wishlist items to show per page on the main wishlist.php file
 define('MAX_DISPLAY_WISHLIST_BOX', '4');	  // How many wishlist items to display in the infobox before it changes to a counter
 // Wish List 2.3 End

 

and for admin:

<?php
/*
 $Id: configure.php,v 1.14 2003/02/21 16:55:24 dgw_ Exp $

 osCommerce, Open Source E-Commerce Solutions
 http://www.oscommerce.com

 Copyright (c) 2002 osCommerce

 Released under the GNU General Public License
*/

// define our webserver variables
// FS = Filesystem (physical)
// WS = Webserver (virtual)
 define('HTTP_SERVER', 'http://www.oddsandinsonline.com'); // eg, http://localhost - should not be empty for productive servers
 define('HTTP_CATALOG_SERVER', 'http://www.oddsandinsonline.com');
 define('HTTPS_CATALOG_SERVER', '');
 define('ENABLE_SSL_CATALOG', 'true'); // secure webserver for catalog module
 define('DIR_FS_DOCUMENT_ROOT', '/home/quin/public_html/catalog/'); // where the pages are located on the server
 define('DIR_WS_ADMIN', '/catalog/admin/'); // absolute path required
 define('DIR_FS_ADMIN', '/home/quin/public_html/catalog/admin/'); // absolute pate required
 define('DIR_WS_CATALOG', '/catalog/'); // absolute path required
 define('DIR_FS_CATALOG', '/home/quin/public_html/catalog/'); // absolute path required
 define('DIR_WS_IMAGES', 'images/');
 define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
 define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/');
 define('DIR_WS_INCLUDES', './includes/');
 define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');
 define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
 define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
 define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
 define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');
 define('DIR_WS_CATALOG_LANGUAGES', DIR_WS_CATALOG . 'includes/languages/');
 define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/');
 define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/');
 define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/');
 define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');

Posted

Well, I got it fixed- I ended up having to reinstall several mods as there were odd and assorted snips of code missing and I suppose the upside is that I decided that if I was going to get stuck going through every one of them I was going to update everything I could to current versions at the same time. Thanks for your help!

Archived

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

×
×
  • Create New...