0

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

Warning
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.

0

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

eg.

<extension method="upgrade" type="package" version="3.0">
  • 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.