We want to use your CustomMetadata plugin. However, although we have entered the necessary definitions in the database, the fields do not appear in step 3. Can you help us?
php error log:
[16-May-2020 13:15:14 Europe/Berlin] PHP Warning: Declaration of CustomMetadataPlugin::register($category, $path) should be compatible with LazyLoadPlugin::register($category, $path, $mainContextId = NULL) in ***\plugins\generic\customMetadata\CustomMetadataPlugin.inc.php on line 34
[16-May-2020 13:15:14 Europe/Berlin] PHP Warning: Declaration of CustomMetadataPlugin::getTemplatePath() should be compatible with Plugin::getTemplatePath($inCore = false) in ***\plugins\generic\customMetadata\CustomMetadataPlugin.inc.php on line 225
For the first error: I change CustomMetadataPlugin.inc.php line 34-35. I add $mainContextID
function register($category, $path, $mainContextId = null) {
if (parent::register($category, $path, $mainContextId)) {
This is a very old plugin which I have not supported. It was written for OJS 3.0.2 I think and there could be several issues. See how more recent OJS plugins call for templates. That has changed.
Hello @ajnyga,
We want to use your CustomMetadata plugin. However, although we have entered the necessary definitions in the database, the fields do not appear in step 3. Can you help us?
php error log:
For the first error: I change
CustomMetadataPlugin.inc.php
line 34-35. I add $mainContextIDBut I have no idea for the second error.
DB preview:
OJS version: 3.2.0.1