[SOLVED] Install component problems

For Joomla! 1.0 Coding related discussions.
Locked
User avatar
Sergey Romanov
I've been banned!
Posts: 279
Joined: Thu Dec 01, 2005 11:32 am
Location: Kyrgyzstan
Contact:

[SOLVED] Install component problems

Post by Sergey Romanov » Mon Jan 09, 2006 6:47 am

It is second component that meets the same problem.

After I make com_mycomponent.zip file and try to install it, it tells  ERROR: Could not find a Joomla! XML setup file in the package.

But strange is that it is installed without problems on my localhost Joomla! and the same Joomla! version on the hosting return the error.

This is file structure

Code: Select all

+-com_google.zip
|+-com_google
||+-tmpl
|||-index.html
|||-main.html
|||-hello.html
|||-....html
||-admin.google.php
||-google.xml
||-*.google.php
||-admin.google.html.php
Here is my install file

Code: Select all

<?xml version="1.0" ?>
<mosinstall type="component" version="1.0">
  <name>Google</name>
  <creationDate>15/01/2006</creationDate>
  <author>Ñåðãåé Ðîìàíîâ</author>
  <copyright>(C) 2005 Çàùèùåíî.</copyright>
  <license></license>
  <authorEmail>[email protected]</authorEmail>
  <authorUrl>http://www.poisk.kg</authorUrl>
  <version>1.1</version>
  <description>Ýòîò êîìïîíåíò ðàçðàáîòàí ñïåöàëüíî äëÿ ïîèñêà ïî êèðãèçñêèì ñàéòàì</description>
  <files>
    <filename>index.html</filename>
    <filename>google.class.php</filename>
    <filename>google.html.php</filename>
    <filename>google.php</filename>
    <filename>tmpl/index.html</filename>
    <filename>tmpl/hello.html</filename>
    <filename>tmpl/main.html</filename>
    <filename>tmpl/search.html</filename>
  </files>
<!--
  <installfile>install.mycomponent.php</installfile>
  <uninstallfile>uninstall.mycomponent.php</uninstallfile>
-->
  <params>
    <param name="pageclass_sfx" type="text" size="20" default="" label="Page Class Suffix" description="A suffix to be applied to the css classes of the page, this allows individual page styling" />
    <param name="page_title" type="radio" default="1" label="Page Title" description="Show/Hide the Page title">
			<option value="0">Hide</option>
			<option value="1">Show</option>
		</param>
    <param name="key" type="text" size="32" default="" label="Google Key" description="Your Google Key. If you  do not have get new one at http://www.google.com/apis/" />
  </params>
  <administration>
    <menu>Google</menu>
      <submenu>
        <menu task="customize">Customize</menu>
      </submenu>
    <files>
    <filename>index.html</filename>
    <filename>config.php</filename>
    <filename>admin.google.html.php</filename>
    <filename>admin.google.php</filename>
    <filename>toolbar.google.html.php</filename>
    <filename>toolbar.google.php</filename>
    <filename>tmpl/index.html</filename>
    <filename>tmpl/customization.html</filename>
    <filename>tmpl/main.html</filename>
    </files>
  </administration>
</mosinstall>
Last edited by Sergey Romanov on Tue Jan 10, 2006 6:21 am, edited 1 time in total.

DaesDemon
Joomla! Apprentice
Joomla! Apprentice
Posts: 37
Joined: Wed Nov 23, 2005 1:22 pm

Re: Install component problems

Post by DaesDemon » Mon Jan 09, 2006 1:22 pm

probably not a problem, but my mosintall tag have not the version attribute.



is for me


x.x.x

I copyed it from a joomla 1.0.4 component IIRC.

hope this help.

User avatar
Sergey Romanov
I've been banned!
Posts: 279
Joined: Thu Dec 01, 2005 11:32 am
Location: Kyrgyzstan
Contact:

Re: Install component problems

Post by Sergey Romanov » Mon Jan 09, 2006 1:49 pm

This is the error reported
ERROR: Could not find a Joomla! XML setup file in the package.

This do not have to change anything. Though I changed tag and tried. The good thing about XML that if you add unuseful attribut it won't change anything.

The bigest question for me is why I can instal it on my PC and cannot on the server. The only difference is my Win and server *nix

Cann this be the reason?

User avatar
Chris Davenport
Joomla! Ace
Joomla! Ace
Posts: 1370
Joined: Thu Aug 18, 2005 8:57 am
Location: Shrewsbury, Shropshire, United Kingdom

Re: Install component problems

Post by Chris Davenport » Mon Jan 09, 2006 1:56 pm

@Sergey

Not sure if this is the problem or not but the DOMIT XML parser used by Joomla! is quite fussy about correct XML syntax.  If there is an error in the syntax for the component XML file then Joomla! might not recognise it as being XML and give the error message you report (well, maybe!).  Try opening the XML file in a web browser that does basic syntax checking.  Also try replacing your author, copyright and description fields with straight ASCII data.

@DaesDemon,
The version attribute of the tag is intended to indicate the minimum version of Joomla! that the component may run on; however, this has never been implemented (as far as I know) and so the attribute will be ignored.  The tags enclose the version number of the component itself (as reported in the Joomla! list of components page).

Hope this helps.

Regards,
Chris.
Chris Davenport

Davenport Technology Services http://www.davenporttechnology.com/
Lion Coppice http://www.lioncoppice.org/

davidrrm
Joomla! Explorer
Joomla! Explorer
Posts: 251
Joined: Mon Sep 05, 2005 3:50 pm

Re: Install component problems

Post by davidrrm » Mon Jan 09, 2006 1:58 pm

I'm going to vote for file case issues. Your component name in the XML file is "Google" and I'm guessing your XML file is named "google.xml." This makes a difference on *nix machines. Windows is more forgiving.

Kudos for mentioning the differences between the machine that worked and the machine that didn't.

DaesDemon
Joomla! Apprentice
Joomla! Apprentice
Posts: 37
Joined: Wed Nov 23, 2005 1:22 pm

Re: Install component problems

Post by DaesDemon » Mon Jan 09, 2006 2:07 pm

@chris , thanks for info ;)

User avatar
Hackwar
Joomla! Virtuoso
Joomla! Virtuoso
Posts: 3788
Joined: Fri Sep 16, 2005 8:41 pm
Location: NRW - Germany
Contact:

Re: Install component problems

Post by Hackwar » Mon Jan 09, 2006 4:46 pm

When I interpret your schematics correctly, you made a folder com_google inside the zip-file. This is wrong and wont work. You have to put the files into the root of the zip-file.
god doesn't play dice with the universe. not after that drunken night with the devil where he lost classical mechanics in a game of craps.

Since the creation of the Internet, the Earth's rotation has been fueled, primarily, by the collective spinning of English teachers in their graves.

User avatar
Sergey Romanov
I've been banned!
Posts: 279
Joined: Thu Dec 01, 2005 11:32 am
Location: Kyrgyzstan
Contact:

Re: Install component problems

Post by Sergey Romanov » Tue Jan 10, 2006 6:20 am

Ok.

@Chris
The reason was Russian text inside the tags. It is nice for Win but not nice for *nix in some reason. I cheked it by IE and it returned error.

@davidrrm
The "Google" -> "google" do not affect the instalation. The name is treated be strtolower() anyway.

@Hackwar
First I did not but I downloaded few components and I did it because other do it as well. My component have been installed successfully as it is (folder inside the zip) after XML correction.


Locked

Return to “Joomla! 1.0 Coding”