Error Updating Component - does not update

by Thiago Guimarães   Last Updated June 27, 2020 13:10 PM

I'm not sure if it's a good title for my question, because my component actually updates - at least that's what Joomla tells me.

So, the problem is that I developed a component and now I need to update it but it doesn't seem to be updating.

I created a folder called component-update in my root folder. Inside that folder I have:

  1. update.html file containing information about the update.

  2. My zipped component called com_gallery-update-1.9.1

  3. XML updates.xml file containing instructions for the update.

In my updates.xml file I have:

<updates>
    <update>
        <name>Gallery Update</name>
        <description>Gallery Component Update</description>
        <element>com_gallery</element>
        <type>component</type>
        <version>1.9.1</version>
            <infourl>http://localhost/component-update/update.html</infourl>
        <downloads>
            <downloadurl type="full" format="zip">http://localhost/component-update/com_gallery-update-1.9.1.zip</downloadurl>
        </downloads>
    
        <tags>
            <tag>stable</tag>
        </tags>
        <targetplatform name="joomla" version="3.[23456789]" />
        <php_minimum>5.3</php_minimum>
        <supported_databases mysql="5.6.19"></supported_databases>
    </update>
</updates>

In the component's mainfest file I have:

    <updateservers>
      <server type="extension" name="Gallery Updates">http://localhost/component-update/updates.xml</server>
   </updateservers>

On the "Update sites" page, in Joomla Administrator Panel, I have:

Gallery updates

http://localhost/component-update/updates.xml

My component appears on the update list and I'm able to update it; Joomla gives me this:

Message

Updating component was successful

But the component does not change the version and when I click on "Find Updates" I can see my component update again on the list, which means the component wasn't really updated.

I can't tell you what's wrong because it doesn't give me any error message.

I have tried:

  1. Changing folders

  2. Changing XML files

  3. Trying update type collection

  4. Clearing the cache

  5. Reparing database

  6. Rebuilding update sites

  7. Changing names

None of those worked. If someone has experienced this before, please help me.

I'm following along with this tutorial: https://docs.joomla.org/J3.x:Developing_an_MVC_Component/Adding_an_update_server



Related Questions


Joomla auto update for commercial component

Updated August 21, 2018 09:10 AM

Joomla auto update

Updated August 19, 2018 21:10 PM



What is happened to joomlaman.com?

Updated July 06, 2017 16:10 PM