Update Custom Modules

Moderator: alexred

Forum rules
Regole Forum
Post Reply
MatteoScano
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Fri Jun 09, 2023 8:45 am

Update Custom Modules

Post by MatteoScano » Thu Mar 14, 2024 10:40 am

Ciao a tutti,
[english below]
spero possiate aiutarmi a risolvere o almeno a individuare il problema che sto avendo da alcuni giorni.

Ho creato un template e alcuni custom modules in Joomla 4. Una volta rilasciato il template e installato in vari siti, ho avuto la necessita di modificare il template e rilasciare le update tramite un sistema di repository e pacchetti di aggiornamenti di tipo template e tutto funziona correttamente. Facendo la stessa cosa per i moduli però sto avendo un problema che mi sta facendo "star male" da un po, ovvero non arrivano le notifiche di disponibilità aggiornamento in Pannello di controllo->Aggiornamenti disponibili (solo modulo custom, custom template e estensioni joomla ok!). Se faccio un drag and drop del modulo custom, viene installato correttamente e senza errori.
Se vado in Siti di aggiornamento vedo il modulo e cliccando sul percorso riesco con successo ad arrivare al file xml di configurazione.
Ho chiesto aiuto per un check sui file di configurazione lato server/repository e Modulo e sembrerebbe tutto ok, ma purtroppo niente, nessun errore ma update module non visibile, quindi mi rivolgo a questo forum con la speranza che qualcuno di voi abbia avuto e risolto il problema.

Aggiungo i file xml:
Modulo:
<?xml version="1.0" encoding="utf-8"?>
<extension version="1.02.003" type="module" client="site" method="upgrade">
<name>Argomenti in evidenza</name>
<author>Company name</author>
<creationDate>12/03/2024</creationDate>
<copyright>(C) 2024 Company</copyright>
<license>GNU General Public License version 2 or later; see LICENSE.txt</license>
<authorEmail>[email protected]</authorEmail>
<authorUrl>www.company.it</authorUrl>
<version>1.02.003</version>
<description>Bug fix z-index Titolo modulo</description>
<updateservers>
<server type="module" priority="1" name="mod_dca_evidenza">https://resources.company.it/repodca/te ... ml</server>
</updateservers>
<namespace path="src">Joomla\Module\mod_dca_evidenza</namespace>
<files>
<filename module="mod_dca_evidenza">mod_dca_evidenza.php</filename>
<folder>tmpl</folder>
</files>
<languages>
<language tag="en-GB">language/en-GB/mod_dca_evidenza.ini</language>
<language tag="en-GB">language/en-GB/mod_dca_evidenza.sys.ini</language>
</languages>
<help key="Site_Modules:_evidenza" />
<config>
<!-- PARAMS etc etc -->
</config>
</extension>


Server xml:

<?xml version="1.0" encoding="UTF-8"?>
<updates>
<update>
<name>Argomenti in evidenza</name>
<description>Bug fix z-index Titolo modulo</description>
<element>mod_dca_evidenza</element>
<type>module</type>
<version>1.02.003</version>
<infourl>https://www.company.it</infourl>
<downloads>
<downloadurl type="full" format="zip">https://resources.company.it/repodca/mo ... ownloadurl>
</downloads>
<tags>
<tag>stable</tag>
</tags>
<maintainer>Company</maintainer>
<maintainerurl>https://www.company.it</maintainerurl>
<section>Modulo Argomenti in Evidenza</section>
<targetplatform name="joomla" version="4.*"/>
<client>site</client>
</update>
</updates>



Grazie in anticipo e un caro saluto a tutti gli sviluppatori Joomla.
Matteo

ENGLISH:
Hello everyone,

I hope you can help me solve or at least identify the problem I've been having for a few days.

I created a template and some custom modules in Joomla 4. Once the template was released and installed on various sites, I needed to modify the template and release updates through a repository system and template type update packages, and everything works correctly. However, doing the same thing for the modules, I'm having a problem that has been making me feel bad for a while, namely, the notifications of update availability do not appear in Control Panel->Available Updates (only custom module, custom template, and Joomla extensions are okay!). If I do a drag and drop of the custom module, it is installed correctly and without errors. If I go to Update Sites, I see the module and by clicking on the path, I can successfully reach the configuration xml file. I asked for help to check the configuration files on the server/repository and Module side, and everything seems okay, but unfortunately, no errors but the update module is not visible, so I turn to this forum hoping that some of you have had and solved the problem.

I am adding the xml files:
Module:
<?xml version="1.0" encoding="utf-8"?>
<extension version="1.02.003" type="module" client="site" method="upgrade">
<name>Argomenti in evidenza</name>
<author>Company name</author>
<creationDate>12/03/2024</creationDate>
<copyright>(C) 2024 Company</copyright>
<license>GNU General Public License version 2 or later; see LICENSE.txt</license>
<authorEmail>[email protected]</authorEmail>
<authorUrl>www.company.it</authorUrl>
<version>1.02.003</version>
<description>Bug fix z-index Titolo modulo</description>
<updateservers>
<server type="module" priority="1" name="mod_dca_evidenza">https://resources.company.it/repodca/te ... ml</server>
</updateservers>
<namespace path="src">Joomla\Module\mod_dca_evidenza</namespace>
<files>
<filename module="mod_dca_evidenza">mod_dca_evidenza.php</filename>
<folder>tmpl</folder>
</files>
<languages>
<language tag="en-GB">language/en-GB/mod_dca_evidenza.ini</language>
<language tag="en-GB">language/en-GB/mod_dca_evidenza.sys.ini</language>
</languages>
<help key="Site_Modules:_evidenza" />
<config>
<!-- PARAMS etc etc -->
</config>
</extension>


Server xml:
<?xml version="1.0" encoding="UTF-8"?>
<updates>
<update>
<name>Argomenti in evidenza</name>
<description>Bug fix z-index Titolo modulo</description>
<element>mod_dca_evidenza</element>
<type>module</type>
<version>1.02.003</version>
<infourl>https://www.company.it</infourl>
<downloads>
<downloadurl type="full" format="zip">https://resources.company.it/repodca/mo ... ownloadurl>
</downloads>
<tags>
<tag>stable</tag>
</tags>
<maintainer>Company</maintainer>
<maintainerurl>https://www.company.it</maintainerurl>
<section>Modulo Argomenti in Evidenza</section>
<targetplatform name="joomla" version="4.*"/>
<client>site</client>
</update>
</updates>

Post Reply

Return to “Componenti - Moduli - Plugins”