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

#   Incomplete Export - with error

##

- **[sambob](/forum/user/7887-sambob "View sambob's Profile")**
- [![sambob's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar7887.png)](/forum/user/7887-sambob "View sambob's Profile") Topic Author
- [ Offline](/forum/user/7887-sambob)

Less More

- Posts: 260
- Thank you received: 25
-
- [](https://viemedia.com.au)
-

12 years 5 months ago -  12 years 5 months ago [\#159282](#159282) by [sambob](/forum/user/7887-sambob "View sambob's Profile")  *[Incomplete Export - with error](/forum/37-import-export-csv-xls/868827-incomplete-export-with-error#159282 "  www.simonbayliss.com.au  -- HikaShop version -- : HikaShop Business: 2.3.1 -- Joomla version -- : 3.3.0 -- PHP version -- :5.3.26 -- Browser(s) name and version -- : All -- Error-message(debug-mod must be tuned on) -- :  I am trying to export my porducts, about 600, and when I do, it seems to have exported them but when I open the CSV file, the file contains the following error: (a few 100 times)  Notice: Trying to get property of non-object in administrator/components/com&#95;hikashop/views/product/tmpl/export.php on line 114  Notice: Undefined index: in bcomponents/com&#95;hikasop/views/product/tmpl/export.php on line 115  Then below that, I have about 150 products exported successfully.  Never had this issue before, and not sure if it is because I just upgraded to Joomla 3.3 (from 3.2)  Attached is the CSV.  Thanks in advance.  Simon")* was created by *[sambob](/forum/user/7887-sambob "View sambob's Profile")*

[ www.simonbayliss.com.au](http://www.simonbayliss.com.au)
-- HikaShop version -- : HikaShop Business: 2.3.1
-- Joomla version -- : 3.3.0
-- PHP version -- :5.3.26
-- Browser(s) name and version -- : All
-- Error-message(debug-mod must be tuned on) -- :

I am trying to export my porducts, about 600, and when I do, it seems to have exported them but when I open the CSV file, the file contains the following error: (a few 100 times)

&lt;b&gt;Notice&lt;/b&gt;: Trying to get property of non-object in &lt;b&gt;administrator/components/com_hikashop/views/product/tmpl/export.php&lt;/b&gt; on line &lt;b&gt;114&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Notice&lt;/b&gt;: Undefined index: in &lt;bcomponents/com_hikashop/views/product/tmpl/export.php&lt;/b&gt; on line &lt;b&gt;115&lt;/b&gt;&lt;br /&gt;

Then below that, I have about 150 products exported successfully.

Never had this issue before, and not sure if it is because I just upgraded to Joomla 3.3 (from 3.2)

Attached is the CSV.

*This attachment is hidden for guests.
Please log in or register to see it.*

Thanks in advance.

Simon

---

Don't look at what is and ask 'why?'; look at what isn't and ask 'Why Not!'

Last edit: 12 years 5 months ago by [sambob](/forum/user/7887-sambob "View sambob's Profile").

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

12 years 5 months ago [\#159299](#159299) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Incomplete Export - with error](/forum/37-import-export-csv-xls/868827-incomplete-export-with-error#159299 "  www.simonbayliss.com.au  -- HikaShop version -- : HikaShop Business: 2.3.1 -- Joomla version -- : 3.3.0 -- PHP version -- :5.3.26 -- Browser(s) name and version -- : All -- Error-message(debug-mod must be tuned on) -- :  I am trying to export my porducts, about 600, and when I do, it seems to have exported them but when I open the CSV file, the file contains the following error: (a few 100 times)  Notice: Trying to get property of non-object in administrator/components/com&#95;hikashop/views/product/tmpl/export.php on line 114  Notice: Undefined index: in bcomponents/com&#95;hikasop/views/product/tmpl/export.php on line 115  Then below that, I have about 150 products exported successfully.  Never had this issue before, and not sure if it is because I just upgraded to Joomla 3.3 (from 3.2)  Attached is the CSV.  Thanks in advance.  Simon")*

Hi,

It looks like you have a product without category.
In the file "administrator/components/com_hikashop/views/product/tmpl/export.php" please replace around the line 114: Code:

$parent_id = $categories[0]-&gt;category_parent_id; $data[] = str_replace(array('"',',',';'), array('""','\\,','\\;'), $this-&gt;categories[$parent_id]-&gt;category_name);

By: Code:

if(isset($categories[0]-&gt;category_parent_id)){ $parent_id = $categories[0]-&gt;category_parent_id; $data[] = str_replace(array('"',',',';'), array('""','\\,','\\;'), $this-&gt;categories[$parent_id]-&gt;category_name); }else{ $data[] = ''; }

Regards,

---

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

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

- **[sambob](/forum/user/7887-sambob "View sambob's Profile")**
- [![sambob's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar7887.png)](/forum/user/7887-sambob "View sambob's Profile") Topic Author
- [ Offline](/forum/user/7887-sambob)

Less More

- Posts: 260
- Thank you received: 25
-
- [](https://viemedia.com.au)
-

12 years 5 months ago [\#159340](#159340) by [sambob](/forum/user/7887-sambob "View sambob's Profile")  Replied by *[sambob](/forum/user/7887-sambob "View sambob's Profile")* on topic *[Incomplete Export - with error](/forum/37-import-export-csv-xls/868827-incomplete-export-with-error#159340 "  www.simonbayliss.com.au  -- HikaShop version -- : HikaShop Business: 2.3.1 -- Joomla version -- : 3.3.0 -- PHP version -- :5.3.26 -- Browser(s) name and version -- : All -- Error-message(debug-mod must be tuned on) -- :  I am trying to export my porducts, about 600, and when I do, it seems to have exported them but when I open the CSV file, the file contains the following error: (a few 100 times)  Notice: Trying to get property of non-object in administrator/components/com&#95;hikashop/views/product/tmpl/export.php on line 114  Notice: Undefined index: in bcomponents/com&#95;hikasop/views/product/tmpl/export.php on line 115  Then below that, I have about 150 products exported successfully.  Never had this issue before, and not sure if it is because I just upgraded to Joomla 3.3 (from 3.2)  Attached is the CSV.  Thanks in advance.  Simon")*

Hi Jerome,

Thanks for your reply. I was able to export.

No idea how/why products are missing categories as they are displaying as expected. I will inverstiagte.

Thanks again.

---

Don't look at what is and ask 'why?'; look at what isn't and ask 'Why Not!'

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

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