Plugins require once php error

I have installed ojs 3.2 in a Ubuntu Bionic Docker container and it seems to work fine, but attempting to install custom plugins from github like GitHub - Vitaliy-1/JATSParserPlugin: OJS3 Plugin for parsing JATS XML and displaying it on article detail page would result in the plugin page not loading and will throw this php error in the error log:

[Fri Jul 13 14:00:32.373393 2018] [php7:error] [pid 409] [client 10.0.2.2:58787] PHP Fatal error: require_once(): Failed opening required ‘/var/www/html/plugins/generic/jatsParser/JATSParser/vendor/autoload.php’ (include_path=’/var/www/html/lib/pkp/lib/vendor/phpunit/phpunit-selenium:.:/var/www/html/classes:/var/www/html/pages:/var/www/html/lib/pkp:/var/www/html/lib/pkp/classes:/var/www/html/lib/pkp/pages:/var/www/html/lib/pkp/lib/adodb:/var/www/html/lib/pkp/lib/phputf8:/var/www/html/lib/pkp/lib/pqp/classes:/var/www/html/lib/pkp/lib/smarty:.:/usr/share/php’) in /var/www/html/plugins/generic/jatsParser/JatsParserPlugin.inc.php on line 13

I have attempt to a composer install in the plugin directory but it couldn’t find a json there.

Hi @B5045438,

Sorry, didn’t see your question earlier. Right now this plugin is getting ready for the v.2 beta-release.
Your error indicates that you didn’t installed a submodule (JATS Parser library). Check Git documentation on how to install project with submodules: Git - Submodules

Keep in mind that this plugin shouldn’t be installed with Old Gregg theme on the same OJS instance, it will lead to a fatal error.

1 Like