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.

13
  • I'm sorry it removed my xml tags. How can I add it? 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. 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) :-( Dec 30 '16 at 11:50
2

A very important thing for me was to set these two tags:

<folder>content</folder>
  <client>0</client>

In my case, the folder was "hikashop", because I made a plugin for hikashop, and the client 0 was "Administrator", so Joomla will show the update in the back-end.

2
  • Welcome to JSE and thank you for contributing. Please take our tour to earn your first badge. Your might also like to edit your profile to tell us about who you are and your personal Joomla journey. Please never say "thanks" or "hope this helps someone" or any other sign-offs in your posts -- these things are needless noise and should/will be trimmed by editors to improve the user experience for researchers.
    – mickmackusa
    Mar 12 '20 at 22:45
  • You save my time after 3 days of searching. Here are the tags you should put in your manifest <client_id>0</client_id> <client>0</client> <folder>YOUR_FOLDER_NAME_IN_MY_CASE_IS_SYSTEM</folder> <element>YOUR_ELEMENT_NAME</element> <type>plugin</type>
    – Bafi
    Mar 16 at 18:34
1

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

4
  • Then please mark this answer as accepted.
    – Mikan
    Dec 30 '16 at 16:57
  • I can accept it in 2 days... 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.