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

#   Error message after adding category name

##

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

Less More

- Posts: 50
- Thank you received: 0
-
-

10 years 1 month ago [\#253273](#253273) by [edward68](/forum/user/32595-edward68 "View edward68's Profile")  *[Error message after adding category name](/forum/26-product-category-display/887088-error-message-after-adding-category-name#253273 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.6.3 -- PHP version -- : 5.5.38 -- Browser(s) name and version -- : firefox nightly 52.0a1 -- Error-message(debug-mod must be tuned on) -- : Undefined property: CategoryViewCategory::$row in /home/wwwwhitepepperho/public&#95;html/templates/protostar/html/com&#95;hikashop/category/listing&#95;div.php on Notice: Trying to get property of non-object in /home/wwwwhitepepperho/public&#95;html/templates/protostar/html/com&#95;hikashop/category/listing&#95;div.php on l  Hello All, I recently added a custom div to the Hikashop cateegory page. The div drops down over the top of the category image and contains a logo, category name and button. To allow the title to display I added the following : escape($this-&gt;row-&gt;category&#95;name); ?&gt; which works on all of the divs except the first one. The first one produces two errors, the first error is Undefined property: CategoryViewCategory::$row and the second is Notice: Trying to get property of non-object in. Can someone please help me to solve this issue. I realise that I need to update my Hikashop Business Version and will do so once I have finished this website. Thanks in advance.")* was created by *[edward68](/forum/user/32595-edward68 "View edward68's Profile")*

-- HikaShop version -- : 2.4.0
-- Joomla version -- : 3.6.3
-- PHP version -- : 5.5.38
-- Browser(s) name and version -- : firefox nightly 52.0a1
-- Error-message(debug-mod must be tuned on) -- : Undefined property: CategoryViewCategory::$row in /home/wwwwhitepepperho/public_html/templates/protostar/html/com_hikashop/category/listing_div.php on
Notice: Trying to get property of non-object in /home/wwwwhitepepperho/public_html/templates/protostar/html/com_hikashop/category/listing_div.php on l

Hello All, I recently added a custom div to the Hikashop cateegory page. The div drops down over the top of the category image and contains a logo, category name and button. To allow the title to display I added the following : &lt;?php echo $this-&gt;escape($this-&gt;row-&gt;category_name); ?&gt; which works on all of the divs except the first one. The first one produces two errors, the first error is Undefined property: CategoryViewCategory::$row and the second is Notice: Trying to get property of non-object in. Can someone please help me to solve this issue. I realise that I need to update my Hikashop Business Version and will do so once I have finished this website. Thanks in advance.

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

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86584
- Thank you received: 14325
-
-

10 years 1 month ago [\#253300](#253300) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Error message after adding category name](/forum/26-product-category-display/887088-error-message-after-adding-category-name#253300 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.6.3 -- PHP version -- : 5.5.38 -- Browser(s) name and version -- : firefox nightly 52.0a1 -- Error-message(debug-mod must be tuned on) -- : Undefined property: CategoryViewCategory::$row in /home/wwwwhitepepperho/public&#95;html/templates/protostar/html/com&#95;hikashop/category/listing&#95;div.php on Notice: Trying to get property of non-object in /home/wwwwhitepepperho/public&#95;html/templates/protostar/html/com&#95;hikashop/category/listing&#95;div.php on l  Hello All, I recently added a custom div to the Hikashop cateegory page. The div drops down over the top of the category image and contains a logo, category name and button. To allow the title to display I added the following : escape($this-&gt;row-&gt;category&#95;name); ?&gt; which works on all of the divs except the first one. The first one produces two errors, the first error is Undefined property: CategoryViewCategory::$row and the second is Notice: Trying to get property of non-object in. Can someone please help me to solve this issue. I realise that I need to update my Hikashop Business Version and will do so once I have finished this website. Thanks in advance.")*

Hi,

That's normal, at the beginning of the listing_div view file, $this-&gt;row doesn't exist.
It is initialized after the line: Code:

$this-&gt;row =&amp; $row;

So I suggest that you move your code after that line (or move that line before your code) so that the variable already exists when you try to use it.

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

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

Less More

- Posts: 50
- Thank you received: 0
-
-

10 years 1 month ago [\#253317](#253317) by [edward68](/forum/user/32595-edward68 "View edward68's Profile")  Replied by *[edward68](/forum/user/32595-edward68 "View edward68's Profile")* on topic *[Error message after adding category name](/forum/26-product-category-display/887088-error-message-after-adding-category-name#253317 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.6.3 -- PHP version -- : 5.5.38 -- Browser(s) name and version -- : firefox nightly 52.0a1 -- Error-message(debug-mod must be tuned on) -- : Undefined property: CategoryViewCategory::$row in /home/wwwwhitepepperho/public&#95;html/templates/protostar/html/com&#95;hikashop/category/listing&#95;div.php on Notice: Trying to get property of non-object in /home/wwwwhitepepperho/public&#95;html/templates/protostar/html/com&#95;hikashop/category/listing&#95;div.php on l  Hello All, I recently added a custom div to the Hikashop cateegory page. The div drops down over the top of the category image and contains a logo, category name and button. To allow the title to display I added the following : escape($this-&gt;row-&gt;category&#95;name); ?&gt; which works on all of the divs except the first one. The first one produces two errors, the first error is Undefined property: CategoryViewCategory::$row and the second is Notice: Trying to get property of non-object in. Can someone please help me to solve this issue. I realise that I need to update my Hikashop Business Version and will do so once I have finished this website. Thanks in advance.")*

Thanks Nicolas, I really appreciate your help. Thats fixed my problem.

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

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