4

さて、問題は..私のjoomlaモジュールが正しくインストールされていません。autobase.xmlの元のコンテンツは、HelloWorldのjoomla2.5ドキュメントに基づいています。com_autobase.zipにadminsiteという2つのディレクトリがあります。何らかの理由で、サイトのファイルが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

これは、 siteディレクトリにあるがadminディレクトリにあるファイル/フォルダを見つけようとしていることを示しています。サイトと管理者から拡張機能ファイルを取得して正しい場所に転送するにはどうすればよいですか?joomlaCMSで。

サイトフォルダ'com_autobase.zip'(definitions.phpが表示されているので、Windowsからプレビューします)。

サイトWindowsインストーラー
(出典:iforce.co.nz

インストーラーのダウンロードはこちらから入手できます

4

1 に答える 1

3

OKはあなたの問題の解決策を見つけました。adminフォルダ内でファイルを削除し、フォルダにファイルをautobase.xml追加します。Joomlaは空のフォルダをインストールするのが好きではないと思います。これを実行すると、正常にインストールされます。index.htmlcache

よろしく。

于 2012-06-28T13:30:24.777 に答える