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

Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - gcm

#1
General Support / Error on line 112 in tax.php
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
#2
Here is the information in the error log:2014-12-27 22:59:49 - Queries - 31
Queries execution time - 0.03631
PHP Execution time - 0.5172
2014-12-27 23:00:02 - Queries - 31
Queries execution time - 0.06022
PHP Execution time - 0.5710
2014-12-27 23:00:15 - Queries - 31
Queries execution time - 0.30871
PHP Execution time - 0.7805
2014-12-27 23:10:05 - Queries - 31
Queries execution time - 0.22596
PHP Execution time - 0.6564
2014-12-27 23:10:27 - Queries - 31
Queries execution time - 0.07612
PHP Execution time - 0.5432
2014-12-27 23:11:08 - Queries - 108
Queries execution time - 0.19766
PHP Execution time - 0.8550
2014-12-27 23:11:40 - Queries - 113
Queries execution time - 0.44235
PHP Execution time - 0.9586
2014-12-27 23:11:43 - Queries - 31
Queries execution time - 0.02175
PHP Execution time - 0.4744

It seems to work otherwise.  I have added categories and products to start the process.  But no go on the start page for the site.  I have no idea of which direction to look.  Any suggestions would help.
TIA
Greg

Forum Rules Code of conduct
AbanteCart.com 2010 -