3

I made my first plugin and want to setup an update site as well. My joomla does not find the update (after pressing clean cache of course). The update server is found and it load my xml. My manifest file:

<?xml version="1.0" encoding="utf-8"?>
...
    <!-- UPDATESERVER DEFINITION -->
    <updateservers>
        <!-- Note: No spaces or linebreaks allowed between the server tags -->
        <server type="extension" priority="2" name="ddVmSubs">http://danidek.hu/files/ddVmSubs-update.xml</server>
    </updateservers>
</extension>

The update xml file (ddVmSubs-update.xml):

<?xml version="1.0" encoding="utf-8"?>
<updates>
    <update>
      <name>ddVmSubs</name>
      <description>Subscription plugin of Danidek for Virtuemart. </description>
      <element>ddVmSubs</element>
      <type>plugin</type>
      <folder>content</folder>
      <client>0</client>
      <client_id>0</client_id>
      <version>1.0.5</version>
        <downloads>
         <downloadurl type="full" format="zip">My download link. I removed it because I can't post more than 2 links..</downloadurl>
      </downloads>
      <tags><tag>stable</tag></tags>
      <maintainer>Danidek Inc.</maintainer>
      <targetplatform name="joomla" version="3" />
   </update>  
 </updates>

I can't find out what is the problem.

  • I'm sorry it removed my xml tags. How can I add it? – Daniel Dekany Dec 30 '16 at 10:57
  • Are you sure the value (ddVmSubs) that you have used inside the <element> tags match that in the element column in the #__extensions database table? – Lodder Dec 30 '16 at 11:36
  • Thank you for your comment. Yes, both name and element are ddVmSubs in the extensions table. – Daniel Dekany Dec 30 '16 at 11:39
  • Also, try defining the target platform version as version="3.[678]" – Lodder Dec 30 '16 at 11:41
  • Thank you, good idea. I've changed it and still does not work (Clear cache, find updates) :-( – Daniel Dekany Dec 30 '16 at 11:50
1

Solved! I've changed the plugin file name and element name to lowercase. It started to work.

  • Then please mark this answer as accepted. – Mikan Dec 30 '16 at 16:57
  • I can accept it in 2 days... – Daniel Dekany Dec 30 '16 at 17:01
  • Rrright... I forgot... – Mikan Dec 30 '16 at 17:07
  • Hi! What of in the case that the plugin file name is not the same as the element name? I have this scenario for a payment gateway extension for a component. File name is 'plg_jsms_payment_paystack while element name is paystack. @Mikan and Daniel pls help – Daydah Jan 7 '17 at 17:22

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.