Fixing the Joomla! 3.4.0 extensions installer bug

in Development on 26 Feb 2015 having 9

After updating to Joomla! 3.4.0, you may have encountered some extensions that did install in previous Joomla! versions are now throwing the message:

Error
Archive does not exist
Unable to find install package

What is causing the error

Joomla! 3.4.0 introduced a new security feature, scanning uploaded files for potential dangerous code. For example, it scans uploaded archives for PHP code - something that should not be done in the Extensions Installer (com_installer). Fortunately, Joomla! contributors already debugged and fixed this (pull request here) so if you don't want to wait until 3.4.1 is released, read this blog post.

Workarounds


  • Using 'Install from Directory' - by unzipping the archive in a temporary path, pasting that path in the 'Install Directory' field and clicking on 'Install'.
  • Using 'Install from URL' - although for commercial extensions this isn't viable since most of them will not have directly accessible URL for the archive. You can upload the archive on your website and point it in the 'Install URL' field (for example, upload 'com_my_extension.zip' in the root of your website and just type in http://www.your_website.com/com_my_extension.zip). Remember to delete it after you're done.
  • Applying the fix manually. Read on below for instructions on how to do that.

Fixing it manually


Applying the fix manually can be done with minimum knowledge:

  • Open your FTP account, connect to your website and go to the administrator/components/com_installer/models/ folder. FileZilla is a good FTP client if you're not familiar with them. Your hosting provider should provide you with a username and password to connect to your website's FTP.
  • Create a backup of install.php (download it to your computer) just in case.
  • Edit install.php (on your website) with a text editor. If you don't have one, I strongly suggest you check out Notepad++.
  • Replace:
     
          $userfile = $input->files->get('install_package', null, 'array');
     
    With:
     
          $userfile = $input->files->get('install_package', null, 'raw');
     
    Scroll down the file to find:
     
          JFile::upload($tmp_src, $tmp_dest);
     
    And replace this one with:
     
          JFile::upload($tmp_src, $tmp_dest, false, true);
     
  • Just save the file - if you're using FileZilla it will automatically prompt you to re-upload the modified file. If not, you'll need to upload it manually.

After the changes are done, try again to install the extension you were having trouble with - it should work properly. If not and another error message comes up (hurray!), we do have a guide to debug the installation of Joomla! extensions.

If you encounter issue on installing our joomla extensions or joomla templates please feel free to open a ticket to our support department.

Subscribe for more tips and tricks


Subscribe to our blog

Found this article interesting? Subscribe to our blog for more.



Gravatar
Alexandru Plapana - 27.01.2016 (04:31:41)

Quote :
I was trying to go through the instructions on top. I did login using my ftp bt i was using "coreftplit e". In my FTP accont I failed to to see administrator/components/com_installer/models/ folder.


Why not update your Joomla! installation to a more recent version instead ? The issue has been addressed in more recent Joomla! versions.

Quote
0

Gravatar
Ghetto Creature - 26.01.2016 (09:45:50)
Error Archive does not exist Unable to find install package

I was trying to go through the instructions on top. I did login using my ftp bt i was using "coreftplit e". In my FTP accont I failed to to see administrator/components/com_installer/models/ folder.

Quote
0

Gravatar
Alexandru Plapana - 14.12.2015 (03:55:17)
@Will

Not sure what is wrong with your Joomla! installation, but the current latest version is 3.4.5.

Quote
0

Gravatar
Alexandru Plapana - 09.06.2015 (03:27:33)
@Shawn

Have you tried installing using the "Install from directory" option ? Simply unzip the installation pack, use your FTP client to upload it to a temporary location, point out the installer to the unzipped location and click "Install".

Quote
-1

Gravatar
Shawn Thomas - 08.06.2015 (09:06:33)
Installing Helix on joomla 3.4.1

As Peter mention in the above post,I have try these method, im using joomla 3.4.1.,however when i tried to upload the helix3_template_j3,the system state the following error Error
Archive does not exist

Unable to find install package
and warning stating message stating JFTP::login: Unable to login

JFTP: :store: Unable to use passive mode

: Failed to move file!

Quote
0

Gravatar
Alexandru Plapana - 24.04.2015 (07:44:32)
@Peter

This has nothing to do with Joomla!. RSForm! (free) is not Joomla! 3 compatible. Its compatibility is listed on the product page:

https://www.rsjoomla.com/joomla-extensions/rsform.html

Quote
0

Gravatar
Peter - 24.04.2015 (07:04:42)
Unable to install on Joomla 3.4.1

We are not having any luck installing the free RSForm package on a Joomla 3.4.1 system. I've tried all the suggestions here. The patch that is recommend is already in the system, it is using "Raw" format.

It is not a general extension installation problem as I was able to install Akeeba Core after the attempt to install RSForm so I can move the site to a local test environment.

Quote
1

Gravatar
Alexandru Plapana - 06.03.2015 (03:31:21)

Unfortunately we don't have a release date for 3.4.1, but it shouldn't take long now...

Quote
1

Gravatar
Will Keyworth - 05.03.2015 (18:46:02)
when is that update coming out?

when i go to update, it still says 3.4.0

Quote
1

1000 Characters left