Embed Galley Plugin not working in OJS 3.3.0

Hello,
I would like to display the full article in the abstract page. I already installed the Embed Galley Plugin but it is not working. The Jats Parser plugin doesn’t work either.
Any help would be appreciated

This is my error log:

[20-Sep-2022 23:23:00 UTC] PHP Deprecated: Non-static method PKPApplication::getRequest() should not be called statically in /home/customer/www/revistalatinoamericanadepoblacion.org/public_html/plugins/generic/embedGalley/EmbedGalleyPlugin.inc.php on line 123
[20-Sep-2022 23:23:00 UTC] PHP Fatal error: Uncaught Error: Call to undefined method SubmissionFile::getFilePath() in /home/customer/www/revistalatinoamericanadepoblacion.org/public_html/plugins/generic/embedGalley/EmbedGalleyPlugin.inc.php:146
Stack trace:
#0 /home/customer/www/revistalatinoamericanadepoblacion.org/public_html/plugins/generic/embedGalley/EmbedGalleyPlugin.inc.php(126): EmbedGalleyPlugin->_parseXml(Object(SubmissionFile))
#1 /home/customer/www/revistalatinoamericanadepoblacion.org/public_html/lib/pkp/classes/plugins/HookRegistry.inc.php(107): EmbedGalleyPlugin->embedHtml(‘Templates::Arti…’, Array)
#2 /home/customer/www/revistalatinoamericanadepoblacion.org/public_html/lib/pkp/classes/template/PKPTemplateManager.inc.php(1518): HookRegistry::call(‘Templates::Arti…’, Array)
#3 /home/customer/www/revistalatinoamericanadepoblacion.org/public_html/cache/t_compile/93b4f13326abf2c920de729fdcdace1580d9bcb7^addd65021fadf964339ab08cd1aa93ba59b14e9c_0.app.frontendobjectsarticledet.php(602): PKPTemplateManager->smartyCallHook(Array, Object(Smar in /home/customer/www/revistalatinoamericanadepoblacion.org/public_html/plugins/generic/embedGalley/EmbedGalleyPlugin.inc.php on line 146
[20-Sep-2022 23:23:05 UTC] PHP Deprecated: Non-static method PKPApplication::getRequest() should not be called statically in /home/customer/www/revistalatinoamericanadepoblacion.org/public_html/plugins/generic/embedGalley/EmbedGalleyPlugin.inc.php on line 123
[20-Sep-2022 23:23:05 UTC] PHP Fatal error: Uncaught Error: Call to undefined method SubmissionFile::getFilePath() in /home/customer/www/revistalatinoamericanadepoblacion.org/public_html/plugins/generic/embedGalley/EmbedGalleyPlugin.inc.php:146
Stack trace:
#0 /home/customer/www/revistalatinoamericanadepoblacion.org/public_html/plugins/generic/embedGalley/EmbedGalleyPlugin.inc.php(126): EmbedGalleyPlugin->_parseXml(Object(SubmissionFile))
#1 /home/customer/www/revistalatinoamericanadepoblacion.org/public_html/lib/pkp/classes/plugins/HookRegistry.inc.php(107): EmbedGalleyPlugin->embedHtml(‘Templates::Arti…’, Array)
#2 /home/customer/www/revistalatinoamericanadepoblacion.org/public_html/lib/pkp/classes/template/PKPTemplateManager.inc.php(1518): HookRegistry::call(‘Templates::Arti…’, Array)
#3 /home/customer/www/revistalatinoamericanadepoblacion.org/public_html/cache/t_compile/93b4f13326abf2c920de729fdcdace1580d9bcb7^addd65021fadf964339ab08cd1aa93ba59b14e9c_0.app.frontendobjectsarticledet.php(602): PKPTemplateManager->smartyCallHook(Array, Object(Smar in /home/customer/www/revistalatinoamericanadepoblacion.org/public_html/plugins/generic/embedGalley/EmbedGalleyPlugin.inc.php on line 146
[20-Sep-2022 23:31:29 UTC] PHP Fatal error: require_once(): Failed opening required ‘/home/customer/www/revistalatinoamericanadepoblacion.org/public_html/plugins/generic/JATSParser/JATSParser/vendor/autoload.php’ (include_path=‘.:/usr/local/php73/pear’) in /home/customer/www/revistalatinoamericanadepoblacion.org/public_html/plugins/generic/JATSParser/JatsParserPlugin.inc.php on line 13

Hi @Ana,

Are you able to also indicate which version of the plugin you’re using and the method that you used to install it (e.g. plugin gallery, or other means).

-Roger
PKP Team

Hi, thank you for answering.
Both are the newest versions available, I uploaded them via ftp to the “generic” folder. I tried with older versions too, but they are not working. The Jats Parser plugin seems to crash the OJS because when I upload it, the “Installed Plugins” section doesn’t load.

Hi @Ana,

Typically, installing from the plugin gallery is the best best bet as the plugin updates available there have been tested with your OJS version. Installing plugins outside of this method sometimes creates this issue - are you unable to uninstall the JATS plugin to see if that is causing the issue with your plugin gallery?

-Roger
PKP Team

Hi,
I’m unable to install both plugins from the plugin gallery because they don’t exist there. I already searched for them, and there are no results.

Hi @Ana,

If the plugin is not in the plugin gallery that’s an indication that the plugin has not been tested with your given version of OJS. Installing plugins that are not in the gallery can be risky and lead to even breaking your OJS instance in some instances, which is why we advise that users proceed with caution when installing plugins outside of the gallery: https://docs.pkp.sfu.ca/plugin-inventory/en/#plugin-gallery-vs-external-plugins

-Roger
PKP Team

Hi,
If that is the situation, then how can I display the HTML of an article’s XML in the same page where the abstract is? I tried with different plugins and none is working.

Hi @Ana,

So the JATS plugin within your plugin gallery is not installing? It should work, but there might be something going on with your plugin gallery - perhaps as a next step you should look at your PHP Error logs and see if anything is happening there with your plugin gallery that is preventing this plugin from working.

-Roger
PKP Team

Hi,
I can’t install the Jats Parser plugin form the gallery. There are no more lines in the error log besides the ones I already posted. Here is a screen shot of the search results when I type “JATS”. As you can see I installed the three of them, and none is displaying the XML in the abstract section.

Screen Shot 2022-09-28 at 11.47.49

Hi @Ana,

Thanks for clarifying. I’m not entirely sure what to do at this stage, but I’ll see if some of my colleagues are able to assist when they are available.

-Roger
PKP Team

Hi @Ana,

This error means that JATS Parser Plugin wasn’t installed correctly. Likely you copied the source code without installation.

For OJS 3.3.0, the latest version is 2.1.9-4, package is available here: Release 2.1.9-4 · Vitaliy-1/JATSParserPlugin · GitHub (file with .tar.gz extension). This can be uploaded through the dashboard interface or manually. Note the directory name, it’s jatsParser rather than JATSParser.

I can also give instructions on how to install from the source code but that requires also Git and Composer to be installed.

1 Like