Please help us to make AbanteCart Ideal Open Source Ecommerce Solution for everyone.

Support AbanteCart eCommerce

Author Topic: Error on line 112 in tax.php  (Read 5786 times)

Offline gcm

  • Newbie
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Error on line 112 in tax.php
« on: January 29, 2015, 08:22:45 PM »
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

Offline Basara

  • Administrator
  • Hero Member
  • *****
  • Posts: 5814
  • Karma: +274/-2
    • View Profile
Re: Error on line 112 in tax.php
« Reply #1 on: January 30, 2015, 06:16:14 AM »
Hello.

Possibly you have not upgraded correctly try manual upgrade

 

Powered by SMFPacks Social Login Mod