简体   繁体   English

自定义组件未在joomla 1.5.x中正确安装

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

recently i have made a custom blog component for our client, in my localhost it works perfectly now i have to prepare a package for this component for our client to give him this component. 最近我为我们的客户端制作了一个自定义博客组件,在我的localhost中它完美地工作现在我必须为这个组件准备一个包给我​​们的客户端给他这个组件。 I prepare the package according to this link 我根据这个链接准备包裹

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

HERE is XML file 这是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>

Here is the screenshoot for component directory structure: 以下是组件目录结构的屏幕截图: 在此输入图像描述

But after converting in zip file, when i tried to install my component i got the strange ERROR: 但在转换为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

I don't know what is missing, i installed separate joomla1.5.x and then tried to install on that then getting stuck in this problem, can anyone please help me to rid these errors?? 我不知道缺少什么,我安装了单独的joomla1.5.x,然后尝试安装,然后陷入这个问题,任何人都可以帮我摆脱这些错误?

I am using joomla 1.5.26 cause my client need in this version... 我正在使用joomla 1.5.26因为我的客户需要这个版本...

You included twice 你包括两次

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

in administration section. 在行政部门。

And the "strange" error actually told you what was wrong 而“奇怪的”错误实际上告诉你出了什么问题

Please initially check whether: 请先检查是否:

  • all of the files (not including XML files) are correctly listed in the extension.xml file and there are no duplicate entries 所有文件(不包括XML文件)都在extension.xml文件中正确列出,并且没有重复的条目

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM