- Posts: 51
- Thank you received: 0
Custom Field Error after Upgrade to 3.2.0
12 years 5 months ago #152833
by phickman
Custom Field Error after Upgrade to 3.2.0 was created by phickman
-- 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.
-- 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.
12 years 5 months ago #152837
by nicolas
Replied by nicolas on topic Custom Field Error after Upgrade to 3.2.0
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.
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.167 seconds