Error - LazyLoad plugin and other plugins (QuickSubmit and Native XML)

Hello,

I am new in OJS, perhaps someone can help me to resolve the issue.

I have downloaded OJS 3.1.1in vps server (ubuntu 16) and installed Quicksubmit. However, I can’t upload any XML or Word file through import in quicksubmmit or Native XML plugin. It throughs out HTTP error, when i looked into error log, here are few lines for your info.

[Fri May 04 02:40:33.887956 2018] [:error] [pid 24755] [client 2.221.244.146:55337] PHP Warning: Declaration of PKPUsageEventPlugin::getEnabled() should be compatible with LazyLoadPlugin::getEnabled($contextId = NULL) in /var
/www/html/jeid/lib/pkp/plugins/generic/usageEvent/PKPUsageEventPlugin.inc.php on line 24, referer: http://91.239. 65.38/jeid/index.php/jeid/management/importexport/plugin/NativeImportExportPlugin

Also, I have looked into PKPusageEvent plugin, here is how it is.

define(‘USAGE_EVENT_PLUGIN_CLASSIFICATION_ADMIN’, ‘administrative’);
23
24 abstract class PKPUsageEventPlugin extends GenericPlugin {
25
26 //
27 // Implement methods from PKPPlugin.
28 //
29 /**
30 * @copydoc Plugin::register()
31 */
32 function register($category, $path, $mainContextId = null) {
33 $success = parent::register($category, $path, $mainContextId);
34
35 if ($success) {
36 $eventHooks = $this->getEventHooks();
37 foreach ($eventHooks as $hook) {
38 HookRegistry::register($hook, array($this, ‘getUsageEvent’));
39 }
40 }
41
42 return $success;
43 }
44

Any help would be much appreciated.

Cheers

Hi @pKPuser,

That’s a warning and it’s harmless – but look around in the logs for something containing the word Error.

Regards,
Alec Smecher
Public Knowledge Project Team