Hi! I’m trying to upload a new plugin from the back-end (customBlockManager). It says:
The uploaded plugin archive does not contain a folder that corresponds to the plugin name.
I tried both *.zip and *.tar.gz. What may I do wrong?
I used links from here:
Releases · pkp/customBlockManager · GitHub
Do we need to install it again since it is already installed?
I tried upgrading it but the same notification comes up
One of our admins deleted this plugin and then tried to reinstall it by using ‘Upload a New Plugin’. But he failed. So we had to install it from the installation folder
The folder name contained within the .zip and .tgz downloads is wrong. It should be just “customBlockManager”, not “customBlockManager-ojs-3_0_1-0” (or similar). Renaming the folder within the compressed file will allow the upload. See also:
Try extracting the contents of the tgz or zip, or opening it in a compatible tool. You should see the contents are in a folder named “translator-ojs-3_0_0-0”.
If you have opened the file in place, (for example, using the zip in Windows Explorer), you can rename this folder within the archive to “translator”.
If you have extracted the files, you can rename the folder to “translator” and then re-compress the extracted files.
Use the new zip or tgz archive with the changed folder name.
This may be something we will want to workaround in the OJS codebase rather than fixing the release packaging process.
Thanks, I’ve seen that post of yours. But in this case the folder name seems to be correct (see the archives here:
Releases · pkp/customBlockManager · GitHub).
When I download a fresh copy, I see the problematic naming:
Ah, yes, sorry, that was my mistake. Now it’s clear.