Invalid plugins

I’m trying to install several new plugins to our OMEKA instance: Contribution, GuestUser, and Dropbox (all of which I downloaded from OMEKA). I believe I imported them correctly using the FTP, but when I login to the backend of our site and go to the plugins page, those options show up but are unable to be activated. The error messages say: “This is not a valid plugin.”

Does anyone know why these plugins are invalid or have any solutions for getting these to validate?

This might happen if you are running an older version of the core software.

What version are you using?

We have version 3.1.2.

Sharon, just an idea here: it could be worth differentiate the messages displayed, adding some information for the user about what is causing the problem, if possible.

So, “wrong version” can’t cause this message, it already has its own specific message.

“Not a valid plugin” happens when we can’t load the plugin files within the folder that we’re expecting to be there. Typically this would mean either that the directory structure of the plugin is wrong (like, there’s an extra blank folder that shouldn’t be there, or the name is wrong) or there’s a problem with the permissions on the plugin folder so we can’t read the files inside.

It’s tough for us to be more specific about this particular error.

Thank you for this suggestion. I’ll take a look at the directory structure.

@jflatnes This is what the folder hierarchy looks like on my end:

So as one example, the folder name for the plugin you’re showing should be “GuestUser” (no space). It looks like you might have some other problem there also maybe, because what should be folders inside that (like “controllers,” “languages,” etc.) are displaying here as files, not folders.

You may want to just delete these problematic ones and go straight from the zip files available at Omeka Classic - Plugins. Those zips have the folder structure all correct with the right names and everything.

Huh. I thought there’s where I got the plugins, so I am not sure what I did. I’ll try again from scratch. Thank you!

Side note: the folders with the file icon might be folders, after all, just displayed with a wrong icon, as they are all missing an extension.

I figured it out! Plugins are now valid. I think previously I had extracted the zip files before upload, which led to weird things with the folder hierarchies. Thanks for the help.

1 Like