Warning: Illegal string offset 'country_Afghanistan_1' in ...

  • Posts: 80
  • Thank you received: 1
  • Hikashop Essential
7 years 11 months ago #258041

-- HikaShop version -- : 2.6.3, essential
-- Joomla version -- : 3.6.5
-- PHP version -- : 7.1
-- Browser(s) name and version -- : ff 50.1.0
-- Error-message(debug-mod must be tuned on) -- : Warning: Illegal string offset 'country_Afghanistan_1' in /var/www/clients/client5/web15/web/administrator/components/com_hikashop/classes/field.php on line 640

Recoverable fatal error: Object of class stdClass could not be converted to string in /var/www/clients/client5/web15/web/administrator/components/com_hikashop/classes/field.php on line 640

After i press yes to checkout, i got this with debug on.:
Warning: Illegal string offset 'country_Afghanistan_1' in /var/www/clients/client5/web15/web/administrator/components/com_hikashop/classes/field.php on line 640
Recoverable fatal error: Object of class stdClass could not be converted to string in /var/www/clients/client5/web15/web/administrator/components/com_hikashop/classes/field.php on line 640


in long time, there has been no error... :-/

I dont have done anything to make this besides updates joomla ?
I recently sees that my webhost svipe to php 5.4? and i stork the net to see that error (not this issue), and i get PHP 7.1 back, and the error in the top still came.
I have not purchased the new essentials, because i cannot afford it.
I hope some can guide me to try something..

Regards Chris

Attachments:
Last edit: 7 years 11 months ago by nmouse. Reason: more info

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

  • Posts: 80
  • Thank you received: 1
  • Hikashop Essential
7 years 11 months ago #258043

Coud it be Joomla 3.6.5 ??
Maybe it came after this update ?
-
Im running danish and uk-gb language only ??

Last edit: 7 years 11 months ago by nmouse.

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

  • Posts: 82868
  • Thank you received: 13377
  • MODERATOR
7 years 11 months ago #258054

Hi,

It looks like a problem with the zones data.
Try:
- delete the tables hikashop_zone and hikashop_zone_link in your database via your PHPMyAdmin.
- install the install package of your version of HikaShop on your website and it will add back all the zones in their default state.
- if you still have the problem, try editing the custom country and state fields via the menu Display>Custom fields and save them once.

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

  • Posts: 80
  • Thank you received: 1
  • Hikashop Essential
7 years 11 months ago #258059

Thanks

I´ll do that right now.

But in 'My Subscriptions' i cannot DL the last version i have bourght ?

Coud you please leave a link, so i can reinstall.?

Regards

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

  • Posts: 80
  • Thank you received: 1
  • Hikashop Essential
7 years 11 months ago #258084

Hi.

I have found a solution to my problem.

I have now PHP 7.1

And a dear Joomla nerd Brian from nowweb.dk sad i coud try to set PHP til 7.0.14 ...

And.. That do seems to do the trick.

So i have now no problems.

Thanks Brian at nowweb dot dk

Regards.

You can close this topic :-)

Merry Christmas :-D

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

  • Posts: 32
  • Thank you received: 1
7 years 6 months ago #269467

EDIT: found solution in this thread



Hi,
after updating to PHP 7.1.1 from 5.6 I receive a similar message on checkout (both in Windows test platform and Linux):
Warning: Illegal string offset 'state_Agrigento_1853' in pathtomysitefolder\administrator\components\com_hikashop\classes\field.php on line 648

Recoverable fatal error: Object of class stdClass could not be converted to string in pathtomysitefolder\administrator\components\com_hikashop\classes\field.php on line 648

I've already tried to delete hikashop_zone and hikashop_zone_link tables and re-install the package com_hikashop_business_v2.6.4, with no results.

Any suggestion on how to fix this problem?

Thank you!

HikaShop: Business v.2.6.4
Joomla: 3.7.0
PHP: 7.1.1

Last edit: 7 years 6 months ago by altrasoluzione.

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
7 years 6 months ago #269471

Hello,

First, you should try with the latest version of HikaShop.
www.hikashop.com/support/documentation/5...ashop-changelog.html

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: altrasoluzione

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

  • Posts: 32
  • Thank you received: 1
7 years 6 months ago #269515

Hi,
you are right but this is an old installation with a lot of styles customization and overrides.
I've already tried to update it but, unfortunatelly, a migration to v3.0.1 is not painless and would cost many hours of programming to make it work properly.

But the solution found in the other thread worked perfectly, for now.

Thank you!

Jerome wrote: Hello,

First, you should try with the latest version of HikaShop.
www.hikashop.com/support/documentation/5...ashop-changelog.html

Regards,

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

Time to create page: 0.085 seconds
Powered by Kunena Forum