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

#   Products: Reset number of possible downloads fails

##

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

Less More

- Posts: 45
- Thank you received: 2
-
-

14 years 11 months ago -  14 years 11 months ago [\#30412](#30412) by [klimmbimm](/forum/user/739-klimmbimm "View klimmbimm's Profile")  *[Products: Reset number of possible downloads fails](/forum/3-bug-report/30412-products-reset-number-of-possible-downloads-fails#30412 "If I click on the left waste bin&#42; when I am editing a single product, I get the error:  &#42; see:")* was created by *[klimmbimm](/forum/user/739-klimmbimm "View klimmbimm's Profile")*

If I click on the left waste bin* when I am editing a single product, I get the error:

> Fatal error: Call to a member function setQuery() on a non-object in C:\\xampp\\htdocs\\joomla\\administrator\\components\\com\_hikashop\\classes\\file.php on line 166

* see:
[ ![&#91;img](http://www.abload.de/img/unbenanntrc8wm.png) ](http://www.abload.de/img/unbenanntrc8wm.png "&#91;img")

Last edit: 14 years 11 months ago by [klimmbimm](/forum/user/739-klimmbimm "View klimmbimm's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8zMDQxMi1wcm9kdWN0cy1yZXNldC1udW1iZXItb2YtcG9zc2libGUtZG93bmxvYWRzLWZhaWxzP3RtcGw9bWFya2Rvd24=) 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: 86541
- Thank you received: 14304
-
-

14 years 11 months ago [\#30425](#30425) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Products: Reset number of possible downloads fails](/forum/3-bug-report/30412-products-reset-number-of-possible-downloads-fails#30425 "If I click on the left waste bin&#42; when I am editing a single product, I get the error:  &#42; see:")*

Please change the code:
$this-&gt;db-&gt;setQuery($query);
return $this-&gt;query();

by the code:
$this-&gt;database-&gt;setQuery($query);
return $this-&gt;database-&gt;query();

in the file administrator\components\com_hikashop\classes\file.php and that will fix the problem.

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

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

Less More

- Posts: 45
- Thank you received: 2
-
-

14 years 11 months ago [\#30610](#30610) by [klimmbimm](/forum/user/739-klimmbimm "View klimmbimm's Profile")  Replied by *[klimmbimm](/forum/user/739-klimmbimm "View klimmbimm's Profile")* on topic *[Re: Products: Reset number of possible downloads fails](/forum/3-bug-report/30412-products-reset-number-of-possible-downloads-fails#30610 "If I click on the left waste bin&#42; when I am editing a single product, I get the error:  &#42; see:")*

Thank you!

Indeed this fixes the problem. Will this be fixed in the next Hikashop release?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8zMDQxMi1wcm9kdWN0cy1yZXNldC1udW1iZXItb2YtcG9zc2libGUtZG93bmxvYWRzLWZhaWxzP3RtcGw9bWFya2Rvd24=) 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: 86541
- Thank you received: 14304
-
-

14 years 11 months ago [\#30651](#30651) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Products: Reset number of possible downloads fails](/forum/3-bug-report/30412-products-reset-number-of-possible-downloads-fails#30651 "If I click on the left waste bin&#42; when I am editing a single product, I get the error:  &#42; see:")*

Yes it will.

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

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