When trying to install a module, I get the following message after I click the "Continue to Step 2" button:

The selected file /tmp/file2TJYeZ could not be uploaded, because the destination is not properly configured.
http://ftp.drupal.org/files/projects/announcements-6.x-1.2.tar.gz could not be saved.
Could not download announcements

This is in the default site of a multi-site installation. The secondary site works fine.

I have tried changing the upload directory, but that hasn't helped. I don't know what else to try.

Comments

ari-meetai’s picture

Same problem here... No solution... still...

Anonymous’s picture

On your Drupal install, navigate to /admin/settings/file-system. Administer -> Site Configuration -> File System. Try changing the Temporary Directory path to the complete path for the tmp directory.

jabapyth’s picture

It looks like you don't have permissions for the /tmp/ directory, which doesn't make much sense....try changing your temp path as Joshua suggested.

-- here's an example of a similar issue that people had, and #13 claims to have fixed it: #62749

Ken Knowles’s picture

Yes, that is one of the things I tried, but it didn't help. I can upload files when I create a node, but the Plugin Manager is unable to upload files.

Ken Knowles’s picture

Version: 6.x-1.5 » 6.x-1.7
Component: Code » Miscellaneous
Status: Active » Fixed

I found the problem. When I updated my core Drupal modules, I accidentally deleted the cache and extraction folders (plugin_manager_cache and plugin_manager_extraction). I added these folders and the plugin_manager worked again.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

porg’s picture

My recommendation for this issue: Check your web server environment and its permissions, if all related Drupal settings are checked as correct!

IN DETAIL:

I am using Plugin Manager (PM) 6.x-1.11 within Drupal 6.22 within MAMP 1.9 on Mac OS X 10.6.8, and enabled Mac OS X's built-in FTP service at: System preferences > Sharing > Enabled File Sharing > FTP > through which I made MAMP's htdocs folder available.

I triple checked everything:
- Plugin Manager's settings
- Drupal's File System settings
- Permissions of the affected directories
- FTP daemon (was reachable

All seemed correct, but nevertheless I never even got until the FTP upload part, as httpd / PHP seemed to have had trouble even saving the download to the temporary directory, before uploading to the Drupal installation via FTP, as this error message indicated:

http://ftp.drupal.org/files/projects/moduleXYZ-VersionNumber could not be saved.
Could not download moduleXYZ.

And I did not even have an input for a password, only username and host. Thought I may have a misbehaving PM, tried all sorts of combined "username:password" entries into the username field. But retrospectively, it got clear that this was not an FTP issue, but that the issue started earlier: httpd / php not being able to save the externally fetched download to the temporary directory, that is a folder entitled "plugin_manager_cache" within your files directory, as defined in Drupal's File System settings. And no worries, contrary to what #5 writes, this directory gets auto-created if not there already, provided of course that your whole permissions stuff is correct.

What has helped me? I reinstalled my web environment MAMP, then restored the database, drupal files, and apache config. And then PM suddenly worked!!! So it must have been some corrupted files/directories or their permissions!

So please check the permissions of your web environment, probably the most likely reason for your issue.