ajnyga / customMetadata

3 stars 2 forks source link

fields do not appear #1

Open jedi-tor opened 4 years ago

jedi-tor commented 4 years ago

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:

[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)) {

But I have no idea for the second error.

DB preview:

image

OJS version: 3.2.0.1

ajnyga commented 4 years ago

Hi!

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.