Plugin Gallery Dont work

It’s hard for me to say what is happening here. The error occurs when OJS tries to retrieve version of one of the plugins. It seems that you need to check version.xml file for each of them to check where it is missing or invalid. You can see that it contains xml tags, and each of them should have specific value. For example, application should correspond to a plugin’s folder name, release - to a current version, class goes for a plugin’s main class (php file in the plugin’s root). You can find version,xml inside every plugin in the correspondent folder.

Also, I’d check the database. versions table contains this info (major, minor… columns).

Can you also specify what OJS version you are using and when this error firstly occurred. Perhaps, after installation of a specific plugin?

1 Like

Hi, Im still trying to know why my gallery dont upload plugins.

this is the last error_log

I hope you can see some thing to correct

[05-Dec-2018 01:25:00 UTC] ojs2: 404 Not Found
[05-Dec-2018 01:25:33 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Smarty has a deprecated constructor in /home/ipao/public_html/lib/pkp/lib/vendor/smarty/smarty/libs/Smarty.class.php on line 64
[05-Dec-2018 01:25:33 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; ADODB_Cache_File has a deprecated constructor in /home/ipao/public_html/lib/pkp/lib/adodb/adodb.inc.php on line 263
[05-Dec-2018 01:25:33 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; ADOConnection has a deprecated constructor in /home/ipao/public_html/lib/pkp/lib/adodb/adodb.inc.php on line 359
[05-Dec-2018 01:25:33 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; ADORecordSet has a deprecated constructor in /home/ipao/public_html/lib/pkp/lib/adodb/adodb.inc.php on line 2921
[05-Dec-2018 01:25:33 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; ADORecordSet_array has a deprecated constructor in /home/ipao/public_html/lib/pkp/lib/adodb/adodb.inc.php on line 3939
[05-Dec-2018 01:25:33 UTC] PHP Warning: Declaration of PKPUsageEventPlugin::getEnabled() should be compatible with LazyLoadPlugin::getEnabled($contextId = NULL) in /home/ipao/public_html/lib/pkp/plugins/generic/usageEvent/PKPUsageEventPlugin.inc.php on line 386
[05-Dec-2018 01:25:33 UTC] PHP Warning: Declaration of TexturePlugin::register($category, $path) should be compatible with LazyLoadPlugin::register($category, $path, $mainContextId = NULL) in /home/ipao/public_html/plugins/generic/texture/TexturePlugin.inc.php on line 141
[05-Dec-2018 01:25:33 UTC] PHP Warning: Declaration of OpenAIREDAO::setOAI(&$oai) should be compatible with PKPOAIDAO::setOAI($oai) in /home/ipao/public_html/plugins/generic/openAIRE/OpenAIREDAO.inc.php on line 19
[05-Dec-2018 01:25:33 UTC] PHP Warning: Declaration of DRIVERDAO::setOAI(&$oai) should be compatible with PKPOAIDAO::setOAI($oai) in /home/ipao/public_html/plugins/generic/driver/DRIVERDAO.inc.php on line 65
[05-Dec-2018 01:25:33 UTC] PHP Warning: Declaration of CustomBlockPlugin::getBlockContext() should be compatible with BlockPlugin::getBlockContext($contextId = NULL) in /home/ipao/public_html/plugins/generic/customBlockManager/CustomBlockPlugin.inc.php on line 134
[05-Dec-2018 01:25:33 UTC] PHP Warning: Declaration of CustomBlockPlugin::getEnabled() should be compatible with BlockPlugin::getEnabled($contextId = NULL) in /home/ipao/public_html/plugins/generic/customBlockManager/CustomBlockPlugin.inc.php on line 134
[05-Dec-2018 01:25:33 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Smarty_Compiler has a deprecated constructor in /home/ipao/public_html/lib/pkp/lib/vendor/smarty/smarty/libs/Smarty_Compiler.class.php on line 35
[05-Dec-2018 01:25:46 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Smarty has a deprecated constructor in /home/ipao/public_html/lib/pkp/lib/vendor/smarty/smarty/libs/Smarty.class.php on line 64
[05-Dec-2018 01:25:46 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; ADODB_Cache_File has a deprecated constructor in /home/ipao/public_html/lib/pkp/lib/adodb/adodb.inc.php on line 263
[05-Dec-2018 01:25:46 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; ADOConnection has a deprecated constructor in /home/ipao/public_html/lib/pkp/lib/adodb/adodb.inc.php on line 359
[05-Dec-2018 01:25:46 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; ADORecordSet has a deprecated constructor in /home/ipao/public_html/lib/pkp/lib/adodb/adodb.inc.php on line 2921
[05-Dec-2018 01:25:46 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; ADORecordSet_array has a deprecated constructor in /home/ipao/public_html/lib/pkp/lib/adodb/adodb.inc.php on line 3939
[05-Dec-2018 01:25:46 UTC] PHP Warning: Declaration of PKPUsageEventPlugin::getEnabled() should be compatible with LazyLoadPlugin::getEnabled($contextId = NULL) in /home/ipao/public_html/lib/pkp/plugins/generic/usageEvent/PKPUsageEventPlugin.inc.php on line 386
[05-Dec-2018 01:25:46 UTC] PHP Warning: Declaration of TexturePlugin::register($category, $path) should be compatible with LazyLoadPlugin::register($category, $path, $mainContextId = NULL) in /home/ipao/public_html/plugins/generic/texture/TexturePlugin.inc.php on line 141
[05-Dec-2018 01:25:46 UTC] PHP Warning: Declaration of OpenAIREDAO::setOAI(&$oai) should be compatible with PKPOAIDAO::setOAI($oai) in /home/ipao/public_html/plugins/generic/openAIRE/OpenAIREDAO.inc.php on line 19
[05-Dec-2018 01:25:46 UTC] PHP Warning: Declaration of DRIVERDAO::setOAI(&$oai) should be compatible with PKPOAIDAO::setOAI($oai) in /home/ipao/public_html/plugins/generic/driver/DRIVERDAO.inc.php on line 65
[05-Dec-2018 01:25:46 UTC] PHP Warning: Declaration of CustomBlockPlugin::getBlockContext() should be compatible with BlockPlugin::getBlockContext($contextId = NULL) in /home/ipao/public_html/plugins/generic/customBlockManager/CustomBlockPlugin.inc.php on line 134
[05-Dec-2018 01:25:46 UTC] PHP Warning: Declaration of CustomBlockPlugin::getEnabled() should be compatible with BlockPlugin::getEnabled($contextId = NULL) in /home/ipao/public_html/plugins/generic/customBlockManager/CustomBlockPlugin.inc.php on line 134
[05-Dec-2018 01:25:46 UTC] PHP Warning: Declaration of RegistrationHandler::validate($request) should be compatible with PKPHandler::validate($requiredContexts = NULL, $request = NULL) in /home/ipao/public_html/lib/pkp/pages/user/RegistrationHandler.inc.php on line 19
[05-Dec-2018 01:25:46 UTC] PHP Warning: Declaration of RegistrationHandler::initialize($request, &$args) should be compatible with PKPHandler::initialize($request) in /home/ipao/public_html/lib/pkp/pages/user/RegistrationHandler.inc.php on line 19
[05-Dec-2018 01:25:46 UTC] PHP Warning: Declaration of RegistrationForm::initData($request) should be compatible with Form::initData() in /home/ipao/public_html/lib/pkp/classes/user/form/RegistrationForm.inc.php on line 21
[05-Dec-2018 01:25:46 UTC] PHP Warning: Declaration of RegistrationForm::validate() should be compatible with Form::validate($callHooks = true) in /home/ipao/public_html/lib/pkp/classes/user/form/RegistrationForm.inc.php on line 21
[05-Dec-2018 01:25:46 UTC] PHP Warning: Declaration of RegistrationForm::execute($request) should be compatible with Form::execute() in /home/ipao/public_html/lib/pkp/classes/user/form/RegistrationForm.inc.php on line 21
[05-Dec-2018 01:25:46 UTC] PHP Deprecated: Non-static method PKPRequest::getRemoteAddr() should not be called statically in /home/ipao/public_html/lib/pkp/classes/user/form/RegistrationForm.inc.php on line 59
[05-Dec-2018 01:25:46 UTC] PHP Deprecated: Non-static method PKPRequest::_checkThis() should not be called statically in /home/ipao/public_html/lib/pkp/classes/core/PKPRequest.inc.php on line 425
[05-Dec-2018 01:25:46 UTC] PHP Deprecated: Non-static method PKPRequest::getUserVar() should not be called statically in /home/ipao/public_html/lib/pkp/classes/form/Form.inc.php on line 369
[05-Dec-2018 01:25:46 UTC] PHP Deprecated: Non-static method PKPRequest::_checkThis() should not be called statically in /home/ipao/public_html/lib/pkp/classes/core/PKPRequest.inc.php on line 592
[05-Dec-2018 01:25:46 UTC] PHP Deprecated: Non-static method Request::getContext() should not be called statically in /home/ipao/public_html/plugins/generic/orcidProfile/OrcidProfilePlugin.inc.php on line 141
[05-Dec-2018 01:25:46 UTC] PHP Deprecated: Non-static method PKPRequest::_checkThis() should not be called statically in /home/ipao/public_html/classes/core/Request.inc.php on line 68
[05-Dec-2018 01:25:46 UTC] PHP Deprecated: Non-static method Request::getContext() should not be called statically in /home/ipao/public_html/plugins/generic/orcidProfile/OrcidProfilePlugin.inc.php on line 120
[05-Dec-2018 01:25:46 UTC] PHP Deprecated: Non-static method PKPRequest::_checkThis() should not be called statically in /home/ipao/public_html/classes/core/Request.inc.php on line 68
thank you

I confirm we still have problems installing and upgrading plugins through the plugin gallery in OJS 3.1.1.4 too.

Hi @luismurillo

Sorry, haven’t seen this earlier. Those warning are cosmetic and can be ignored. Can you point the OJS version that you are using and the problem that you have encountered in more details, e.g., on what stage the issue occurs and how have you tried to upload plugins.

Furthermore, I have the problem with the Plugin Gallery. I get farther the same Uncaught Error and I don’t know why. Maybe you can help me. I use OJS 3.1.2 and PHP 7.3 Maybe you can help me.

PHP Fatal error: Uncaught Error: Call to a member function getProductType() on string in …/lib/pkp/classes/plugins/PluginHelper.inc.php:107
Stack trace:
#0 …/lib/pkp/controllers/grid/plugins/PluginGalleryGridHandler.inc.php(266): PluginHelper->installPlugin(NULL, ‘Das hochgeladen…’)
#1 /…/lib/pkp/classes/core/PKPRouter.inc.php(390): PluginGalleryGridHandler->installPlugin(Array, Object(Request))
#2 /…/lib/pkp/classes/core/PKPComponentRouter.inc.php(257): PKPRouter->_authorizeInitializeAndCallRequest(Array, Object(Request), Array)
#3 /…/OJS2/lib/pkp/classes/core/Dispatcher.inc.php(134): PKPComponentRouter->route(Object(Request))
#4 /…2/lib/pkp/classes/core/PKPApplication.inc.php(247): Dispatcher->dispatch(Object(Request))
#5 /…/index.php(68): PKPApplication->execute()
#6 {main}

It seems that OJS tries to install a plugin but cannot find all of its version information that is usually stored in version.xml file inside plugin’s directory. Can you double check if all your plugins have product type specified, e.g.: https://github.com/pkp/ojs/blob/master/plugins/generic/dublinCoreMeta/version.xml#L15

Thanks for your reply. It’s a need, that the version.xml have the lazy load information. Because a lot of PlugIns haven’t it.

Are these official plugins that haven’t got version.xml file?

Dear Vitaliy,

no all PlugIns have a version.xml but some haven’t inside the “lazy load”-Tag inside the version.xml . Is this correct? For example the PlugIn usageEvent haven’t “lazy load” and haven’t “class”.


The importExport-PlugIn Native haven’t a version.xml

Ho @Felixmail2015,

You are receiving this error:

when trying to install a plugin, right?
If yes, let me know about the plugin you trying install.
If no, can you specify what you see on the line 107 of the PluginHelper class. I’m expecting there this line: https://github.com/pkp/pkp-lib/blob/master/classes/plugins/PluginHelper.inc.php#L113

Hello @Vitaliy,

thanks a lot for your help. Yes I receiving the error, when I trying to install a plugin from the plugIn-Gallery. The plugin is not specific, the error is generated for every plugin in the gallery.

My linie 107 in the PlugInHelper class is

$versionFile = $path . ‘/’ . PLUGIN_VERSION_FILE;

thats the same like in the gitHub thing.

I’m not realy sure if the error rely generated from a false PlugIn version.xml. I was installing a new OJS 3.1.2. for testing on the same server in a different direction with a different database and I get the same error. Could it be, that the PlugIn-gallery need Node.js? Because I can’t install Node.js on my server.

Thanks a lot for your help.

Felix

Hi again, I’m still having problem with the plugin gallery. this is my log. Hope you can help.

[12-Jun-2019 14:47:59 UTC] PHP Fatal error: Uncaught Error: Call to a member function getProductType() on string in /home/ipao/public_html/lib/pkp/classes/plugins/PluginHelper.inc.php:113
Stack trace:
#0 /home/ipao/public_html/lib/pkp/controllers/grid/plugins/PluginGalleryGridHandler.inc.php(266): PluginHelper->installPlugin(NULL, ‘The uploaded pl…’)
#1 /home/ipao/public_html/lib/pkp/classes/core/PKPRouter.inc.php(390): PluginGalleryGridHandler->installPlugin(Array, Object(Request))
#2 /home/ipao/public_html/lib/pkp/classes/core/PKPComponentRouter.inc.php(257): PKPRouter->_authorizeInitializeAndCallRequest(Array, Object(Request), Array)
#3 /home/ipao/public_html/lib/pkp/classes/core/Dispatcher.inc.php(134): PKPComponentRouter->route(Object(Request))
#4 /home/ipao/public_html/lib/pkp/classes/core/PKPApplication.inc.php(252): Dispatcher->dispatch(Object(Request))
#5 /home/ipao/public_html/index.php(67): PKPApplication->execute()
#6 {main}
thrown in /home/ipao/public_html/lib/pkp/classes/plugins/PluginHelper.inc.php on line 113
[12-Jun-2019 14:48:39 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; ADODB_Cache_File has a deprecated constructor in /home/ipao/public_html/lib/pkp/lib/adodb/adodb.inc.php on line 263
[12-Jun-2019 14:48:39 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; ADOConnection has a deprecated constructor in /home/ipao/public_html/lib/pkp/lib/adodb/adodb.inc.php on line 359
[12-Jun-2019 14:48:39 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; ADORecordSet has a deprecated constructor in /home/ipao/public_html/lib/pkp/lib/adodb/adodb.inc.php on line 2921
[12-Jun-2019 14:48:39 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; ADORecordSet_array has a deprecated constructor in /home/ipao/public_html/lib/pkp/lib/adodb/adodb.inc.php on line 3939
[12-Jun-2019 14:48:40 UTC] PHP Warning: Declaration of BrowsePlugin::register($category, $path) should be compatible with LazyLoadPlugin::register($category, $path, $mainContextId = NULL) in /home/ipao/public_html/plugins/generic/browse/BrowsePlugin.inc.php on line 223
[12-Jun-2019 14:48:40 UTC] PHP Warning: Declaration of DocxToJatsPlugin::register($category, $path) should be compatible with LazyLoadPlugin::register($category, $path, $mainContextId = NULL) in /home/ipao/public_html/plugins/generic/docxConverter/DocxToJatsPlugin.inc.php on line 122
[12-Jun-2019 14:48:41 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; dbObject has a deprecated constructor in /home/ipao/public_html/lib/pkp/lib/adodb/adodb-xmlschema.inc.php on line 106
[12-Jun-2019 14:48:41 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; dbTable has a deprecated constructor in /home/ipao/public_html/lib/pkp/lib/adodb/adodb-xmlschema.inc.php on line 205
[12-Jun-2019 14:48:41 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; dbIndex has a deprecated constructor in /home/ipao/public_html/lib/pkp/lib/adodb/adodb-xmlschema.inc.php on line 613
[12-Jun-2019 14:48:41 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; dbData has a deprecated constructor in /home/ipao/public_html/lib/pkp/lib/adodb/adodb-xmlschema.inc.php on line 774
[12-Jun-2019 14:48:41 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; dbQuerySet has a deprecated constructor in /home/ipao/public_html/lib/pkp/lib/adodb/adodb-xmlschema.inc.php on line 959
[12-Jun-2019 14:48:41 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; adoSchema has a deprecated constructor in /home/ipao/public_html/lib/pkp/lib/adodb/adodb-xmlschema.inc.php on line 1217
[12-Jun-2019 14:48:41 UTC] PHP Warning: exec() has been disabled for security reasons in /home/ipao/public_html/lib/pkp/classes/plugins/PluginHelper.inc.php on line 67
[12-Jun-2019 14:48:41 UTC] PHP Fatal error: Uncaught Error: Call to a member function getProductType() on string in /home/ipao/public_html/lib/pkp/classes/plugins/PluginHelper.inc.php:113
Stack trace:
#0 /home/ipao/public_html/lib/pkp/controllers/grid/plugins/PluginGalleryGridHandler.inc.php(266): PluginHelper->installPlugin(NULL, ‘The uploaded pl…’)
#1 /home/ipao/public_html/lib/pkp/classes/core/PKPRouter.inc.php(390): PluginGalleryGridHandler->installPlugin(Array, Object(Request))
#2 /home/ipao/public_html/lib/pkp/classes/core/PKPComponentRouter.inc.php(257): PKPRouter->_authorizeInitializeAndCallRequest(Array, Object(Request), Array)
#3 /home/ipao/public_html/lib/pkp/classes/core/Dispatcher.inc.php(134): PKPComponentRouter->route(Object(Request))
#4 /home/ipao/public_html/lib/pkp/classes/core/PKPApplication.inc.php(252): Dispatcher->dispatch(Object(Request))
#5 /home/ipao/public_html/index.php(67): PKPApplication->execute()
#6 {main}
thrown in /home/ipao/public_html/lib/pkp/classes/plugins/PluginHelper.inc.php on line 113

Hi @luismurillo,

Unfortunately I cannot reproduce the error on OJS 3.1.1-4 and above.

The error says that here is not an object as expected but string. The most probable reason is that OJS cannot retrieve version.xml file. But in this case the method should fail 2 lines earlier.

Can you debud it more and just line above put: error_log(print_r($pluginVersion, true));
Then try to install plugin and check the logs? Normally (for e.g., Translator Plugin ) you should see there:

[14-Jun-2019 13:10:25 UTC] Version Object
(
    [_data] => Array
        (
            [major] => 2
            [minor] => 0
            [revision] => 3
            [build] => 1
            [dateInstalled] => 2019-06-14 13:10:25
            [current] => 1
            [productType] => plugins.generic
            [product] => translator
            [productClassName] => TranslatorPlugin
            [lazyLoad] => 1
            [sitewide] => 1
        )

    [_hasLoadableAdapters] => 
    [_metadataExtractionAdapters] => Array
        (
        )

    [_extractionAdaptersLoaded] => 
    [_metadataInjectionAdapters] => Array
        (
        )

    [_injectionAdaptersLoaded] => 
)

sorry but i dont know here to put… error_log(print_r($pluginVersion, true));

I debug whit tail -f in the logg folder of my site

You should modify the file pointed in the error:

/home/ipao/public_html/lib/pkp/classes/plugins/PluginHelper.inc.php

Write

error_log(print_r($pluginVersion, true))

On the line just above that line that is pointed in the error (line 113).
This will print the content of the variable $pluginVersion into the logs. The content of that variable may help to debug further.

Hi, this is the new log with the line error_log(print_r($pruginVersion, true));

[root@s166-62-122-206 logs]# tail -f medicinaclinica_org.php.error.log
#4 /home/ipao/public_html/lib/pkp/classes/core/PKPApplication.inc.php(252): Dispatcher->dispatch(Object(Request))
#5 /home/ipao/public_html/index.php(67): PKPApplication->execute()
#6 {main}
thrown in /home/ipao/public_html/lib/pkp/classes/plugins/PluginHelper.inc.php on line 113
[14-Jun-2019 16:36:48 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; ADODB_Cache_File has a deprecated constructor in /home/ipao/public_html/lib/pkp/lib/adodb/adodb.inc.php on line 263
[14-Jun-2019 16:36:48 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; ADOConnection has a deprecated constructor in /home/ipao/public_html/lib/pkp/lib/adodb/adodb.inc.php on line 359
[14-Jun-2019 16:36:48 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; ADORecordSet has a deprecated constructor in /home/ipao/public_html/lib/pkp/lib/adodb/adodb.inc.php on line 2921
[14-Jun-2019 16:36:48 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; ADORecordSet_array has a deprecated constructor in /home/ipao/public_html/lib/pkp/lib/adodb/adodb.inc.php on line 3939
[14-Jun-2019 16:36:48 UTC] PHP Warning: Declaration of DRIVERDAO::setOAI(&$oai) should be compatible with PKPOAIDAO::setOAI($oai) in /home/ipao/public_html/plugins/generic/driver/DRIVERDAO.inc.php on line 19
[14-Jun-2019 16:36:48 UTC] PHP Warning: Declaration of CustomBlockPlugin::getBlockContext() should be compatible with BlockPlugin::getBlockContext($contextId = NULL) in /home/ipao/public_html/plugins/generic/customBlockManager/CustomBlockPlugin.inc.php on line 134
[14-Jun-2019 16:37:26 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; ADODB_Cache_File has a deprecated constructor in /home/ipao/public_html/lib/pkp/lib/adodb/adodb.inc.php on line 263
[14-Jun-2019 16:37:26 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; ADOConnection has a deprecated constructor in /home/ipao/public_html/lib/pkp/lib/adodb/adodb.inc.php on line 359
[14-Jun-2019 16:37:26 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; ADORecordSet has a deprecated constructor in /home/ipao/public_html/lib/pkp/lib/adodb/adodb.inc.php on line 2921
[14-Jun-2019 16:37:26 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; ADORecordSet_array has a deprecated constructor in /home/ipao/public_html/lib/pkp/lib/adodb/adodb.inc.php on line 3939
[14-Jun-2019 16:37:27 UTC] PHP Warning: Declaration of DRIVERDAO::setOAI(&$oai) should be compatible with PKPOAIDAO::setOAI($oai) in /home/ipao/public_html/plugins/generic/driver/DRIVERDAO.inc.php on line 19
[14-Jun-2019 16:37:27 UTC] PHP Warning: Declaration of CustomBlockPlugin::getBlockContext() should be compatible with BlockPlugin::getBlockContext($contextId = NULL) in /home/ipao/public_html/plugins/generic/customBlockManager/CustomBlockPlugin.inc.php on line 134
[14-Jun-2019 16:37:28 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; dbObject has a deprecated constructor in /home/ipao/public_html/lib/pkp/lib/adodb/adodb-xmlschema.inc.php on line 106
[14-Jun-2019 16:37:28 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; dbTable has a deprecated constructor in /home/ipao/public_html/lib/pkp/lib/adodb/adodb-xmlschema.inc.php on line 205
[14-Jun-2019 16:37:28 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; dbIndex has a deprecated constructor in /home/ipao/public_html/lib/pkp/lib/adodb/adodb-xmlschema.inc.php on line 613
[14-Jun-2019 16:37:28 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; dbData has a deprecated constructor in /home/ipao/public_html/lib/pkp/lib/adodb/adodb-xmlschema.inc.php on line 774
[14-Jun-2019 16:37:28 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; dbQuerySet has a deprecated constructor in /home/ipao/public_html/lib/pkp/lib/adodb/adodb-xmlschema.inc.php on line 959
[14-Jun-2019 16:37:28 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; adoSchema has a deprecated constructor in /home/ipao/public_html/lib/pkp/lib/adodb/adodb-xmlschema.inc.php on line 1217
[14-Jun-2019 16:37:28 UTC] PHP Warning: exec() has been disabled for security reasons in /home/ipao/public_html/lib/pkp/classes/plugins/PluginHelper.inc.php on line 67
[14-Jun-2019 16:37:28 UTC] PHP Fatal error: Uncaught Error: Call to a member function getProductType() on string in /home/ipao/public_html/lib/pkp/classes/plugins/PluginHelper.inc.php:113
Stack trace:
#0 /home/ipao/public_html/lib/pkp/controllers/grid/plugins/PluginGalleryGridHandler.inc.php(266): PluginHelper->installPlugin(NULL, ‘El m\xC3\xB3dulo que …’)
#1 /home/ipao/public_html/lib/pkp/classes/core/PKPRouter.inc.php(390): PluginGalleryGridHandler->installPlugin(Array, Object(Request))
#2 /home/ipao/public_html/lib/pkp/classes/core/PKPComponentRouter.inc.php(257): PKPRouter->_authorizeInitializeAndCallRequest(Array, Object(Request), Array)
#3 /home/ipao/public_html/lib/pkp/classes/core/Dispatcher.inc.php(134): PKPComponentRouter->route(Object(Request))
#4 /home/ipao/public_html/lib/pkp/classes/core/PKPApplication.inc.php(252): Dispatcher->dispatch(Object(Request))
#5 /home/ipao/public_html/index.php(67): PKPApplication->execute()
#6 {main}
thrown in /home/ipao/public_html/lib/pkp/classes/plugins/PluginHelper.inc.php on line 113

Hmm, I don’t see here any output from $pluginVersion

Sorry, haven’t noticed this error earlier, this means that your hosting provider blocks exec() function that runs external program to unpack plugin’s archive.

See: https://stackoverflow.com/questions/16421725/warning-exec-has-been-disabled-for-security-reasons

Thank you, I think is working well now.
I can install plugins using Plugin Gallery

1 Like

I am experiencing the same issue. Below is the error log. I am using the latest version of OJS.

[16-Aug-2019 00:19:08 UTC] PHP Warning: copy(https://github.com/pkp/coins/releases/download/v1.0.2-1/coins-v1.0.2-1.tar.gz): failed to open stream: no suitable wrapper could be found in /home/wskworg/public_html/jkw/lib/pkp/classes/file/FileManager.inc.php on line 162
[16-Aug-2019 00:19:08 UTC] ojs2: Incorrect MD5 checksum!

Hi @Ovande_Furtado,

It looks like your installation of PHP doesn’t have SSL support. See e.g. this StackOverflow discussion.

Regards,
Alec Smecher
Public Knowledge Project Team