Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plugin don't work with OJS 3.1.2 #1

Open
bolelligallevi opened this issue Oct 9, 2019 · 0 comments
Open

Plugin don't work with OJS 3.1.2 #1

bolelligallevi opened this issue Oct 9, 2019 · 0 comments

Comments

@bolelligallevi
Copy link

Hi,

once installed the click on "Settings" shows the error "Ajax request or invalid JSON returned", and no settings page is loaded.

With plugin author help I tried to manage the smarty problem about the change of the names of functions sending data to templates (i.e 3.1.2: parent::__construct($plugin->getTemplateResource('settingsForm.tpl')); instead of 3.1.1:
parent::__construct($plugin->getTemplatePath() . $sf);), modifying the files \nbn-master\NBNPubIdPlugin.inc.php and \nbn-master\classes\form
plugin.zip
NBNSettingsForm.inc.php (see attached files).
Unfortunately the plugin is still not working, after Ajax error the PHP logs are:
AH01071: Got error
PHP message: PHP Warning: Declaration of NBNPubIdPlugin::getTemplateResource() should be compatible with Plugin::getTemplateResource($template = NULL, $inCore = false) in /plugins/pubIds/nbn/NBNPubIdPlugin.inc.php on line 0
PHP message: PHP Fatal error: Uncaught --> Smarty: Unknown resource type 'plugins-plugins-pubIds-nbn-pubIds-nbn' <--
thrown in /lib/pkp/lib/vendor/smarty/smarty/libs/sysplugins/smarty_resource.php on line 112', referer: https://ojs-unimi-test.4science.cloud/index.php/AMonline/management/settings/website

Can anyone help?
Best regards,
Stefano Bolelli Gallevi
plugin.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant