News:

AbanteCart v1.4.2 is released.

Main Menu

Do you like AbanteCart? Please rate AbanteCart or share your experience with other eCommerce entrepreneurs. Go to Softaculous rating page to add your rating or write a review

Error on line 112 in tax.php

Started by gcm, January 29, 2015, 08:22:45 PM

Previous topic - Next topic

gcm

I just upgraded to 1.2 on my Linux hosting and am now getting this error:Fatal error: Call to a member function getLanguageID() on a non-object in /core/lib/tax.php on line 112. I get the same error when I try to logon to the admin section as well.  Being new to AbanteCart Cart, and not a hard core php coder, I am not sure where or what to do next.  Any direction would be appreciated.


Code from File:
/**
    * Get available tax classes for country ID and zone ID
    * Storefront use only!!
    * @param $country_id
    * @param $zone_id
    * @return mixed|null
    */

   public function getTaxes($country_id, $zone_id){
      $country_id = (int)$country_id;
      $zone_id = (int)$zone_id;
      
      $language = $this->registry->get('language');
   ****       $language_id = $language->getLanguageID();  ****** This is line 112
      
      $cache_name = 'tax_class.'.$country_id.'.'.$zone_id;
      $results = $this->cache->get($cache_name, $language_id);

      if(is_null($results)){
TIA,
Greg

Basara

Hello.

Possibly you have not upgraded correctly try manual upgrade

Forum Rules Code of conduct
AbanteCart.com 2010 -