簡體   English   中英

自定義組件未在joomla 1.5.x中正確安裝

[英]custom component not installed correctly in joomla 1.5.x

最近我為我們的客戶端制作了一個自定義博客組件,在我的localhost中它完美地工作現在我必須為這個組件准備一個包給我​​們的客戶端給他這個組件。 我根據這個鏈接准備包裹

http://docs.joomla.org/Components:xml_installfile

這是XML文件

<?xml version="1.0"?>
<install type="component" version="1.5.0">
  <name>customblog</name>
  <author>Jogesh Sharma</author>
  <creationDate>March 2013</creationDate>
  <copyright>Copyright (C) 2013 Open Source Matters. All rights reserved.</copyright>
  <license>http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL</license>
  <authorEmail>hello@webomnizz.com</authorEmail>
  <authorUrl>http://webomnizz.com</authorUrl>
  <version>1.5.0</version>
  <description>This component manage all the Blog sections!</description>
  <installfile>install.customblog.php</installfile>
  <uninstallfile>uninstall.customblog.php</uninstallfile>
  <files>
      <filename>customblog.php</filename>
      <filename>customblog.html.php</filename>
      <filename>images/style.css</filename>
      <filename>images/plus-icon.png</filename>
      <filename>images/twitter-icon.png</filename>
      <filename>images/facebook-icon.png</filename>
  </files>

  <install>
      <sql>
          <file driver="mysql">install.mysql.sql</file>
      </sql>
  </install>

  <uninstall>
      <sql>
          <file driver="mysql">uninstall.mysql.sql</file>
      </sql>
  </uninstall>


  <administration>
      <menu img="js/ThemeOffice/component.png">Blog Component</menu>
      <submenu>
          <menu link="option=com_customblog">Blog</menu>
      </submenu>

      <files>
          <filename>install.mysql.sql</filename>
          <filename>uninstall.mysql.sql</filename>
          <filename>admin.customblog.php</filename>
          <filename>admin.customblog.html.php</filename>
          <filename>toolbar.customblog.php</filename>
          <filename>toolbar.customblog.html.php</filename>
          <filename>admin.customblog.php</filename>
          <filename>index.html</filename>
          <filename>tables/customblog.php</filename>
      </files>
  </administration>
</install>

以下是組件目錄結構的屏幕截圖: 在此輸入圖像描述

但在轉換為zip文件后,當我嘗試安裝我的組件時,我得到了奇怪的錯誤:

JInstaller::install: There is already a folder called 'C:\wamp\www\joom_new\administrator\components\com_customblog\admin.customblog.php'. Please initially check whether:
• the Extension is already installed
• the file names in the XML file are spelled correctly
• there are no XML files listed inside the extension.xml file
• all of the files (not including XML files) are correctly listed in the extension.xml file and there are no duplicate entries
• there is an empty folder listed from a previous installation attempt

我不知道缺少什么,我安裝了單獨的joomla1.5.x,然后嘗試安裝,然后陷入這個問題,任何人都可以幫我擺脫這些錯誤?

我正在使用joomla 1.5.26因為我的客戶需要這個版本...

你包括兩次

<filename>admin.customblog.php</filename>

在行政部門。

而“奇怪的”錯誤實際上告訴你出了什么問題

請先檢查是否:

  • 所有文件(不包括XML文件)都在extension.xml文件中正確列出,並且沒有重復的條目

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM