Joomla组件更新XML文件解析错误



我在Joomla中有一个付费组件,根据最新的JED要求,所有开发人员必须提供与Joomla Update System的兼容性,作为支持分配安全修复程序,增强功能和增强功能和增强功能的方法新功能。脚趾对线路,我将组件更新为版本1.1.0,并在安装文件中给出了更新服务器的要求。

这是添加到subest.xml文件

的额外代码
<updateservers>
    <server type="extension" name="Code Seller">https://www.scriptplaza.com/downloads/codeseller.xml</server>
</updateservers>

因此,任何安装此版本的人都将在控制面板中获得所有进一步的更新通知。第二天,我上传了另一个版本的1.1.1,其中包含次要更新。根据更新服务器的要求,应在后端控制面板更新页面上显示此更新,其中显示了所有扩展名的更新。列出了许多扩展更新,但没有我的。我已经在过去的两天工作了,没有成功。我觉得我在服务器中托管的更新XML文件中有一些错误。这是codeseller.xml代码

<?xml version="1.0" encoding="utf-8"?>
<updates>
    <update>
        <name><![CDATA[Codeseller]]></name>
        <description><![CDATA[Paid Download Component]]></description>
        <element>pkg_codeseller</element>
        <type>package</type>
        <version>1.1.1</version>
        <infourl title="scriptplaza.com">http://www.scriptplaza.com</infourl>
        <downloads>
           <downloadurl type="full" format="zip">
            <![CDATA[https://scriptplaza.com/index.php?option=com_codeseller&amp;controller=order&amp;task=order.downloadupdates&amp;product_id=4]]>
           </downloadurl>
       </downloads>
        <tags>
            <tag>stable</tag>
        </tags>
        <maintainer><![CDATA[Amreeta Ray]]></maintainer>
        <maintainerurl>http://www.scriptplaza.com</maintainerurl>
        <section>Testing</section>
        <targetplatform name="joomla" version="3.6"/>
    </update>
</updates>

我遵循此教程https://docs.joomla.org/deploying_an_update_server。我还有其他东西吗?

如果您愿意,可以快速查看我的更新文件:

https://www.svenbluege.de/index.php?option=com_ars&view=update&task=stream&format=xml&id=1

我正在使用自动生成XML的Akkeba Release系统。也许您通过将其与XML文件进行比较来找到丢失的部分。

包装中的参考看起来像这样:

<updateservers>
    <server type="extension" priority="1" name="Event Gallery">http://www.svenbluege.de/index.php?option=com_ars&amp;view=update&amp;task=stream&amp;format=xml&amp;id=1</server>
</updateservers>

此外,您可以检查更新URL是否在#__update_sites表中。

检查您的subtest.xml是否包含 <packagename>codeseller</packagename>并匹配您的更新流 <element>pkg_codeseller</element>

如果使用Akeeba版本:我在过去的两天也很挣扎,但是由于我现在仍然可以解释的另一个原因,因为它可能会有所帮助:

Akeeba版本检查/components/com_ars/View/Update/tmpl/stream.php中的环境字符串

必须是"环境标题" =" JOOMLA"one_answers" XML Update流平台",以高于2.5的2.5,才能在更新流中产生<client>,否则会产生<client_id>

自从使用" XML更新流平台" ="。*"

以来,我损失了2天

将提出一个拉动请求,要求在Akeeba版本中删除Joomla 2.5支持。

对于所有遇到困难的人,我将提供一个与Joomla Docs匹配的解决方案,但可以使用。这意味着需要更新Joomla文档。如果您选中此链接https://docs.joomla.org/deploying_an_update_server,他们说

client - Required for modules and templates as of 3.2.0. - The client ID of the extension, which can be found by looking inside the #__extensions table. To date, use 0 for "site" and 1 for "administrator". Plugins and front-end modules are automatically installed with a client of 0 (site), but you will need to specify the client in an update or it will default to 1 (administrator) and then found update would not be shown because it would not match any extension. Components are automatically installed with a client of 1, which is currently the default.
    Warning: The tag name is <client> for Joomla! 2.5 and <client_id> for 1.6 and 1.7. If you use <client_id> (rather than <client>) on a 2.5 site, it will be ignored.

实际上并非如此,当我检查我的#__updates时,我看到所有语言文件都有客户端ID 0,但我的扩展程序有1。因此,仅检查我将<client>0</client>添加到XML文件中。瞧,它起作用了。所以最后我得到了这个完整的更新文件

<?xml version="1.0" encoding="utf-8"?>
    <updates>
        <update>
            <name><![CDATA[Codeseller]]></name>
            <description><![CDATA[Paid Download Component]]></description>
            <element>pkg_codeseller</element>
            <client>0</client>
            <type>package</type>
            <version>1.1.1</version>
            <infourl title="scriptplaza.com">http://www.scriptplaza.com</infourl>
            <downloads>
               <downloadurl type="full" format="zip">
                <![CDATA[https://scriptplaza.com/index.php?option=com_codeseller&amp;controller=order&amp;task=order.downloadupdates&amp;product_id=4]]>
               </downloadurl>
           </downloads>
            <tags>
                <tag>stable</tag>
            </tags>
            <maintainer><![CDATA[Amreeta Ray]]></maintainer>
            <maintainerurl>http://www.scriptplaza.com</maintainerurl>
            <section>Testing</section>
            <targetplatform name="joomla" version="3.6"/>
        </update>
    </updates>

相关内容

最新更新