- Posts: 15
- Thank you received: 1
Undefined variable: type in /classes/address.php
4 years 8 months ago #338615
by hugoaf
Undefined variable: type in /classes/address.php was created 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) );
-- 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.
4 years 8 months ago - 4 years 8 months ago #338628
by Jerome
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.
Replied by Jerome on topic Undefined variable: type in /classes/address.php
Hello,
Thanks for the report !
You can define the variable with
in order to avoid the error and make the trigger compliant.
Regards,
Thanks for the report !
You can define the variable with
Code:
$type = 'both';
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: 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.179 seconds