fradest Posted July 23, 2005 Share Posted July 23, 2005 Hi! How do i solve this? Fatal error: Call to undefined function: tep_get_languages() in /home/www/guajiro.com.mx/catalog/admin/index.php on line 58 I get this when i'm trying to access my admin page, thx. Link to comment Share on other sites More sharing options...
Guest Posted July 23, 2005 Share Posted July 23, 2005 Replace your /admin/index.php Matti Link to comment Share on other sites More sharing options...
fradest Posted July 23, 2005 Author Share Posted July 23, 2005 Replace your /admin/index.php Matti <{POST_SNAPBACK}> Can u post a sample admin/index.php?? Cos i've changed it but apparently my original one has the problem. Thanx a lot. Link to comment Share on other sites More sharing options...
Guest Posted July 23, 2005 Share Posted July 23, 2005 You can download the osCommerce package from here - extract the file from the package and upload it to your server. Matti Link to comment Share on other sites More sharing options...
fradest Posted July 23, 2005 Author Share Posted July 23, 2005 You can download the osCommerce package from here - extract the file from the package and upload it to your server. Matti <{POST_SNAPBACK}> Well, i sure don't know what is going on, i still get the message, and i've have download the package, unzip it and upload the file. Any other solution? Link to comment Share on other sites More sharing options...
Guest Posted July 23, 2005 Share Posted July 23, 2005 You still have the old file running - rename it, then upload the new file Matti Link to comment Share on other sites More sharing options...
Guest Posted July 23, 2005 Share Posted July 23, 2005 While you are at it, replace /admin/includes/header.php :-" Matti Link to comment Share on other sites More sharing options...
fradest Posted July 23, 2005 Author Share Posted July 23, 2005 While you are at it, replace /admin/includes/header.php :-" Matti <{POST_SNAPBACK}> As amazing as this might sound i've just done all that and i still get the same msg. I've just had bad luck, as i have never seen my admin page, because previously it said that there was navigation_history missing, so i placed it, i copy it from catalog/includes/classes to put it into catalog/admin/includes/classes, cos it was really missin', and then it said that another file was missing, boxes.php, so i've copy it too, and then this msg. I have a lil headache now. Is there still anything to do? ps i've downloaded the package from oscommerce.com three times, from two different sources, i've installed it twice. I dont know what else to do. Link to comment Share on other sites More sharing options...
patrick77550 Posted August 1, 2005 Share Posted August 1, 2005 the tep_get_languages function is defined in admin/includes/functions/general.php and should look like function tep_get_languages() { $languages_query = tep_db_query("select languages_id, name, code, image, directory from " . TABLE_LANGUAGES . " order by sort_order"); while ($languages = tep_db_fetch_array($languages_query)) { $languages_array[] = array('id' => $languages['languages_id'], 'name' => $languages['name'], 'code' => $languages['code'], 'image' => $languages['image'], 'directory' => $languages['directory']); } return $languages_array; } index.php calls (includes) application_top.php and application_top.php calls (includes) general.php where tep_get_languages is defined. So check application_top.php, general.php and also admin/includes/configure.php to make sure the dependent files can be found.... When I developed this problem I had somehow messed up admin/includes/functions/general.php - I think I had replaced it with the wrong general.php while updating with the option_type_feature contribution. Hope that helps. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.