4

好的,问题是……我的 joomla 模块安装不正确。autobase.xml 的原始内容基于HelloWorld 的 joomla 2.5 文档。我在 com_autobase.zip 中有两个名为adminsite的目录,由于某些未知原因,站点中的文件没有被传输到Joomla/Components/Com_autobase中。但相反,来自admin的文件同时被传输到Components/com_autobaseAdministrator/Components/com_autobase

管理文件夹“com_autobase.zip”

管理文件夹安装程序
(来源:iforce.co.nz

站点文件夹“com_autobase.zip”

站点文件夹安装程序
(来源:iforce.co.nz

来自“com_autobase”和“com_autobase/admin”的 autobase.xml 内容。

<?xml version="1.0" encoding="utf-8"?>
<!-- $Id: helloworld.xml 14 2009-11-02 18:35:20Z chdemko $ -->
<extension type="component" version="1.6.0" method="upgrade">

<name>AutoBase</name>
<!-- The following elements are optional and free of formatting conttraints -->
<creationDate>July 2012</creationDate>
<authorUrl>http://www.triotech.co.nz</authorUrl>
<copyright>Copyright Info</copyright>
<license>License Info</license>
<!--  The version string is recorded in the components table -->
<version>0.0.24</version>
<!-- The description is optional and defaults to the name -->
<description>This application has been built using PHP in house at Trio Technology Ltd as a third party
application for the AutoBase Car Yard</description>

<install> <!-- Runs on install -->
    <sql>
        <file driver="mysql" charset="utf8">sql/install.mysql.utf8.sql</file>
    </sql>
</install>
<uninstall> <!-- Runs on uninstall -->
    <sql>
        <file driver="mysql" charset="utf8">sql/uninstall.mysql.utf8.sql</file>
    </sql>
</uninstall>
<update> <!-- Runs on update; New in 1.6 -->
    <schemas>
        <schemapath type="mysql">sql/updates/mysql</schemapath>
    </schemas>
</update>

<!-- Site Main File Copy Section -->
<!-- Note the folder attribute: This attribute describes the folder
    to copy FROM in the package to install therefore files copied
    in this section are copied from /site/ in the package -->
<files folder="site">
    <filename>index.html</filename>
    <filename>autobase.php</filename>
    <filename>controller.php</filename>
    <filename>definitions.php</filename>
    <filename>imageController.php</filename>
    <folder>views</folder>
    <folder>js</folder>
    <folder>css</folder>
    <folder>helpers</folder>
    <folder>models</folder>
    <folder>cache</folder>
    <folder>images</folder>
</files>

<administration>
    <!-- Administration Menu Section -->
    <menu>AutoBase!</menu>
    <!-- Administration Main File Copy Section -->
    <!-- Note the folder attribute: This attribute describes the folder
        to copy FROM in the package to install therefore files copied
        in this section are copied from /admin/ in the package -->
    <files folder="admin">
        <!-- Admin Main File Copy Section -->
        <filename>index.html</filename>
        <filename>autobase.php</filename>
        <filename>controller.php</filename>
        <!-- SQL files section -->
        <folder>sql</folder>
        <!-- tables files section -->
        <folder>tables</folder>
        <!-- models files section -->
        <folder>models</folder>
        <!-- views files section -->
        <folder>views</folder>
        <!-- views helpers section -->
        <folder>helpers</folder>
    </files>
</administration>

</extension>

'com_autobase.zip' INSTALLER 包预览

包裹
(来源:iforce.co.nz

但是当我安装打包的 zip 文件时,我收到了这个错误。“文件不存在:admin/definitions.php ”(应该可以预料到,因为该文件位于站点目录中,而不是管理目录中)。

joomla 错误
(来源:iforce.co.nz

这告诉我它试图找到位于站点目录中的文件/文件夹,但使用admin 目录。如何将我的扩展文件从站点和管理员转移到正确的位置?在 joomla CMS 上。

站点文件夹“com_autobase.zip”(从 Windows 预览,正如您看到的定义。php在那里)。

站点窗口安装程序
(来源:iforce.co.nz

可在此处下载安装程序

4

1 回答 1

3

好的,找到了解决您问题的方法。在admin文件夹中,删除autobase.xml文件并将文件添加到index.html文件cache夹中。我认为 Joomla 不喜欢安装空文件夹。完成此操作后,它应该可以正常安装。

问候。

于 2012-06-28T13:30:24.777 回答