Jump to content
CubeCart Bot

Shippo multi-carrier shipping API (USPS, UPS, FedEx, DHL and more)

Recommended Posts

Posted (edited)

Is this plugin working correct ? I installed it,created Shippo account and got testing api token,but when I activate this plugin,instead of cart page or checkout page I get blank page.....If anybody is using this plugin,please let me know,if it works and what I did wrong.Thanks

Edited by DavidK

Share this post


Link to post
Share on other sites

Thank you,I will do it later.I have simillar problem when trying to log with certain test accounts to my shop,it is somehow always blocked by blocker.Strange,when I try to create new account,it does not make problems.....strange.Thank you for your advise,as soon as I get chance,I show the error result.

Share this post


Link to post
Share on other sites

Well,I tried again to turn on Shippo on and when I go to basket or checkout,there is blank page and as source it display just number 1.I checked error log and there are other errors,but I think not any of shippo addon.There are few errors that are continuosly repeating every day.I recently upgraded from v5 to 6.1.15.It was manual upgrade.Same problems I am getting when trying to log as some test user myself.Again blank page.So a bit strange things.Any advise what can be wrong ? Thank you advance for any help or advise.

I checked now also system error log in store admin and there is error of shippo plugin as:

Today, 19:36 [Exception] /home2/minerals/public_html/store/modules/shipping/goShippo/shippo-php-client-1.4.2/lib/Shippo/ApiRequestor.php:100 - {"parcels": [{"__all__": ["Parcel template or dimensions must be given."]}]}

Lot of other every day repeating errors in my log.

[26-Jun-2018 02:46:36 Europe/Prague] PHP Warning:  Invalid argument supplied for foreach() in /home2/minerals/public_html/store/classes/catalogue.class.php on line 258
[26-Jun-2018 02:46:54 Europe/Prague] PHP Warning:  Invalid argument supplied for foreach() in /home2/minerals/public_html/store/classes/catalogue.class.php on line 258
[26-Jun-2018 07:17:52 Europe/Prague] PHP Warning:  Invalid argument supplied for foreach() in /home2/minerals/public_html/store/classes/catalogue.class.php on line 258
[26-Jun-2018 05:26:14 UTC] PHP Warning:  Security Warning: Illegal array key "#39;A" was detected and was removed. in /home2/minerals/public_html/store/classes/sanitize.class.php on line 111
[26-Jun-2018 05:26:22 UTC] PHP Warning:  Security Warning: Illegal array key "#39;A" was detected and was removed. in /home2/minerals/public_html/store/classes/sanitize.class.php on line 111
[26-Jun-2018 05:26:26 UTC] PHP Warning:  Security Warning: Illegal array key "#39;A" was detected and was removed. in /home2/minerals/public_html/store/classes/sanitize.class.php on line 111
[26-Jun-2018 05:26:31 UTC] PHP Warning:  Security Warning: Illegal array key "#39;A" was detected and was removed. in /home2/minerals/public_html/store/classes/sanitize.class.php on line 111
[26-Jun-2018 08:08:26 Europe/Prague] PHP Warning:  Invalid argument supplied for foreach() in /home2/minerals/public_html/store/classes/catalogue.class.php on line 258
[26-Jun-2018 09:09:07 Europe/Prague] PHP Warning:  Invalid argument supplied for foreach() in /home2/minerals/public_html/store/classes/catalogue.class.php on line 258
[26-Jun-2018 09:33:09 Europe/Prague] PHP Warning:  Invalid argument supplied for foreach() in /home2/minerals/public_html/store/classes/catalogue.class.php on line 258
[26-Jun-2018 10:33:09 Europe/Prague] PHP Warning:  Invalid argument supplied for foreach() in /home2/minerals/public_html/store/classes/catalogue.class.php on line 258
[26-Jun-2018 08:45:29 UTC] PHP Fatal error:  Call to a member function setError() on null in /home2/minerals/public_html/store/classes/user.class.php on line 244
[26-Jun-2018 08:45:43 UTC] PHP Fatal error:  Call to a member function setError() on null in /home2/minerals/public_html/store/classes/user.class.php on line 244
[26-Jun-2018 09:28:04 UTC] PHP Warning:  Invalid Security Token in /home2/minerals/public_html/store/classes/sanitize.class.php on line 150
[26-Jun-2018 10:00:47 UTC] PHP Warning:  Security Warning: Illegal array key "#39;A" was detected and was removed. in /home2/minerals/public_html/store/classes/sanitize.class.php on line 111
[26-Jun-2018 10:00:49 UTC] PHP Warning:  Security Warning: Illegal array key "#39;A" was detected and was removed. in /home2/minerals/public_html/store/classes/sanitize.class.php on line 111
[26-Jun-2018 12:32:47 Europe/Prague] PHP Warning:  Invalid argument supplied for foreach() in /home2/minerals/public_html/store/classes/catalogue.class.php on line 258
[26-Jun-2018 12:46:19 Europe/Prague] PHP Warning:  Invalid argument supplied for foreach() in /home2/minerals/public_html/store/modules/shipping/All_In_One_Shipping/admin/index.inc.php on line 128
[26-Jun-2018 12:48:08 Europe/Prague] PHP Warning:  Invalid argument supplied for foreach() in /home2/minerals/public_html/store/classes/catalogue.class.php on line 258
[26-Jun-2018 13:11:53 Europe/Prague] PHP Warning:  Invalid argument supplied for foreach() in /home2/minerals/public_html/store/modules/shipping/All_In_One_Shipping/admin/index.inc.php on line 128
[26-Jun-2018 14:31:23 Europe/Prague] PHP Warning:  Invalid argument supplied for foreach() in /home2/minerals/public_html/store/classes/catalogue.class.php on line 258
[26-Jun-2018 15:46:55 Europe/Prague] PHP Warning:  Invalid argument supplied for foreach() in /home2/minerals/public_html/store/classes/catalogue.class.php on line 258
[26-Jun-2018 16:10:35 Europe/Prague] PHP Warning:  Invalid argument supplied for foreach() in /home2/minerals/public_html/store/classes/catalogue.class.php on line 258
[26-Jun-2018 18:30:52 Europe/Prague] PHP Warning:  Invalid argument supplied for foreach() in /home2/minerals/public_html/store/classes/catalogue.class.php on line 258
[26-Jun-2018 16:55:57 UTC] PHP Warning:  Security Warning: Illegal array key "#39;A" was detected and was removed. in /home2/minerals/public_html/store/classes/sanitize.class.php on line 111
[26-Jun-2018 16:56:02 UTC] PHP Warning:  Security Warning: Illegal array key "#39;A" was detected and was removed. in /home2/minerals/public_html/store/classes/sanitize.class.php on line 111

Share this post


Link to post
Share on other sites

The "Invalid argument" in the Catalogue class is weird. The variable being complained about holds the results of a search, a listing of sale items, or a listing of items in a particular category. It seems the results of getting the list is true-like, but not an array.

The "Illegal array key" is an apostrophe which is causing the URL to become malformed. That is, index.php?a=1&b=2&c=L'Amore has a rogue ampersand. The apostrophe in L'Amore is being HTML entity encoded as ' but would be better encoded as %27.

The "Fatal error" on setError() will cause a blank page. I have no idea why this would be happening.

The Shippo error suggests that the item being shipped is missing product dimensions, of the module itself has not had the container's dimensions entered.

Share this post


Link to post
Share on other sites

Thank you for looking in to it and explaining.I think I can live without Shippo plugin,I just rather set all in one shipping and it works,for what I need.But what would you recommend with those other errors ? Is there some way to fix it or find,what is doing those errors ? My old v5 was fairly much modified,there were some mods I do not use anymore,as it was upgraded manually by semperfiwebservices,I believe they did their job well,maybe some old modified coding which was kept is not good.What would you recommend to do ? How it can impact my shop to keep it as it is ? Thank you for your time and help.

Share this post


Link to post
Share on other sites
Posted (edited)

I've not had any issues with getting shipping quotes by using the keys and the API, but I don't know if I can use the plugin as-is. There are no settings in the back-end for any of the Shippo "Extras", like adding in insurance for each shipment. Their API can accept other variables in the array that's passed for both quotes and preparing shipments, but there's nothing available to include except the most basic values required to make a valid call.

The 'Insurance' page from their API docs: https://goshippo.com/docs/insurance/

It also looks like there's only one box size for an entire order in the plugin's code, and it is only using the default value set by the admin, and not a calculated value based on the items added to the cart. It's fairly easy for me, in my use case, to guestimate what a reasonable box size would be and use that instead of a calculation - but - I'm wondering whether the weight total that gets passed (which appears to be the true sum-total of all the ordered item's base-weights) will push me into another weight class with USPS and end up costing me more than I expect - or invalidate the call and not submit a shipment.

I don't collect taxes on anything I list (my items are used, and I'm not a reseller of anything), so I've set up a tax calculation to act as a percentage charge on the basket total price to get the insurance and S/H fees paid for at checkout, but there's no way that I've found to pass on the name/value pairs that Shippo needs to actually insure the shipment.

It would be helpful if there were a few of the 'Extra' variables available under the plugin's settings page to (optionally) accept those additional values. If nothing else, at least those used for insurance... i.e., Amount (my cost, as X.X% of basket's subtotal, currently it's 1.25%) Currency (paid, in USD) amd Contents (what's in the package, in general).

Edited by humantex

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×