create auto-update for module

This forum is for general questions about extensions for Joomla! 3.x.

Moderators: pe7er, General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
Locked
hadichakery
Joomla! Apprentice
Joomla! Apprentice
Posts: 16
Joined: Sun May 20, 2018 1:48 pm

create auto-update for module

Post by hadichakery » Tue Sep 18, 2018 12:09 pm

I've made a module
Question :
1 - How can I add auto-update feature?
2 - My module contains a free version 1.2.0 and a paid version 2.1.0
Changes have been made to the monetary edition
How can I change the version 1.2.0 update to 1.2.1?
Also, about version 2.1.0 to 2.3.1
If the update feature is automatic,
How can I provide a separate update for each version
So that any person who receives each copy
Update in the same version.
Thanks for the help of friends.

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 44074
Joined: Sat Apr 05, 2008 9:58 pm

Re: create auto-update for module

Post by Webdongle » Tue Sep 18, 2018 12:14 pm

https://docs.joomla.org/Manifest_files#Update_servers
Update servers can be defined in the <updateservers> element, a child of the root. This element may contain one or more <server> element, each describing a location to fetch updates from. Each <server> item can define the following attributes:
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".

hadichakery
Joomla! Apprentice
Joomla! Apprentice
Posts: 16
Joined: Sun May 20, 2018 1:48 pm

Re: create auto-update for module

Post by hadichakery » Tue Sep 18, 2018 2:18 pm

Webdongle wrote:
Tue Sep 18, 2018 12:14 pm
https://docs.joomla.org/Manifest_files#Update_servers
Update servers can be defined in the <updateservers> element, a child of the root. This element may contain one or more <server> element, each describing a location to fetch updates from. Each <server> item can define the following attributes:
I did according to the instructions ، But Joomla! Update does not see my module.
My xml file name : mod_jas_gallery_pro_879614.xml
url : www.mysite.com/update

Code: Select all

<updates>
    <update>
        <name>mod_jas_gallery_pro</name>
        <description>mod_jas_gallery_pro 1.2.3</description>
        <element>mod_jas_gallery_pro</element>
        <type>module</type>
        <version>1.2.3</version>
        <downloads>
            <downloadurl type="full" format="zip">http://mysite.com/update/mod_jas_gallery_pro_879614/mod_jas_gallery.zip</downloadurl>
        </downloads>
        <maintainer>Joomla</maintainer>
        <maintainerurl>http://mysite.com</maintainerurl>
        <targetplatform name="joomla" version="3.8"/>
        <client>site</client>
    </update>
</updates>
xml module :

Code: Select all

<updateservers>
        <server type="extension" priority="1" name="jas Gallery Updates">http://mysite.com/mod_jas_gallery_pro_879614.xml</server>
     </updateservers>
:eek:

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 44074
Joined: Sat Apr 05, 2008 9:58 pm

Re: create auto-update for module

Post by Webdongle » Tue Sep 18, 2018 3:00 pm

The version in the update xml needs to be higher than the installed version doesn't it?
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".

hadichakery
Joomla! Apprentice
Joomla! Apprentice
Posts: 16
Joined: Sun May 20, 2018 1:48 pm

Re: create auto-update for module

Post by hadichakery » Fri Sep 21, 2018 12:59 pm

Webdongle wrote:
Tue Sep 18, 2018 3:00 pm
The version in the update xml needs to be higher than the installed version doesn't it?
Yes
The version is set correctly.

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 44074
Joined: Sat Apr 05, 2008 9:58 pm

Re: create auto-update for module

Post by Webdongle » Fri Sep 21, 2018 1:30 pm

So your test site has your 1.2.2 version but is not picking up the update notification (for your 1.2.3) from your update server?
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".

hadichakery
Joomla! Apprentice
Joomla! Apprentice
Posts: 16
Joined: Sun May 20, 2018 1:48 pm

Re: create auto-update for module

Post by hadichakery » Fri Sep 21, 2018 2:01 pm

Webdongle wrote:
Fri Sep 21, 2018 1:30 pm
So your test site has your 1.2.2 version but is not picking up the update notification (for your 1.2.3) from your update server?
My testing site has version 1.2.0, but updates update information (for 1.2.3) from the server does not update.
I built several modules that have exactly the same problem.
Even in the locals, I tested all the modules, but did not work properly.

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 44074
Joined: Sat Apr 05, 2008 9:58 pm

Re: create auto-update for module

Post by Webdongle » Fri Sep 21, 2018 2:06 pm

Is Joomla failing to see the available update or is it seeing the update but failing to be able to execute the update?
Are you defining both versions (with their destinations) in the xml file
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".

hadichakery
Joomla! Apprentice
Joomla! Apprentice
Posts: 16
Joined: Sun May 20, 2018 1:48 pm

Re: create auto-update for module

Post by hadichakery » Fri Sep 21, 2018 2:21 pm

Webdongle wrote:
Fri Sep 21, 2018 2:06 pm
Is Joomla failing to see the available update or is it seeing the update but failing to be able to execute the update?
Are you defining both versions (with their destinations) in the xml file
I am not able to view the update.
Are you defining both versions (with their destinations) in the xml file = YES
Do I need to send the plugin download link?

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 44074
Joined: Sat Apr 05, 2008 9:58 pm

Re: create auto-update for module

Post by Webdongle » Fri Sep 21, 2018 2:40 pm

And you have the url of the update server correctly referenced in the version on your test site?
In Extensions >>> Manage >>> Update ... you have clicked check for updates?
Other than the server (the test site is on) is blocking the update server or you having a typo then I am at loss sorry.
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".


Locked

Return to “Extensions for Joomla! 3.x”