Cannot use object of type stdClass as array with Colissimo Shipping Method

  • Posts: 6
  • Thank you received: 1
5 years 1 month ago #311708

-- HikaShop version -- : 4.2.1
-- Joomla version -- : 3.9.12
-- PHP version -- : 7.2.19
-- Browser(s) name and version -- : any
-- Error-message(debug-mod must be tuned on) -- : Cannot use object of type stdClass as array

Hello,

I'm using Hikashop on my site to sell product all over the world.
I bought the Collissimo shipping method extension for French shipping adresses (and to permit French customer to select pick-up point). I used the Hikashop manual shipping method for other destination.

Everything works fine except when a French shipping address is used (and so when the colissimo shipping is called). When I choose "Mon adresse" or a "pick-up point adress", i get this error :
"0 Cannot use object of type stdClass as array " when I click on the "submit" bouton to confirm the address, or when a click on the validate button to proceed to payment.

Everything works well when a foreign adress (not in France) is used...

Thank you for your help and sorry for my English !

Regards
Fred

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
5 years 1 month ago #311712

Hi,

Could you turn on the "error reporting" and "debug mode" settings of the Joomla configuration and try again ?
You should get an error message with more information. That will help us better understand the problem you have in order to help you.

The following user(s) said Thank You: Fred

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

  • Posts: 6
  • Thank you received: 1
5 years 1 month ago #311721

Hello,

Thank you for your quick answer.
The error with reporting turned on (see attacheg image).

Attachments:

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
5 years 1 month ago #311815

Hello,

Would it be possible to know when you have downloaded the plugin and what is the content of your line 406 (of the mentioned file).
In my side, the line 406 is the end of the "if" block so I do have the feeling that you're not using the latest version.

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.
The following user(s) said Thank You: Fred

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

  • Posts: 6
  • Thank you received: 1
5 years 1 month ago #311820

Hi Jerome,

I downloaded the plugin last saturday, the 5th !
I already checked the file, and in my side, the line 406 is blank ! (see attached...)...the reason why i'm here trying to find an explication with your precious help !
Maybe i can try to re-download and reinstall the plugin...didn't try yet...

Thanks

Attachments:
Last edit: 5 years 1 month ago by Fred.

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

  • Posts: 6
  • Thank you received: 1
5 years 1 month ago #311823

I just tried to re-install the plugin...same problem.

I tried to copy manually the plugin files with ftp too....same problem... :(

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
5 years 1 month ago #311859

Hello,

I still don't understand why you have the line 406 but I have uploaded a new package with a fix which could be the one you have.
Please re-download the plugin (no need to copy it manually, a simple install via the Joomla interface will do).

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.
The following user(s) said Thank You: Fred

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

  • Posts: 6
  • Thank you received: 1
5 years 1 month ago #311876

Thank you Jerome,

The new package still doesn't work, same error as previously (Cannot use object...), but the line has changed !
It's not 406 but 418 ! See attached...

Attachments:

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
5 years 1 month ago #311905

Hello,

Now you have the same line number than mines, I was able to see the error an add a patch for that.
Sorry for the inconvenient.
I'm really surprise that I don't have the same error in my test website which is also using PHP 7.2

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.
The following user(s) said Thank You: Fred

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

  • Posts: 6
  • Thank you received: 1
5 years 1 month ago #311907

Hello Jerome,

Everything seems working fine now !
Great job, great support !

Many thanks, even if I still don't understand what was the problem...

Thanks a lot !

Fred

The following user(s) said Thank You: anoma3

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

Time to create page: 0.093 seconds
Powered by Kunena Forum