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

#   Error when updating "-1 - An error has occurred"

##

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

Less More

- Posts: 209
- Thank you received: 18
-
-

14 years 10 months ago [\#33114](#33114) by [JIK](/forum/user/362-jik "View JIK's Profile")  *[Error when updating "-1 - An error has occurred"](/forum/3-bug-report/33114-error-when-updating-1-an-error-has-occurred#33114 "Hi HS team,  Whenever I update a business licence I get the permissions error as follows:  I know this problem is documented within Hikashop, and largely it has to do with the security settings on my server. However it is annoying and I just wanted to post the solution here, partly for my own future reference as I need to make the changes everytime I upgrade, and also for anyone else having this issue. The effect of the error is a site that is offline completely until corrected and sometimes finding the offending file permissions takes a while.  So here's the fix:  1. BEFORE INSTALLING THE UPDATE... In cpanel, change the permissions of the following files to 644. /administrator/components/com&#95;hikashop/classes/config.php /administrator/components/com&#95;hikashop/controllers/config.php /administrator/components/com&#95;hikashop/views/config/tmpl/config.php  2. INSTALL THE HIKASHOP UPDATE... In the Joomla backend, install the updated Hikashop file as per usual.  3. AFTER INSTALLING THE UPDATE... In cpanel, change the permissions of the above files back to 400.  Works everytime.  cheers!")* was created by *[JIK](/forum/user/362-jik "View JIK's Profile")*

Hi HS team,

Whenever I update a business licence I get the permissions error as follows:

-1 - An error has occurred
It was not possible to copy the selected file

I know this problem is documented within Hikashop, and largely it has to do with the security settings on my server. However it is annoying and I just wanted to post the solution here, partly for my own future reference as I need to make the changes everytime I upgrade, and also for anyone else having this issue. The effect of the error is a site that is offline completely until corrected and sometimes finding the offending file permissions takes a while.

So here's the fix:

1. BEFORE INSTALLING THE UPDATE...
In cpanel, change the permissions of the following files to 644.
/administrator/components/com_hikashop/classes/config.php
/administrator/components/com_hikashop/controllers/config.php
/administrator/components/com_hikashop/views/config/tmpl/config.php

2. INSTALL THE HIKASHOP UPDATE...
In the Joomla backend, install the updated Hikashop file as per usual.

3. AFTER INSTALLING THE UPDATE...
In cpanel, change the permissions of the above files back to 400.

Works everytime.

cheers!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8zMzExNC1lcnJvci13aGVuLXVwZGF0aW5nLTEtYW4tZXJyb3ItaGFzLW9jY3VycmVkP3RtcGw9bWFya2Rvd24=) 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 10 months ago [\#33119](#33119) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Error when updating "-1 - An error has occurred"](/forum/3-bug-report/33114-error-when-updating-1-an-error-has-occurred#33119 "Hi HS team,  Whenever I update a business licence I get the permissions error as follows:  I know this problem is documented within Hikashop, and largely it has to do with the security settings on my server. However it is annoying and I just wanted to post the solution here, partly for my own future reference as I need to make the changes everytime I upgrade, and also for anyone else having this issue. The effect of the error is a site that is offline completely until corrected and sometimes finding the offending file permissions takes a while.  So here's the fix:  1. BEFORE INSTALLING THE UPDATE... In cpanel, change the permissions of the following files to 644. /administrator/components/com&#95;hikashop/classes/config.php /administrator/components/com&#95;hikashop/controllers/config.php /administrator/components/com&#95;hikashop/views/config/tmpl/config.php  2. INSTALL THE HIKASHOP UPDATE... In the Joomla backend, install the updated Hikashop file as per usual.  3. AFTER INSTALLING THE UPDATE... In cpanel, change the permissions of the above files back to 400.  Works everytime.  cheers!")*

These files should always have a permission of 644. There is no need to have them with 400 permissions.
Is there a reason why you have them with 400 ? Maybe you have some security tool which does that automatically ?

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

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

Less More

- Posts: 209
- Thank you received: 18
-
-

14 years 10 months ago [\#33126](#33126) by [JIK](/forum/user/362-jik "View JIK's Profile")  Replied by *[JIK](/forum/user/362-jik "View JIK's Profile")* on topic *[Re: Error when updating "-1 - An error has occurred"](/forum/3-bug-report/33114-error-when-updating-1-an-error-has-occurred#33126 "Hi HS team,  Whenever I update a business licence I get the permissions error as follows:  I know this problem is documented within Hikashop, and largely it has to do with the security settings on my server. However it is annoying and I just wanted to post the solution here, partly for my own future reference as I need to make the changes everytime I upgrade, and also for anyone else having this issue. The effect of the error is a site that is offline completely until corrected and sometimes finding the offending file permissions takes a while.  So here's the fix:  1. BEFORE INSTALLING THE UPDATE... In cpanel, change the permissions of the following files to 644. /administrator/components/com&#95;hikashop/classes/config.php /administrator/components/com&#95;hikashop/controllers/config.php /administrator/components/com&#95;hikashop/views/config/tmpl/config.php  2. INSTALL THE HIKASHOP UPDATE... In the Joomla backend, install the updated Hikashop file as per usual.  3. AFTER INSTALLING THE UPDATE... In cpanel, change the permissions of the above files back to 400.  Works everytime.  cheers!")*

Hi Nicolas, yes it is a routine security measure on my servers that change config files to 400 automatically. So not a problem with Hikashop, however the routine is becoming more popular on PHP servers especially those running ecommerce.

Annoying yes, but worth it for the extra security! Just wanted to post it as some people don't have control over file permissions or server routines and the error can sometimes be a bit baffling as a result. If it's an issue please feel to remove my post.

cheers!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8zMzExNC1lcnJvci13aGVuLXVwZGF0aW5nLTEtYW4tZXJyb3ItaGFzLW9jY3VycmVkP3RtcGw9bWFya2Rvd24=) 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 10 months ago [\#33147](#33147) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Error when updating "-1 - An error has occurred"](/forum/3-bug-report/33114-error-when-updating-1-an-error-has-occurred#33147 "Hi HS team,  Whenever I update a business licence I get the permissions error as follows:  I know this problem is documented within Hikashop, and largely it has to do with the security settings on my server. However it is annoying and I just wanted to post the solution here, partly for my own future reference as I need to make the changes everytime I upgrade, and also for anyone else having this issue. The effect of the error is a site that is offline completely until corrected and sometimes finding the offending file permissions takes a while.  So here's the fix:  1. BEFORE INSTALLING THE UPDATE... In cpanel, change the permissions of the following files to 644. /administrator/components/com&#95;hikashop/classes/config.php /administrator/components/com&#95;hikashop/controllers/config.php /administrator/components/com&#95;hikashop/views/config/tmpl/config.php  2. INSTALL THE HIKASHOP UPDATE... In the Joomla backend, install the updated Hikashop file as per usual.  3. AFTER INSTALLING THE UPDATE... In cpanel, change the permissions of the above files back to 400.  Works everytime.  cheers!")*

These files are not config files in the sense you have for joomla. These are files used for the operations on the configuration page of HikaShop but they do not contain any configuration variables.
So their permissions should not be changed.

We could always change the name of these files to something in order to avoid the problem.

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

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