Error "undefined variable: weight_unit"

  • Posts: 184
  • Thank you received: 4
12 years 3 months ago #59734

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



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?

Attachments:
Last edit: 12 years 3 months ago by Teto.

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
12 years 3 months ago #59764

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 type=php-brief]return $volume_unit.'<input type="hidden" name="'.$map.'" value="'.$weight_unit.'" />';[/code]To :
[code type=php-brief]return $volume_unit.'<input type="hidden" name="'.$map.'" value="'.$volume_unit.'" />';[/code]

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.
The following user(s) said Thank You: Teto

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

Time to create page: 0.059 seconds
Powered by Kunena Forum