扩展更新期间出现Joomla“ JInstaller::Install:文件不存在”错误

时间:2018-10-28 07:20:29

标签: joomla joomla-extensions

我构建了一个Joomla 3.x扩展名:https://github.com/Sagenda/joomla/

当我使用Joomla内部更新系统时,出现此错误:

JInstaller::Install:文件不存在/home/synergie/public_html/synergie/contao/joomla30/tmp/install_5bd443ecad85c/joomla-0.7.1/ mod_sagenda_calendar.xml 模块%s:无法从源复制文件。

enter image description here

我该如何纠正?谢谢

1 个答案:

答案 0 :(得分:2)

您在文件名标记之间添加了额外的空格,因此文件名变得不同。我在下面给出了更正的内容;

<?xml version="1.0" encoding="utf-8"?>
<extension type="module" version="3.8.13" client="site" method="upgrade">
    <name>Sagenda booking and scheduling calendar</name>
    <author>Iteration.info SARL</author>
    <version>0.7.1</version>
    <description>A Booking Calendar for your Joomla Website</description>
    <files>
        <filename>mod_sagenda_calendar.xml</filename>
        <filename>mod_sagenda_calendar_update.xml</filename>
        <filename module="mod_sagenda_calendar">mod_sagenda_calendar.php</filename>
        <filename>index.html</filename>
        <filename>helper.php</filename>
        <folder>mashape</folder>
        <folder>tmpl</folder>
    </files>
    <config>
        <fields name="params">
            <fieldset name="basic">
                <field name="sagendaToken" required="true" type="text" label="Token" description="Please paste here the token that you can found on your dashboard : https://sagenda.net/Dashboard" size="200" default="" />
                <field name="sagendaWeekStartsOn" type="list" label="Week start on" description="Please select which day your week should start on your calendar." size="200" default="1">
                    <option value="0">
                        Sunday
                    </option>
                    <option value="1">
                        Monday
                    </option>
                    <option value="2">
                        Tuesday
                    </option>
                    <option value="3">
                        Wednesday
                    </option>
                    <option value="4">
                        Thursday
                    </option>
                    <option value="5">
                        Friday
                    </option>
                    <option value="6">
                        Saturday
                    </option>
                </field>
                <field name="sagendaDateFormat" type="text" label="Date format" description="Define the format of date you want, &lt;br/&gt; YYYY-MM-DD for 1981-10-25 &lt;br/&gt; DD.MM.YY for 25.10.1981" size="200" default="DD MMMM YYYY" required="true" hint="Please enter a format" />
                <field name="sagendaTimeFormat" type="text" label="Time format" description="Define the format of time you want, &lt;br/&gt; HH:mm for 18:00&lt;br/&gt; hh:mm A for 06:00 PM" size="200" required="true" default="HH:mm" hint="Please enter a format" />
                <field name="note11" type="note" label="You will find the complete list of possible date and time format here : &lt;a href='https://momentjs.com/docs/#/displaying/' target='blank'&gt;https://momentjs.com/docs/#/displaying/&lt;/a&gt; " class="alert alert-info"/>
            </fieldset>
        </fields>
    </config>
    <updateservers>
        <server type="extension" name="mod_sagenda_calendar">
            https://raw.githubusercontent.com/Sagenda/joomla/master/mod_sagenda_calendar_update.xml
        </server>
    </updateservers>
</extension>