I trying to install plugins on OJS 3.1.1.2 from the plugin gallery but nothing happens.
When I click on one and click the ‘install’ button, nothing happens.
I’d check the log and get this error:
[Thu Nov 22 11:58:24.654251 2018] [:error] [pid 14244:tid 2060] [client ::1:58149] PHP Fatal error: Call to a member function getProductType() on string in C:\xampp\htdocs\ojs\lib\pkp\classes\plugins\PluginHelper.inc.php on line 107, referer: http://localhost/ojs/index.php/journal1/management/settings/website
Hi @astevens,
I’m testing ojs-312-3 on windows and I’m getting the same error. I am have site and journal admin role
Here the stack trace
[07-Dec-2019 17:34:57 UTC] PHP Fatal error: Uncaught Error: Call to a member function getProductType() on string in C:\wamp64\www\ojs-312-3\lib\pkp\classes\plugins\PluginHelper.inc.php:204
Stack trace:
#0 C:\wamp64\www\ojs-312-3\lib\pkp\controllers\grid\plugins\PluginGalleryGridHandler.inc.php(287): PluginHelper->upgradePlugin('generic', 'openAIRE', NULL, 'The tar command...')
#1 C:\wamp64\www\ojs-312-3\lib\pkp\controllers\grid\plugins\PluginGalleryGridHandler.inc.php(236): PluginGalleryGridHandler->installPlugin(Array, Object(Request), true)
#2 C:\wamp64\www\ojs-312-3\lib\pkp\classes\core\PKPRouter.inc.php(390): PluginGalleryGridHandler->upgradePlugin(Array, Object(Request))
#3 C:\wamp64\www\ojs-312-3\lib\pkp\classes\core\PKPComponentRouter.inc.php(257): PKPRouter->_authorizeInitializeAndCallRequest(Array, Object(Request), Array)
#4 C:\wamp64\www\ojs-312-3\lib\pkp\classes\core\Dispatcher.inc.php(134): PKPComponentRouter->route(Object(Request))
#5 C:\wamp64\www\ojs-312-3\lib\pkp\classes\core\PKPApplication.inc.php(252): Dispatcher->dispatch(Object(Requ in C:\wamp64\www\ojs-312-3\lib\pkp\classes\plugins\PluginHelper.inc.php on line 204
The exact path dependence on the server operating system and specifications. This is a default location for Linux systems. If it’s shared hosting, you can ask your provider.
tar is responsible for unpacking archived plugins, thus I think it’s better to ensure that the system has the correct path to it.