notice on helper line 2891

  • Posts: 86
  • Thank you received: 5
4 years 11 months ago #317407

-- HikaShop version -- : 4.2.3
-- Joomla version -- : 3.9.16
-- PHP version -- : 7.3
-- Browser(s) name and version -- : any
-- Error-message(debug-mod must be tuned on) -- : PHP Notice: Undefined offset: 1 in /www/administrator/components/com_hikashop/helpers/helper.php on line 2891

Hi, in the php log I am getting continuously this notice
PHP Notice: Undefined offset: 1 in /www/html/administrator/components/com_hikashop/helpers/helper.php on line 2891
Thanks

Giuse

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

  • Posts: 83409
  • Thank you received: 13502
  • MODERATOR
4 years 11 months ago #317439

Hi,

We've fixed the notice. You can download the install package on our website and install it on yours and it will add the patch for this.

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

  • Posts: 86
  • Thank you received: 5
4 years 11 months ago #317452

thanks and Good Easter

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

  • Posts: 86
  • Thank you received: 5
4 years 11 months ago #317455

well, no: the notice is still there even after the update (the helper.php file is not changed except for the version in line 1012), could you please recheck?
thanks a lot

Giuse

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

  • Posts: 83409
  • Thank you received: 13502
  • MODERATOR
4 years 11 months ago #317458

Hi,

You mean you have the exact same error message (same file, same line) ?
That's not possible.
On line 2891 of the helper.php file there is this line of code:
define('HK_GRID_COL_4', 'hkc-md-4');
and I cannot cause the notice message you got.
And I don't understand what you mean by the line 1012 ? There is only a } on that line in that file.
So if it's really the exact same error message, I can only conclude that the helper.php was not updated.
In that case, try renaming the folder administrator/components/com_hikashop/ via FTP just before reinstalling the install package you downloaded again on our website.
It will add all the files of the backend again and you should not get that notice anymore.

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

  • Posts: 86
  • Thank you received: 5
4 years 11 months ago #317468

Hi, I downloaded again the package with no luck: I find the line of code you mention
define('HK_GRID_COL_4', 'hkc-md-4');
on line 2755 of backend helpers helper.php, while at line 2891 -where I get the error- I read infact

$version= $matches['version'][1];
I am talking about the free version, maybe yuo are referring to a paid version?
thanks

Giuse

Last edit: 4 years 11 months ago by nicolas.

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

  • Posts: 83409
  • Thank you received: 13502
  • MODERATOR
4 years 11 months ago #317481

Hi,

It's strange that we don't have the same code at the same lines.
But anyways. I've added another patch for that line of code.
Please download again the install package on our website and install it on yours.
This patch actually changes this line of code so you shouldn't see the same code on that line after the reinstall.
Note that this applies to all the editions of HikaShop.

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

  • Posts: 86
  • Thank you received: 5
4 years 11 months ago #317490

now yes! That line is now changed in the free version too and no more notice :)
thanks!

Giuse

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

Time to create page: 0.151 seconds
Powered by Kunena Forum