AbanteCart Community
Shopping Cart Operations => Support => Extension Support => Topic started by: llegrand on January 07, 2015, 02:47:03 PM
-
Hi, In testing 1.2, I cannot enable the UPS extension - I am using the same credentials that are on a production site running 1.1.9 without issue
this is what it's saying -
Error: cannot to load config.xml of extension shipping. in /home/abextens/public_html/demo2/core/helper/utils.php on line 527
warning: AbanteCart core v.1.2.0 Invalid argument supplied for foreach() in <b>/home/abextens/public_html/demo2/extensions/default_ups/admin/view/default/template/pages/extension/default_ups.tpl</b> on line <b>39</b>
I did get the USPS extension to work on 1.2 without problems, Just the UPS for now.
Thanks
Lee
-
Please go to this file: https://github.com/abantecart/abantecart-src/blob/master/public_html/extensions/default_ups/storefront/model/extension/default_ups.php (https://github.com/abantecart/abantecart-src/blob/master/public_html/extensions/default_ups/storefront/model/extension/default_ups.php)
change line 376
if (!$this->config->get('default_ups_' . strtolower($this->config->get('default_ups_origin')) . '_' . $code)) {
to
if ($this->config->get('default_ups_' . strtolower($this->config->get('default_ups_origin')) . '_' . $code)) {
Hope it helps,
Handoyo
-
These two lines of code look the same to me. Am I missing something? It looks like it's the same I have on line 527 and mine is working fine:
if (!$this->config->get('default_ups_' . strtolower($this->config->get('default_ups_origin')) . '_' . $code)) {
-
there is one small difference - at the beginning of the first code line you see, if (!$this....
the second one is ($this....
the difference is the ! before $this
-
there is one small difference - at the beginning of the first code line you see, if (!$this....
the second one is ($this....
the difference is the ! before $this
You're right. :-)