Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

what does it mean?


fradest

Recommended Posts

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

You can download the osCommerce package from here - extract the file from the package and upload it to your server.

 

Matti

 

 

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

While you are at it, replace /admin/includes/header.php  :-"

 

Matti

 

 

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

  • 2 weeks later...

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

Archived

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

×
×
  • Create New...