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

#   Error "undefined variable: weight\_unit"

##

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

Less More

- Posts: 184
- Thank you received: 4
-
- [](http://www.madeinvino.com)
-

14 years 3 months ago -  14 years 3 months ago [\#59734](#59734) by [Teto](/forum/user/8045-teto "View Teto's Profile")  *[Error "undefined variable: weight\_unit"](/forum/3-bug-report/59734-error-undefined-variable-weight-unit#59734 "I found an error on the product page  Notice: Undefined variable: weight&#95;unit in /home/madeinvi/public&#95;html/administrator/components/com&#95;hikashop/types/volume.php on line 26  I am pretty sure this error was not present yesterday. Today I worked on my website but I didn't install any new extensions  Do you know what is the reason?  (PS: if you want I can send you the URL, username and password) &#42;&#42;&#42; UPDATE &#42;&#42;&#42; I discoverd the reason. In Joomla I setted the Error Reporting at &quot;Maximum&quot;. If you use &quot;System Default&quot; there isn't any message. The question is, is it normal this behaviour?")* was created by *[Teto](/forum/user/8045-teto "View Teto's Profile")*

I found an error on the product page

Notice: Undefined variable: weight_unit in /home/madeinvi/public_html/administrator/components/com_hikashop/types/volume.php on line 26

[ ![errorevolume.png](/forum/attachment/5062) ](/forum/attachment/5062 "errorevolume.png")

I am pretty sure this error was not present yesterday.
Today I worked on my website but I didn't install any new extensions

Do you know what is the reason?

(PS: if you want I can send you the URL, username and password)
*** UPDATE *** I discoverd the reason. In Joomla I setted the Error Reporting at "Maximum". If you use "System Default" there isn't any message.
The question is, is it normal this behaviour?

- [ ![errorevolume.png](/forum/attachment/5062) ](/forum/attachment/5062 "errorevolume.png") [ ](/forum/attachment/5062?download=1 "errorevolume.png")

Last edit: 14 years 3 months ago by [Teto](/forum/user/8045-teto "View Teto's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC81OTczNC1lcnJvci11bmRlZmluZWQtdmFyaWFibGUtd2VpZ2h0LXVuaXQ/dG1wbD1tYXJrZG93bg==) 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: 26400
- Thank you received: 4079
-
- [](http://obsi.dev)
-

14 years 3 months ago [\#59764](#59764) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Re: Error "undefined variable: weight\_unit"](/forum/3-bug-report/59734-error-undefined-variable-weight-unit#59764 "I found an error on the product page  Notice: Undefined variable: weight&#95;unit in /home/madeinvi/public&#95;html/administrator/components/com&#95;hikashop/types/volume.php on line 26  I am pretty sure this error was not present yesterday. Today I worked on my website but I didn't install any new extensions  Do you know what is the reason?  (PS: if you want I can send you the URL, username and password) &#42;&#42;&#42; UPDATE &#42;&#42;&#42; I discoverd the reason. In Joomla I setted the Error Reporting at &quot;Maximum&quot;. If you use &quot;System Default&quot; there isn't any message. The question is, is it normal this behaviour?")*

Hi,

This problem would be solve in the next release of HikaShop.
You can manually fix this problem by modify the line 26 in the file administrator/components/com_hikashop/types/volume.php Code:

return $volume_unit.'&lt;input type="hidden" name="'.$map.'" value="'.$weight_unit.'" /&gt;';

To : Code:

return $volume_unit.'&lt;input type="hidden" name="'.$map.'" value="'.$volume_unit.'" /&gt;';

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

The following user(s) said Thank You: [Teto](/forum/user/8045-teto "View Teto's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC81OTczNC1lcnJvci11bmRlZmluZWQtdmFyaWFibGUtd2VpZ2h0LXVuaXQ/dG1wbD1tYXJrZG93bg==) 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.054 seconds

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