Undefined variable: type in /classes/address.php

  • Posts: 14
  • Thank you received: 1
  • Hikashop Business
4 days 6 hours 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.

The Culprit
line 26: $app->triggerEvent('onUserAddressesLoad', array( &$addresses, $user_id, $type) );


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

  • Posts: 25139
  • Thank you received: 3892
3 days 1 hour ago #338628


Thanks for the report !
You can define the variable with

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


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: 3 days 1 hour 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.065 seconds
Powered by Kunena Forum