error after update to 2.0

  • Posts: 86
  • Thank you received: 2
11 years 5 months ago #76093

Hello,

after updating to 2.0 I got this error



Regards,

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

  • Posts: 26017
  • Thank you received: 4004
  • MODERATOR
11 years 5 months ago #76101

Hi,

Please edit the class product file and change the line

$keys[] = array();
By
$keys = array();
(around line 563).

The modification would be include in the next package upload.

Thanks,


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

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

  • Posts: 86
  • Thank you received: 2
11 years 5 months ago #76109

I did the change you indicated (line 565), but error still appears.

Then I looked for the same code-string, and fount it in line 667. I tried to change this line in the same way, but without success.

My error messge talks about errors in the lines 593 and 625. /administrator/components/com_hikashop/classes/product.php
In line 593 I found this code

$product_code = $element->product_code.'_'.implode('_',$key);
In line 625 I have this code
foreach($codes[$obj->product_code] as $k){

Thank you!

Last edit: 11 years 5 months ago by scharfet.

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

  • Posts: 81590
  • Thank you received: 13079
  • MODERATOR
11 years 5 months ago #76186

Can you also try to change the line:
$product_code = $element->product_code.'_'.implode('_',$key);

to:
$product_code = $element->product_code.'_'.@implode('_',$key);

in the same file ?

That should remove these errors.

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

  • Posts: 86
  • Thank you received: 2
11 years 5 months ago #76196

Now it is working!
Thank you!!!

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

  • Posts: 86
  • Thank you received: 2
11 years 5 months ago #76244

Now it is working!
Thank you!!!

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

  • Posts: 26017
  • Thank you received: 4004
  • MODERATOR
11 years 5 months ago #76246

Hi,

Nicolas has implement a new algorithm for the product characteristics.
The next package would fix all problems in this function.

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.

  • Posts: 42
  • Thank you received: 2
11 years 5 months ago #76268

Just to clarify - Has this fix been implemented in the current package, or do we need to wait for a new package to be posted?

Thanks
Matt


It's amazing how the omission of a semicolon can absolutely ruin an otherwise pleasant evening.

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

  • Posts: 26017
  • Thank you received: 4004
  • MODERATOR
11 years 5 months ago #76271

Hi,

I have update the HikaShop 2.0 package.
You can re-download HikaShop to fix this problem.

Best 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: spoonbow

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

Time to create page: 0.077 seconds
Powered by Kunena Forum