Skip to main content

Undefined variable: type in /classes/address.php

More
4 years 9 months ago #338615 by hugoaf
-- 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) );

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

More
4 years 8 months ago - 4 years 8 months ago #338628 by Jerome
Hello,

Thanks for the report !
You can define the variable with
Code:
$type = 'both';
in order to avoid the error and make the trigger compliant.

Regards,

Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Last edit: 4 years 8 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.196 seconds
Powered by Kunena Forum