Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

ERROR When editing MODs


djmac

Recommended Posts

After I install any mod ie, AirborneShipIt and when I hit the status button to edit I get the following error:

 

Fatal error: Call to undefined function: tep_get_tax_class_title() in /home/eliteimp/public_html/shop/admin/modules.php on line 215

 

I need help with this... I can't install any MODS unless I fix this. I am running MS2.2

 

Thanks in advance

djmac

Link to comment
Share on other sites

If the file exists its probably not the cause of your trouble. In general.php ,around line 1156 you should have the following text:

 

function tep_get_tax_class_title($tax_class_id) {

if ($tax_class_id == '0') {

return TEXT_NONE;

} else {

$classes_query = tep_db_query("select tax_class_title from " . TABLE_TAX_CLASS . " where tax_class_id = '" . (int)$tax_class_id . "'");

$classes = tep_db_fetch_array($classes_query);

 

return $classes['tax_class_title'];

}

}

 

Also admin/includes/application_top.php has a line in it that includes the general file:

require(DIR_WS_FUNCTIONS . 'general.php');

 

And /admin/modules.php includes application_top using the line:

require('includes/application_top.php');

 

If all this is in place, it might be you configuration is not pointing to the right Unix directory Make sure your configure.php file in admin/includes has the following entry:

define('DIR_FS_DOCUMENT_ROOT', '/home/eliteimp/public_html/shop'); // where the pages are located on the server

 

 

Dylan

Link to comment
Share on other sites

Dyland

 

I think I am getting there... The line in the config is:

 

define('DIR_FS_DOCUMENT_ROOT', $DOCUMENT_ROOT); // where your pages are located on the server. if $DOCUMENT_ROOT

 

should I edit this with the root path?

 

djmac

Link to comment
Share on other sites

perhaps going here will help you on learning how to move around and being able to search on your server.

 

http://www.freebsd.org/projects/newbies.html#unix

 

these people who put this program together, have spent quite some time on the Wiki documentation which is a must to read as it tells you quite a lot of what you need to do. i would start with the installation requirements if i were you and go from there.

Link to comment
Share on other sites

John

 

I'm not that stupid... (grin) This oscommerce is just a little difficult to get around.

 

Once I find or someone points out the possible problem I am sure I can fix it. I just need to tap some of the experience on this forum.

 

djmac

Link to comment
Share on other sites

OK looks fine. Check your configure.php to make sure your directory is set correctly

 

Try changing your configure.php file to read:

 

define('DIR_FS_DOCUMENT_ROOT', '/home/eliteimp/public_html/shop'); // where the pages are located on the server

 

Dylan

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...