Undefined variable: type in /classes/address.php

  • Posts: 14
  • Thank you received: 1
2 years 3 months ago #338615

-- HikaShop version -- : 4.4.5
-- Error-message(debug-mod must be tuned on) -- : Notice: Undefined variable: type in /Users/Admin/www/groundshaker/administrator/components/com_hikashop/classes/address.php on line 26

Not really much to say, please declare the variable $type to prevent the notice. The only way to not display the message in frontend is setting joomla reporting to none.

The Url: I don't have a public url, but I assume you dont need one.
index.php?option=com_hikashop&view=address&layout=listing

The Culprit
administrator/components/com_hikashop/classes/address.php
line 26: $app->triggerEvent('onUserAddressesLoad', array( &$addresses, $user_id, $type) );

Attachments:

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

  • Posts: 26000
  • Thank you received: 4004
  • MODERATOR
2 years 3 months ago #338628

Hello,

Thanks for the report !
You can define the variable with

$type = 'both';
in order to avoid the error and make the trigger compliant.

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.
Last edit: 2 years 3 months ago by Jerome.
The following user(s) said Thank You: hugoaf

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

Time to create page: 0.062 seconds
Powered by Kunena Forum