Problem Uploading a plugin

Hello, i have a problem when i try to upload the plugin Plum Analytics V1.4.0-1.
Im using php-8.2.17


In the php log i see this:

[02-Apr-2024 15:02:49 America/Caracas] ojs2: 404 Not Found
[02-Apr-2024 15:02:36 America/Caracas] ojs2: 404 Not Found
[02-Apr-2024 15:02:32 America/Caracas] ojs2: 404 Not Found
[02-Apr-2024 15:02:29 America/Caracas] ojs2: 404 Not Found
[02-Apr-2024 15:02:24 America/Caracas] ojs2: 404 Not Found
[02-Apr-2024 15:02:15 America/Caracas] ojs2: 404 Not Found
[02-Apr-2024 15:02:12 America/Caracas] ojs2: 404 Not Found
[02-Apr-2024 15:02:07 America/Caracas] ojs2: 404 Not Found
[02-Apr-2024 15:02:00 America/Caracas] ojs2: 404 Not Found
[02-Apr-2024 15:01:52 America/Caracas] ojs2: 404 Not Found
[02-Apr-2024 15:01:46 America/Caracas] ojs2: 404 Not Found
[02-Apr-2024 15:01:43 America/Caracas] ojs2: 404 Not Found
[02-Apr-2024 15:01:40 America/Caracas] ojs2: 404 Not Found
[02-Apr-2024 15:01:33 America/Caracas] ojs2: 404 Not Found
[02-Apr-2024 15:01:18 America/Caracas] ojs2: 404 Not Found
[02-Apr-2024 15:01:12 America/Caracas] ojs2: 404 Not Found
[02-Apr-2024 15:01:02 America/Caracas] ojs2: 404 Not Found
[02-Apr-2024 15:00:42 America/Caracas] ojs2: 404 Not Found
[02-Apr-2024 15:00:37 America/Caracas] ojs2: 404 Not Found
[02-Apr-2024 14:59:22 America/Caracas] ojs2: 404 Not Found
[02-Apr-2024 14:59:20 America/Caracas] ojs2: 404 Not Found
[02-Apr-2024 14:58:55 America/Caracas] ojs2: 404 Not Found
[02-Apr-2024 14:58:36 America/Caracas] ojs2: 404 Not Found
[02-Apr-2024 14:58:33 America/Caracas] ojs2: 404 Not Found
[02-Apr-2024 14:58:16 America/Caracas] ojs2: 404 Not Found
[02-Apr-2024 14:58:07 America/Caracas] ojs2: 404 Not Found
[02-Apr-2024 14:57:59 America/Caracas] ojs2: 404 Not Found
[02-Apr-2024 14:57:56 America/Caracas] ojs2: 404 Not Found
[02-Apr-2024 14:57:15 America/Caracas] ojs2: 404 Not Found
[02-Apr-2024 14:56:45 America/Caracas] ojs2: 404 Not Found
[02-Apr-2024 14:56:34 America/Caracas] ojs2: 404 Not Found
[02-Apr-2024 14:56:18 America/Caracas] ojs2: 404 Not Found
[02-Apr-2024 14:56:17 America/Caracas] ojs2: 404 Not Found
[02-Apr-2024 14:55:36 America/Caracas] ojs2: 404 Not Found
[02-Apr-2024 14:55:34 America/Caracas] ojs2: 404 Not Found
[02-Apr-2024 14:55:22 America/Caracas] ojs2: 404 Not Found
[02-Apr-2024 14:54:10 America/Caracas] ojs2: 404 Not Found
[02-Apr-2024 14:54:10 America/Caracas] PHP Warning: Undefined array key “issueId” in /home/ojs/public_html/plugins/generic/citationStyleLanguage/pages/CitationStyleLanguageHandler.php on line 163
[02-Apr-2024 14:53:59 America/Caracas] ojs2: 404 Not Found
[02-Apr-2024 14:53:49 America/Caracas] ojs2: 404 Not Found
[02-Apr-2024 14:53:15 America/Caracas] ojs2: 404 Not Found
[02-Apr-2024 14:53:12 America/Caracas] ojs2: 404 Not Found
[02-Apr-2024 14:53:12 America/Caracas] ojs2: 404 Not Found
[02-Apr-2024 14:52:54 America/Caracas] ojs2: 404 Not Found
[02-Apr-2024 14:52:52 America/Caracas] ojs2: 404 Not Found
[02-Apr-2024 14:52:44 America/Caracas] ojs2: 404 Not Found
[02-Apr-2024 14:52:38 America/Caracas] ojs2: 404 Not Found
[02-Apr-2024 14:52:33 America/Caracas] ojs2: 404 Not Found
[02-Apr-2024 14:52:33 America/Caracas] PHP Warning: Undefined array key “issueId” in /home/ojs/public_html/plugins/generic/citationStyleLanguage/pages/CitationStyleLanguageHandler.php on line 163
[02-Apr-2024 14:52:02 America/Caracas] ojs2: 404 Not Found
[02-Apr-2024 14:51:51 America/Caracas] ojs2: 404 Not Found
[02-Apr-2024 14:51:41 America/Caracas] ojs2: 404 Not Found
[02-Apr-2024 14:51:30 America/Caracas] ojs2: 404 Not Found
[02-Apr-2024 14:51:30 America/Caracas] ojs2: 404 Not Found
[02-Apr-2024 14:51:08 America/Caracas] ojs2: 404 Not Found
[02-Apr-2024 14:50:36 America/Caracas] ojs2: 404 Not Found
thrown in /home/ojs/public_html/lib/pkp/classes/plugins/Hook.php on line 81
#21 {main}
#20 /home/ojs/public_html/index.php(21): PKP\core\PKPApplication->execute()
#19 /home/ojs/public_html/lib/pkp/classes/core/PKPApplication.php(388): PKP\core\Dispatcher->dispatch()
#18 /home/ojs/public_html/lib/pkp/classes/core/Dispatcher.php(165): PKP\core\PKPComponentRouter->route()
#17 /home/ojs/public_html/lib/pkp/classes/core/PKPComponentRouter.php(291): PKP\core\PKPRouter->_authorizeInitializeAndCallRequest()
#16 /home/ojs/public_html/lib/pkp/classes/core/PKPRouter.php(334): call_user_func()
#15 [internal function]: PKP\controllers\grid\plugins\PluginGridHandler->saveUploadPlugin()
#14 /home/ojs/public_html/lib/pkp/classes/controllers/grid/plugins/PluginGridHandler.php(400): PKP\controllers\grid\plugins\form\UploadPluginForm->execute()
#13 /home/ojs/public_html/lib/pkp/controllers/grid/plugins/form/UploadPluginForm.php(95): PKP\plugins\PluginHelper->installPlugin()
#12 /home/ojs/public_html/lib/pkp/classes/plugins/PluginHelper.php(107): PKP\plugins\PluginHelper->extractPlugin()
#11 /home/ojs/public_html/lib/pkp/classes/plugins/PluginHelper.php(81): PKP\plugins\PluginHelper->PKP\plugins{closure}()
#10 /home/ojs/public_html/lib/pkp/classes/plugins/PluginHelper.php(141): APP\install\Install->__construct()
#9 /home/ojs/public_html/classes/install/Install.php(40): PKP\install\Installer->__construct()
#8 /home/ojs/public_html/lib/pkp/classes/install/Installer.php(126): PKP\plugins\PluginRegistry::loadAllPlugins()
#7 /home/ojs/public_html/lib/pkp/classes/plugins/PluginRegistry.php(177): array_reduce()
#6 [internal function]: PKP\plugins\PluginRegistry::PKP\plugins{closure}()
#5 /home/ojs/public_html/lib/pkp/classes/plugins/PluginRegistry.php(177): PKP\plugins\PluginRegistry::loadCategory()
#4 /home/ojs/public_html/lib/pkp/classes/plugins/PluginRegistry.php(121): array_walk_recursive()
#3 [internal function]: PKP\plugins\PluginRegistry::PKP\plugins{closure}()
#2 /home/ojs/public_html/lib/pkp/classes/plugins/PluginRegistry.php(121): PKP\plugins\PluginRegistry::register()
#1 /home/ojs/public_html/lib/pkp/classes/plugins/PluginRegistry.php(76): PlumAnalyticsPlugin->register()
#0 /home/ojs/public_html/plugins/generic/plumAnalytics/PlumAnalyticsPlugin.inc.php(86): PKP\plugins\Hook::register()
Stack trace:
[02-Apr-2024 14:50:34 America/Caracas] PHP Fatal error: Uncaught TypeError: PKP\plugins\Hook::register(): Argument #2 ($callback) must be of type callable, array given, called in /home/ojs/public_html/plugins/generic/plumAnalytics/PlumAnalyticsPlugin.inc.php on line 86 and defined in /home/ojs/public_html/lib/pkp/classes/plugins/Hook.php:81
[02-Apr-2024 14:50:33 America/Caracas] ojs2: 404 Not Found
[02-Apr-2024 14:50:25 America/Caracas] ojs2: 404 Not Found
[02-Apr-2024 14:50:13 America/Caracas] ojs2: 404 Not Found
[02-Apr-2024 14:50:13 America/Caracas] PHP Warning: Undefined array key “issueId” in /home/ojs/public_html/plugins/generic/citationStyleLanguage/pages/CitationStyleLanguageHandler.php on line 163
thrown in /home/ojs/public_html/lib/pkp/classes/plugins/Hook.php on line 81
#21 {main}
#20 /home/ojs/public_html/index.php(21): PKP\core\PKPApplication->execute()
#19 /home/ojs/public_html/lib/pkp/classes/core/PKPApplication.php(388): PKP\core\Dispatcher->dispatch()
#18 /home/ojs/public_html/lib/pkp/classes/core/Dispatcher.php(165): PKP\core\PKPComponentRouter->route()
#17 /home/ojs/public_html/lib/pkp/classes/core/PKPComponentRouter.php(291): PKP\core\PKPRouter->_authorizeInitializeAndCallRequest()
#16 /home/ojs/public_html/lib/pkp/classes/core/PKPRouter.php(334): call_user_func()
#15 [internal function]: PKP\controllers\grid\plugins\PluginGridHandler->saveUploadPlugin()
#14 /home/ojs/public_html/lib/pkp/classes/controllers/grid/plugins/PluginGridHandler.php(400): PKP\controllers\grid\plugins\form\UploadPluginForm->execute()
#13 /home/ojs/public_html/lib/pkp/controllers/grid/plugins/form/UploadPluginForm.php(95): PKP\plugins\PluginHelper->installPlugin()
#12 /home/ojs/public_html/lib/pkp/classes/plugins/PluginHelper.php(107): PKP\plugins\PluginHelper->extractPlugin()
#11 /home/ojs/public_html/lib/pkp/classes/plugins/PluginHelper.php(81): PKP\plugins\PluginHelper->PKP\plugins{closure}()
#10 /home/ojs/public_html/lib/pkp/classes/plugins/PluginHelper.php(141): APP\install\Install->__construct()
#9 /home/ojs/public_html/classes/install/Install.php(40): PKP\install\Installer->__construct()
#8 /home/ojs/public_html/lib/pkp/classes/install/Installer.php(126): PKP\plugins\PluginRegistry::loadAllPlugins()

Hi @Jesus_A_Montiel_E,

I think there’s a good chance that this plugin isn’t compatible with 3.4 - how did you upload it - was it in the plugin gallery?

-Roger
PKP Team

No, i download from the github repository of the plugin and upload it with the option in the ojs website the file in .zip or tar.gz but stuck or fail in error 500

Hi @Jesus_A_Montiel_E,

Thanks for clarifying. The best option is to always install from the plugin gallery. If you choose to install manually, you run the risk that the plugin has not been tested to be compatible with the version of OJS that you’re running - that appears to be the case with this plugin. It has only been tested to be compatible with OJS 3.3 - not 3.4. If you want to make use of it, you may have to wait until the developers test it and release a new version that is compatible with 3.4.

-Roger
PKP Team

the problema with the plugin gallery is this plugin doesnt apper in the list

Hi @Jesus_A_Montiel_E,

That’s because it hasn’t been tested to be compatible with the version of OJS that you’re using. The plugin gallery includes vetted/tested plugins. If a plugin doesn’t appear in the gallery, while it could be installed manually, that is risky, as it might not work, and could potentially cause your OJS instance to crash, so uploading manually must be done with caution, and is not always guaranteed to work.

-Roger
PKP Team