JInstaller Cannot find Joomla XML setup file

Installing a new component into Joomla I encountered the following error.

JInstaller: :Install: Cannot find Joomla XML setup file

I had recently updated the website to Joomla version Joomla! 3.2.0.alpha Alpha [ Ember ].

Expecting the issue to be related to running an alpha version of Joomla and that the package which I was uploading was designed for an earlier version. I looked to changing the XML manifest file.

The newer version of Joomla requires the the install tag in the manifest file to be replaced by extension.

The install tag appears twice in the file, wrapping the main content of the file:

<?xml version="1.0" encoding="utf-8"?>
<install method="upgrade" type="component" version="1.5.0">
<name>...
...
</install>

Having made the changes I tried to upload the file again. This time I got the error

There was an error uploading this file to the server.

Comparing this extension with another extension which had uploaded OK I found that the extension tag was missing a parameter client=”site”. This was added and the upload tried once more.

To dictate that the extension is to be used for the administrator side of the website the parameter client=”administrator” is used.

Joomla is also sensitive to the naming of the manifest file. Renaming of the file to match the enclosing zip file was also required.

There is further information about Joomla’s manifest files on the documentation website.

I also found that I needed to extend the permitted file upload size as described in this article There was an error uploading this file to the server.