Hi @jiri
The Most Likely Cause: PHP [fileinfo] Extension
OJS 3.3 relies on a PHP extension called fileinfo to determine the real MIME type of a file (e.g., to confirm a .tar.gz file is actually application/x-gzip).
If the fileinfo extension is disabled on your server, OJS cannot verify any uploaded file. It rejects the file because it cannot confirm it’s safe. This also explains why the Plugin Gallery fails: OJS downloads the .tar.gz file from the PKP server, tries to validate it using fileinfo, fails, and gives you the exact same error.
Manual Installation - New Installation Plugin
If you still can’t get the uploader to work, you can always install the plugin manually. This method bypasses the upload check entirely.
-
On your local computer, unzip the
.tar.gzfile. You should get a folder (e.g.,quickSubmit,googleAnalytics, etc.). -
Using an FTP/SFTP client (like FileZilla) or your hosting cPanel File Manager, connect to your server.
-
Navigate to your OJS
plugins/directory. -
Inside the
plugins/directory, find the correct sub-directory for your plugin type. (e.g.,generic/,themes/,importexport/). The plugin’s documentation will tell you which one. -
Upload the entire plugin folder (from Step 1) into that directory.
- Example: Upload the
orcidProfilefolder toplugins/generic/so the final path isplugins/generic/orcidProfile/.
- Example: Upload the
-
Go back to your OJS admin dashboard: Site settings > Plugins.
-
Find the new plugin in the list. It will be disabled.
-
Click the Enable checkbox next to it.
Manual Installation - Upgrade Plugins
*Warning: Always backup your database and files, before this progress
- After Replace Plugin Files
- Run Database Upgrade: You must update the database to match the new code.
-
Recommended Method (SSH): Access your server via command line and run:
Bash
php tools/upgrade.php upgradeThis is a safe command. It checks all plugin versions and runs the necessary database scripts for the plugin you just updated.
-
Alternative Method: Set
installed = Offinconfig.inc.phpand execute run upgrade. back toinstalled = Onif finished.
-
For the second time I remind you to always backup the database and files before this process is carried out.
As a further consideration, always update your OJS to the latest version (from 3.3.0.8 to 3.3.0.21), See: MEMO: Keeping your OJS Installation Secure with Upgrades and more