Custom Field Error after Upgrade to 3.2.0

  • Posts: 51
  • Thank you received: 0
11 years 3 months ago #152833

-- url of the page with the problem -- : mywebsite.com/mypage
-- HikaShop version -- : 2.3.0
-- Joomla version -- : 2.5.19
-- PHP version -- : x.x.x
-- Browser(s) name and version -- : XXXXX x.x.x
-- Error-message(debug-mod must be tuned on) -- : Error_message

I see the following error after upgrading to 2.3.0:

Notice: Undefined property: stdClass::$choplf in /home/phickman/public_html/urbanashes/partners/administrator/components/com_hikashop/views/order/tmpl/show_products.php on line 109

This shows in the back-end admin Orders page even when there is no data to display for a particular item.

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

  • Posts: 84146
  • Thank you received: 13650
  • MODERATOR
11 years 3 months ago #152837

Hi,

Replace the line:
if(empty($product->$namekey) && !strlen($product->$namekey)){

by:
if(empty($product->$namekey) || !strlen($product->$namekey)){

in the file "show_products" via the menu Display>Views and that should fix the issue.

Note that the "error reporting" option of the Joomla configuration should always be turned off on a live website for security reasons and you should not see that message if that was the case on your website.

The following user(s) said Thank You: phickman

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

Time to create page: 0.053 seconds
Powered by Kunena Forum