[Skip to main content](#vessel-content)

#   Undefined variable: type in /classes/address.php

##

- **[hugoaf](/forum/user/22909-hugoaf "View hugoaf's Profile")**
- [![hugoaf's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/22909-hugoaf "View hugoaf's Profile") Topic Author
- [ Offline](/forum/user/22909-hugoaf)

Less More

- Posts: 15
- Thank you received: 1
-
-

4 years 10 months ago [\#338615](#338615) by [hugoaf](/forum/user/22909-hugoaf "View hugoaf's Profile")  *[Undefined variable: type in /classes/address.php](/forum/3-bug-report/903808-undefined-variable-type-in-classes-address-php#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&#95;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&#95;hikashop&amp;view=address&amp;layout=listing  The Culprit administrator/components/com&#95;hikashop/classes/address.php line 26: $app-&gt;triggerEvent('onUserAddressesLoad', array( &amp;$addresses, $user&#95;id, $type) );")* was created by *[hugoaf](/forum/user/22909-hugoaf "View hugoaf's Profile")*

-- 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&amp;view=address&amp;layout=listing

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

[ ![ScreenShot2022-01-14at11.46.58PM.png](/forum/attachment/54204) ](/forum/attachment/54204 "...11.46.58PM.png")

- [ ![ScreenShot2022-01-14at11.46.58PM.png](/forum/attachment/54204) ](/forum/attachment/54204 "...11.46.58PM.png") [ ](/forum/attachment/54204?download=1 "...11.46.58PM.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC85MDM4MDgtdW5kZWZpbmVkLXZhcmlhYmxlLXR5cGUtaW4tY2xhc3Nlcy1hZGRyZXNzLXBocD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26402
- Thank you received: 4081
-
- [](http://obsi.dev)
-

4 years 10 months ago -  4 years 10 months ago [\#338628](#338628) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Undefined variable: type in /classes/address.php](/forum/3-bug-report/903808-undefined-variable-type-in-classes-address-php#338628 "-- 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&#95;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&#95;hikashop&amp;view=address&amp;layout=listing  The Culprit administrator/components/com&#95;hikashop/classes/address.php line 26: $app-&gt;triggerEvent('onUserAddressesLoad', array( &amp;$addresses, $user&#95;id, $type) );")*

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 &amp; HikaSerial developer / HikaShop core dev team.

Last edit: 4 years 10 months ago by [Jerome](/forum/user/80-jerome "View Jerome's Profile").

The following user(s) said Thank You: [hugoaf](/forum/user/22909-hugoaf "View hugoaf's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC85MDM4MDgtdW5kZWZpbmVkLXZhcmlhYmxlLXR5cGUtaW4tY2xhc3Nlcy1hZGRyZXNzLXBocD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.044 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
