Jump to content

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


CubeCart Bot
 Share

Recommended Posts

  • 4 months later...

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
Link to comment
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.

Link to comment
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
Link to comment
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.

Link to comment
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.

Link to comment
Share on other sites

  • 3 months later...

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
Link to comment
Share on other sites

  • 3 years later...

No matter what I do or what I configure, all I get is a blank page when using this Shippo module. It simply does not work with the latest alpha CC shop (not beta)

In fact I am having issues with many of the extensions not working as they should. USPS extension wont work properly, even though I have a USPS ID etc., , by weight wont work properly no matter how I configure weights and prices ( I only use priority mail small padded, small paper envelopes, medium boxes, and large boxes (all sizes)..so I am really kind of teed off at extensions not working. I mean it should be as simple if by weight as adding weights up to and including this should cost this much, weights up to and including this, should nebek this price. All of my products are exactly the same size, so I know 6 will fit in a padded envelope, 16 will fit in a medium box, and 30 packs will fit ion a large PM  box. Its always the shipping and payment modules that cause me problems, but the Shippo extension is just a dog and piece if crap. It needs to be reworked by ever who created it for sure as it will not work at all. At least some of tee extensions give you a hint in teh error logs as to what might be wrong. Not so with Shippo at least anything that makes any sense.

So, my problem is, I have no payment method listed because Cubecart wont add shipping of any type, so I have to email my customers an invoice when they place an order with the product costs, and corrected shipping charges. Its getting old and makes for an unpleasant customer experience. Customers receive mails, I receive mails so all is good there.

I have tried every solution or code from within this forum, and I am extremely familiar with editing php files and following instructions, but nothing works on a LOT of these shipping extensions. I have even reupped the cart code completely twice, and still the same issues persist constantly. I have a dedicated CentOS/Plesk server with Codero so I manage everything, and I know nothing is wrong there at all. So its simply a pain in my rear. I like CubeCart and have used it for many years, but these seemingly simple issues may just send me to another shopping system platform like OSC or Open Cart or something else.

I hate Wordpress sites and code so I refuse to use its Woo Commerce module at all. It seems liek everyone and his brother is using WordPress and to me it all looks so cookie cutter. Im just old school I suppose. I like a standalone cart. I have always liked CubeCart better than any ecommerce system but when its extensions just do not work its time to explore other avenues as bad as I hate it.

Craziness for real. Thanks to everyone who has ever tried to help anyone here in this forum. My hats off to you as I know, being a computer technician for over 35 years, that support can be a pain at times, especially trying to explain things so everyone understands. I still work with my customers remotely and in person and even then it becomes an issue when trying to explain things in simple terms that everyone can understand. It becomes monotonous.

Mike

Link to comment
Share on other sites

  • 2 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...