Hi there, Just tried this module on a site that did not have it installed previously and got the following error messages:

  • Cannot install plugin of type
  • Unable to install img_assist

Looking at the filesystem, I can see that the tar.gz files have been downloaded, but not extracted.

I am also getting the same error on one other site on the same server, but on a third install, it is working (but spewed out warnings which I cannot remember over files already existing...).

CommentFileSizeAuthor
#22 Picture 17.png20.93 KBbigsurs
#22 Picture 19.png35.7 KBbigsurs
#22 Picture 20.png31.54 KBbigsurs

Comments

ari-meetai’s picture

Exact same happening here. Just that with another plugin: swftools

berdir’s picture

The problem is that this module does not exist or does not have D6 compatibility listet at this list:

http://updates.drupal.org/release-history/project-list/all

Plugin Manager does only install modules listed there. So, this is not directly a problem of plugin_manager.

However, plugin_manager should do a better check to see if there is actually a matching row in the database and deny the installation of this module from the beginning.

naheemsays’s picture

erm... ACL IS listed on there... so is Views, so I doubt this is the problem (unless that list has been updated to include those modules since yesterday).

The module it mentions cannot be installed is always the first one in the list of updates selected to install. Removing that from the list just moves to the next one.

This may be a problem with new installs only as for the existing install where it did not work, I did delete all the settings and reinstall the module.

naheemsays’s picture

Just to be on the safe side, I tied to update Views on its own. Still got the same error.

jabapyth’s picture

Status: Active » Postponed (maintainer needs more info)

I think the problem is with the way plugin_manager stores plugin types. Could you inspect your msql database?
look in the table "plugin_manager_taxonomy", where short_name is "views" (or whatever).

naheemsays’s picture

All three "plugin_manager_*" tables are empty in the two installs where I cannot install anything. They do have contents in the third install (which started off as plugin_manager 1.2 without a deletion of the old data) where the updates work but with warnings of duplicate/existing files.

berdir’s picture

Did yo actually load the database with admin/plugin_manager/reload atleast once ?

naheemsays’s picture

Nope - did not know about that function and since both failing installs should have been functioning as a new install, I should not have needed to. Good to know now though and running that first, the updates worked.

Should getting the database/reload not be automated? If so, this is a feature request :P

naheemsays’s picture

Just trying to update Vertical Tabs, but even hitting admin/plugin_manager/reload makes no difference on this occasion

Antinoo’s picture

Priority: Normal » Critical

same issue here, I think it's a critical bug. :(
I'll deep into the source code as soon as possible.

Antinoo’s picture

Since {plugin_manager_taxonomy} is empty, I replaced the $row = db_fetch_array( ... ) line with $row['tag'] = 'modules';, tried to update the feedapi_mapper module and it said "Successfully installed feedapi_mapper".

In fact, however, it doesn't seem the module has been updated.

Antinoo’s picture

In the ftp_plugin_manager_copy_library() function, in ftp.backend.inc file, I simply added a '/' to the beginning of $ftp_path when plugin_manager is guessing the chrooted path:

  // Try to guess which how far in we are chrooted...
  if (empty($ftp_path)) {
    foreach ($local_path AS $index => $value) {
      unset($local_path[$index]);
      if (ftp_nlist($connect, implode('/', $local_path) .'/'. $dir)) {
        $ftp_path = '/' . implode('/', $local_path) .'/'. $dir;           // notice it has been added an initial '/'
        ...

and it's working now: it has correctly updated views, panels and several other modules to their lastest version.

Then, it seems it's a path issue.
Please check it, and sumbit a better solution than mine. ;)

Greetings, Giovanni

jabapyth’s picture

@Antinoo
if that fixed it, weren't you getting an error before about 'Could not guess the ftp directory for drupal.'?

@nbz: are you still getting those errors (and have you updated to the latest CVS version)?

naheemsays’s picture

Are the CVS version and 1.3 not the same?

I manually updated the vertical_tabs module, so I no longer have a test case.

jabapyth’s picture

so all other modules install fine?

--yes the CVS version (and the dev version) are more updated than the latest "stable" version.

naheemsays’s picture

Yes, all others that I have tried do install fine, however, I cannot seem to find the module on a different install when using "Find" (once again using 1.3)

The module is located at http://drupal.org/project/vertical_tabs.

(since the latest dev release was also from the same day, I wrongly assumed they had the same files...)

Antinoo’s picture

@jabapyth: no, it was not giving me that error.

Antinoo’s picture

just for your information, my Drupal installation is at /public_html/.
Without the initial '/', I think plugin_manager was trying to create public_html/sites/all/modules/views/.
Since Drupal index.php is at /public_html/, this maybe means that plugin_manager was trying to create /public_html/public_html/sites/all/modules/views/.
And this resulted in an error (suppressed by the use of @ when calling ftp_mkdir()).

Hope this helps.
Giovanni

jabapyth’s picture

strange -- that shoudn't have failed..... (even though it was wrong)

ari-meetai’s picture

I second this. This seems as a good solution.

ozish’s picture

Version: 6.x-1.3 » 6.x-1.10
Status: Postponed (maintainer needs more info) » Active

I am getting this error on a fresh install of Drupal 6.15, using Plugin Manager 6.x-1.10, when I try to install FCKeditor 6.x-1.4.

Happy to help if you let me know what more information you need.

bigsurs’s picture

StatusFileSize
new31.54 KB
new35.7 KB
new20.93 KB

I get the exact same error reported by ozish after trying to install the latest update of FCKEditor module.

Cannot install plugin of type
Unable to install fckeditor

Now the plugin manager is pretty much unusable because FCKEditor doesn't show up in the module options, but does show up where I can pick the version. This seems to be a bug. See attached screenshots.