Notice:...../plugins/hikashopshipping/ups/ups.php on line 512

  • Posts: 585
  • Thank you received: 23
  • Hikaserial Subscription Hikashop Multisite
6 years 6 months ago #292994

-- HikaShop version -- : 3.4.0
-- Joomla version -- : 3.8.6
-- PHP version -- : 7

Hi Hikashop team,

Do you know why we get this error when we go to the cart page after we create a cart on the back-end for our test customar.
After a refresh the notice was gone:

............./plugins/hikashopshipping/ups/ups.php on line 512


Kind regards,
Lumiga
Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 585
  • Thank you received: 23
  • Hikaserial Subscription Hikashop Multisite
6 years 6 months ago #293004

I also get this error where we put the mini cart (on hover)


Kind regards,
Lumiga
Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 12953
  • Thank you received: 1778
6 years 6 months ago #293005

Hello,

I just tried it on my end, and wasn't able to reproduce it. Can you download the last Hikashop version through our website, install it and test it again ?

Thank you.

Please Log in or Create an account to join the conversation.

  • Posts: 585
  • Thank you received: 23
  • Hikaserial Subscription Hikashop Multisite
6 years 5 months ago #293697

Hi Mohamed,

I have installed the latest version from 6-6-2018 but still I got this isseu.
Would you please take a look. The website is live now and we don't want this sort of errors.

You also can see in the movie that the cart notification popup is not showing up.
We have to refresh the page to see the mini-cart in the toolbar left.
When I turn off the shipping UPS methode everything works fine.
See movie: lumiga.nl/1/2018-06-06_15-32-53.mp4

Update: When we delete the Weight and Volume the issue is solved.
So there is no notice error anymore and also the cart notification popup is showing up.
So it has something to do with the Dimension!!! I think.
We use kg and cm. See screenshot



Kind regards,
Lumiga


Kind regards,
Lumiga
Attachments:
Last edit: 6 years 5 months ago by Lumiga.

Please Log in or Create an account to join the conversation.

  • Posts: 585
  • Thank you received: 23
  • Hikaserial Subscription Hikashop Multisite
6 years 5 months ago #293731

Hi Mohamed,

I think I found the issue.

When I turn the Error Reporting from MAXIMUM to NONE the issue was solved.

Kind regards,
Lumiga


Kind regards,
Lumiga
Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 12953
  • Thank you received: 1778
6 years 5 months ago #293733

Hello,

I still wasn't able to reproduce it on my end, can you show us some screenshots of how you configured your UPS shipping method via "Hikashop->System->Shipping methods" ? Thank you.

Best regards,
Mohamed Thelji.

Please Log in or Create an account to join the conversation.

  • Posts: 585
  • Thank you received: 23
  • Hikaserial Subscription Hikashop Multisite
6 years 5 months ago #293739

Kind regards,
Lumiga
Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 12953
  • Thank you received: 1778
6 years 5 months ago #293746

Hello,

I still wasn't able to reproduce it on my end, can you send us a temporary back-end access to your website so that we can directly test and debug it on your website ? Thank you.

You can send it through our contact form (please add a link to that thread in your message) :
www.hikashop.com/support/contact-us.html

Best regards,
Mohamed Thelji.

Please Log in or Create an account to join the conversation.

  • Posts: 585
  • Thank you received: 23
  • Hikaserial Subscription Hikashop Multisite
6 years 5 months ago #293772

Hi Mohamed,

I have send you the login credentials.

Hope you can find the issue.

Kind regards,
Lumiga


Kind regards,
Lumiga

Please Log in or Create an account to join the conversation.

  • Posts: 12953
  • Thank you received: 1778
6 years 5 months ago #293788

Hello,

The solution will be to edit the file "plugins\hikashopshipping\ups\ups.php" and change that line :

$data['destStatecode'] = $null->shipping_address->address_state->zone_code_3;
By :
$data['destStatecode'] = @$null->shipping_address->address_state->zone_code_3;

Thank you for your feedback !

Best regards,
Mohamed Thelji.

Please Log in or Create an account to join the conversation.

  • Posts: 585
  • Thank you received: 23
  • Hikaserial Subscription Hikashop Multisite
6 years 5 months ago #293835

Thanks Mohamhed,

Is it also released in the new version of Hikashop?
So I can download 3.4.0 again and install it.

In that case I don't need to edit the code. ;-)

Kind regards,
Lumiga


Kind regards,
Lumiga

Please Log in or Create an account to join the conversation.

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
6 years 5 months ago #293836

Hello,

Because it is just a PHP notice, it won't be include in the current package ; but it could be in next release if it really the right solution.

Since the patch is to avoid a warning when a state do not have a "code 3" content and every HikaShop states have "code 3" ; it indicates that the source of your issue is related to an incorrect configuration ; I did not performed the debugging but I suppose that you do not have a state (unpublished field) of you created manually the state and the data is not present.
Hiding the notice won't change the fact that there is no "code 3" state information passed to UPS and that might generated some unwanted effects.
UPS need the customer shipping address to give you a quote ; a shipping address includes the state.
I hope that you do understand what I'm explaining.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

Time to create page: 0.104 seconds
Powered by Kunena Forum