When I update my custom developed component it throws the below error

JInstaller: :Install: File already exists /path/controller.php
Component Update: Failed to copy site files.

Initially I thought it was because of file permission issue but it doesn't look like that.

While debugging the core code I found the problem happens in copyFiles method under /libraries/cms/installer/installer.php where the overwrite flag is set to false.

What could be the problem? In my XML I have method='update' only.


In your installer xml file, you should use method="upgrade", not update:


<extension method="upgrade" type="package" version="3.0">
| improve this answer | |
  • Mybad... Yes, you are correct – Malaiselvan May 9 '15 at 21:46

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.