oldGregg and jatsParser install problem

I can install the oldGregg plugin, but I will not get the nice tabs.
See test page below:
image

Is the jatsParser required for oldGregg? This plugin is not installed correctly. When i have copied the folder, or upload tar file to web interface. and try to reach the Website>Plugins tab in the, then I just get the “loading” spinner, and nothing happends. I need to log in to the server to delete the folder jatsParser in plugins/generic to be able to load the plugins tab!

This is an output from the PHP error:

[Mon Apr 01 14:48:14.028730 2019] [php7:error] [pid 4259] [client xxxx:xxxx] PHP Fatal error:  require_once(): Failed opening required '/var/www/html/xxxx/plugins/generic/jatsParser/JATSParser/vendor/autoload.php' (include_path='.:/var/www/html/xxxx/classes:/var/www/html/xxxx/pages:/var/www/html/xxxx/lib/pkp:/var/www/html/xxxx/lib/pkp/classes:/var/www/html/xxxx/lib/pkp/pages:/var/www/html/xxxx/lib/pkp/lib/adodb:.:/usr/share/pear:/usr/share/php') in /var/www/html/xxxx/plugins/generic/jatsParser/JatsParserPlugin.inc.php on line 13, referer: https://journal.ep.liu.se/xxxx/index.php/test2/management/settings/website
[Mon Apr 01 14:49:21.780921 2019] [php7:error] [pid 5359] [client xxxx:xxxx] PHP Fatal error:  Cannot declare class ComposerAutoloaderInit091355fbb6e009670e76e1a30f9d6758, because the name is already in use in /var/www/html/xxxx/plugins/generic/jatsParser/JATSParser/vendor/composer/autoload_real.php on line 5, referer: https://xxxx.xx/xxxx/index.php/test2/management/settings/website

The folder /usr/share/pear is not present in my server, could that be an issue? How to solve that?

Any ideas @Vitaliy ?

Best regards

eddoff

If using master branch, you need also to download JATS Parser library. With git it should be git submodule update --init --recursive. The library itself is here: GitHub - Vitaliy-1/JATSParser: JATSParser is aimed to be integrated with Open Journal Systems 3.0+ for transforming JATS XML to various formats

Thank you @Vitaliy for quick response!

I have done that! It is now located in /plugins/themes/oldGregg/ folder:
$ ls -lrt plugins/themes/oldGregg/

-rw-r--r-- 1 apache apache   837 10 mar 00.31 version.xml
drwxr-xr-x 3 apache apache  4096 10 mar 00.31 templates
-rw-r--r-- 1 apache apache   713 10 mar 00.31 README.md
-rw-r--r-- 1 apache apache 15956 10 mar 00.31 OldGreggThemePlugin.inc.php
drwxr-xr-x 6 apache apache  4096 10 mar 00.31 locale
-rw-r--r-- 1 apache apache 35141 10 mar 00.31 LICENSE
drwxr-xr-x 2 apache apache  4096 10 mar 00.31 js
drwxr-xr-x 2 apache apache  4096 10 mar 00.31 jquery
-rw-r--r-- 1 apache apache   196 10 mar 00.31 index.php
drwxr-xr-x 2 apache apache  4096 10 mar 00.31 images
drwxr-xr-x 2 apache apache  4096 10 mar 00.31 css
drwxr-xr-x 4 apache apache  4096 10 mar 00.31 bootstrap
drwxr-xr-x 5 apache apache  4096  1 apr 15.44 JATSParser

$ ls -lrt plugins/themes/oldGregg/JATSParser/

drwxr-xr-x 3 apache apache  4096  9 mar 22.50 vendor
drwxr-xr-x 3 apache apache  4096  9 mar 22.50 src
-rw-r--r-- 1 apache apache   344  9 mar 22.50 README.md
drwxr-xr-x 2 apache apache  4096  9 mar 22.50 logo
-rw-r--r-- 1 apache apache 35147  9 mar 22.50 LICENSE
-rw-r--r-- 1 apache apache 59057  9 mar 22.50 fig2.jpg
-rw-r--r-- 1 apache apache 54019  9 mar 22.50 fig1.jpg
-rw-r--r-- 1 apache apache 47448  9 mar 22.50 example.xml
-rw-r--r-- 1 apache apache   840  9 mar 22.50 example.php
-rw-r--r-- 1 apache apache  2827  9 mar 22.50 composer.lock
-rw-r--r-- 1 apache apache   465  9 mar 22.50 composer.json

Hi @eddoff,

Can you share if this resolves the problem?

No, it did not.
Still the same problem.

Is the generic plugin jatsParserPlugin related to this? However, it does not work to install. When copied the folder to the /plugins/generic/ folder the journal website is blank and the plugins tab in website settings is not loading.

I’ve made a new release for Old Gregg theme. Can you try if it works? Release oldGregg-1.1.1 · Vitaliy-1/oldGregg · GitHub
It’s compatible with OJS 3.1.2

1 Like

New tarball worked like a charm in OJS 3.1.2.

Thanks @Vitaliy :ok_hand: