Hello,
I made a fresh install of an OJS 3.1.1.4. on a Linux Ubuntu server. I installed several plugins and everything went well.
Then I moved the install to a cPanel hosting company. When I want to install, or upgrade any plugin, I click the button and noting happens, but if I refresh the page I get the following error: “The uploaded plugin archive does not contain a folder that corresponds to the plugin name.”
I searched in several plugin sub-folders in the installation and I couldn’t find the name of the plugin I was trying to install (in my case - the backup) plugin.
I searched the forum and I found two possible situations. One - tar is not in the correct path, and the permissions. I checked with the hosting company and tar is in the correct path specified in config file. The permissions are as in the readme file. public, cache, … and files folders have file/folders with write permissions.
I even tried with write permissions on plugin folder, but to no avail.
The hosting company tried to disable mod security, but it didn’t help.
I showed the errors, and stack-trace (in config.inc.php), and I looked in the logs. I found the following:
websitePHP Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /lib/pkp/lib/adodb/adodb.inc.php on line 1003
websitePHP Warning: Declaration of PKPUsageEventPlugin::getEnabled() should be compatible with LazyLoadPlugin::getEnabled($contextId = NULL) in /lib/pkp/plugins/generic/usageEvent/PKPUsageEventPlugin.inc.php on line 0
websitePHP Warning: Declaration of AllowedUploadsPlugin::register($category, $path) should be compatible with LazyLoadPlugin::register($category, $path, $mainContextId = NULL) in /plugins/generic/allowedUploads/AllowedUploadsPlugin.inc.php on line 0
websitePHP Warning: Declaration of CustomHeaderPlugin::register($category, $path) should be compatible with LazyLoadPlugin::register($category, $path, $mainContextId = NULL) in /plugins/generic/customHeader/CustomHeaderPlugin.inc.php on line 0
websitePHP Warning: Declaration of CustomBlockPlugin::getBlockContext() should be compatible with BlockPlugin::getBlockContext($contextId = NULL) in /plugins/generic/customBlockManager/CustomBlockPlugin.inc.php on line 0
websitePHP Warning: Declaration of CustomBlockPlugin::getEnabled() should be compatible with BlockPlugin::getEnabled($contextId = NULL) in /plugins/generic/customBlockManager/CustomBlockPlugin.inc.php on line 0
websitePHP Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /lib/pkp/lib/adodb/adodb.inc.php on line 1003
I have no clue why on plugin install in cPanel is not working, while on Linux I have no problem.