简体   繁体   中英

Joomla template update gives error

Today I tried to update one of my templates for Joomla 2.5. I was always getting the following error:

There is already a Template using the named directory: Install.
Are you trying to install the same template again?

When I delete the template and install it again, this problem does not appear. What is causing this error and how can I update the template without deleting it first?

The solution is to add method="upgrade" to the template declaration:

In my templateDetails.xml make sure that the line looks like this:

<extension version="2.5" type="template" client="site" method="upgrade">

Without the method="upgrade" the template must always be uninstalled then reinstalled when it needs to be upgraded.

You can also try this:

Go to extensions > extensions manager and on the manage tab, make sure you select the template in question and hit uninstall. Then just reinstall it.

I was getting that error or a similar one, because I deleted my template instead of unistalling it.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM