Ojs 2.4.6 - Lockss plugin Blank Pages

I have a test journal that is running OJS 2.4.6.
I went in and enabled the PKP PLN plugin.
I am now getting blank pages.
I tried to see the journal using 3 different browsers on 3 different computers and I am getting blank pages.
First is there an issue with the plugin?
Second is there a fix for this issue?

What do I need to do to disable the plugin?

Thanks,
Edward

Hi @EdwardDavid,

Have you checked your error log to see if there is a specific error message there?

Regards,
Alec Smecher
Public Knowledge Project Team

Hi @asmecher,

I tried to access the journal this morning here is the information from the error.log for this journal:

[Wed Sep 30 07:40:53.785320 2015] [:error] [pid 30170] [client 10.70.129.46:63071] ojs2 has produced an error\n Message: WARNING: require_once(Archive/Tar.php): failed to open stream: No such file or directory\n In file: /var/www/jit/plugins/generic/pln/lib/bagit.php\n At line: 32\n Stacktrace: \n Server info:\n OS: Linux\n PHP Version: 5.5.9-1ubuntu4.12\n Apache Version: Apache/2.4.7 (Ubuntu)\n DB Driver: mysql\n DB server version: 5.5.44-0ubuntu0.14.04.1
[Wed Sep 30 07:40:53.785441 2015] [:error] [pid 30170] [client 10.70.129.46:63071] PHP Fatal error: require_once(): Failed opening required ‘Archive/Tar.php’ (include_path=’.:/var/www/jit/classes:/var/www/jit/pages:/var/www/jit/lib/pkp:/var/www/jit/lib/pkp/classes:/var/www/jit/lib/pkp/pages:/var/www/jit/lib/pkp/lib/adodb:/var/www/jit/lib/pkp/lib/phputf8:/var/www/jit/lib/pkp/lib/pqp/classes:/var/www/jit/lib/pkp/lib/smarty:.:/usr/share/php:/usr/share/pear’) in /var/www/jit/plugins/generic/pln/lib/bagit.php on line 32
[Wed Sep 30 07:40:56.830777 2015] [:error] [pid 30174] [client 10.70.129.46:63074] ojs2 has produced an error\n Message: WARNING: require_once(Archive/Tar.php): failed to open stream: No such file or directory\n In file: /var/www/jit/plugins/generic/pln/lib/bagit.php\n At line: 32\n Stacktrace: \n Server info:\n OS: Linux\n PHP Version: 5.5.9-1ubuntu4.12\n Apache Version: Apache/2.4.7 (Ubuntu)\n DB Driver: mysql\n DB server version: 5.5.44-0ubuntu0.14.04.1
[Wed Sep 30 07:40:56.830879 2015] [:error] [pid 30174] [client 10.70.129.46:63074] PHP Fatal error: require_once(): Failed opening required ‘Archive/Tar.php’ (include_path=’.:/var/www/jit/classes:/var/www/jit/pages:/var/www/jit/lib/pkp:/var/www/jit/lib/pkp/classes:/var/www/jit/lib/pkp/pages:/var/www/jit/lib/pkp/lib/adodb:/var/www/jit/lib/pkp/lib/phputf8:/var/www/jit/lib/pkp/lib/pqp/classes:/var/www/jit/lib/pkp/lib/smarty:.:/usr/share/php:/usr/share/pear’) in /var/www/jit/plugins/generic/pln/lib/bagit.php on line 32
[Wed Sep 30 07:40:56.887095 2015] [:error] [pid 30154] [client 10.70.129.46:63075] ojs2 has produced an error\n Message: WARNING: require_once(Archive/Tar.php): failed to open stream: No such file or directory\n In file: /var/www/jit/plugins/generic/pln/lib/bagit.php\n At line: 32\n Stacktrace: \n Server info:\n OS: Linux\n PHP Version: 5.5.9-1ubuntu4.12\n Apache Version: Apache/2.4.7 (Ubuntu)\n DB Driver: mysql\n DB server version: 5.5.44-0ubuntu0.14.04.1
[Wed Sep 30 07:40:56.887196 2015] [:error] [pid 30154] [client 10.70.129.46:63075] PHP Fatal error: require_once(): Failed opening required ‘Archive/Tar.php’ (include_path=’.:/var/www/jit/classes:/var/www/jit/pages:/var/www/jit/lib/pkp:/var/www/jit/lib/pkp/classes:/var/www/jit/lib/pkp/pages:/var/www/jit/lib/pkp/lib/adodb:/var/www/jit/lib/pkp/lib/phputf8:/var/www/jit/lib/pkp/lib/pqp/classes:/var/www/jit/lib/pkp/lib/smarty:.:/usr/share/php:/usr/share/pear’) in /var/www/jit/plugins/generic/pln/lib/bagit.php on line 32

Hope it is helpful,
Edward

Hi @EdwardDavid,

See e.g. this thread: http://pkp.sfu.ca/support/forum/viewtopic.php?f=28&t=13043

Regards,
Alec Smecher
Public Knowledge Project Team

Hi @asmecher,
That fixed the issue. I will make sure that Perl is installed for all of our OJS servers.

One question when will the PKP Lockss server be taking deposits?
I had thought from the conference workshop on PKP PLN that the server was allowing deposits.

Thanks,
Edward

Hi @EdwardDavid,

Even though we launched the PLN at the conference, participating sites still need to have installed OJS 2.4.7, which has not been released yet but should be in the coming weeks. Until we have OJS 2.4.7, we are still in our pilot phase, which should be wrapped up within a month or so of a sufficient number of pilot members to have upgraded to 2.4.7 so we can complete our acceptance testing.

On a slightly different topic, as far as we know Perl is not a prerequisite for running the PLN plugin. You do need the PHP Archive_Tar extension, but it can be installed in a variety of ways that don’t require Perl, such as through PEAR, or via your server’s package manager.

Hi,
I have the same problem. After enabling PLN Plugin I get blank pages.
I installed successfully PEAR package manager on my server. By shell I write:

$ pear list

and get

Installed packages, channel pear.php.net:
=========================================
Package          Version State
Archive_Tar      1.3.11  stable
Console_Getopt   1.3.1   stable
PEAR             1.9.4   stable
Structures_Graph 1.0.4   stable
XML_Util         1.2.1   stable

By error logs get this:

[Tue Dec 01 13:36:23.976733 2015] [fcgid:warn] [pid 4587] [client 
83.103.88.45:40849] mod_fcgid: stderr: ojs2 has produced an error, 
referer: http://journals.edizioniseed.it/index.php/FE/manager
[Tue Dec 01 13:36:23.976793 2015] [fcgid:warn] [pid 4587] [client 
83.103.88.45:40849] mod_fcgid: stderr:   Message: WARNING: 
require_once(Archive/Tar.php): failed to open stream: No such file or 
directory, referer: http://journals.edizioniseed.it/index.php/FE/manager
[Tue Dec 01 13:36:23.976809 2015] [fcgid:warn] [pid 4587] [client 
83.103.88.45:40849] mod_fcgid: stderr:   In file: 
/var/www/vhosts/edizioniseed.it/journals.edizioniseed.it/plugins/generic/pln/lib/bagit.php,
 referer: http://journals.edizioniseed.it/index.php/FE/manager
[Tue Dec 01 13:36:23.976818 2015] [fcgid:warn] [pid 4587] [client 
83.103.88.45:40849] mod_fcgid: stderr:   At line: 32, referer: 
http://journals.edizioniseed.it/index.php/FE/manager
[Tue Dec 01 13:36:23.976826 2015] [fcgid:warn] [pid 4587] [client 
83.103.88.45:40849] mod_fcgid: stderr:   Stacktrace: , referer: 
http://journals.edizioniseed.it/index.php/FE/manager
[Tue Dec 01 13:36:23.976834 2015] [fcgid:warn] [pid 4587] [client 
83.103.88.45:40849] mod_fcgid: stderr:   Server info:, referer: 
http://journals.edizioniseed.it/index.php/FE/manager
[Tue Dec 01 13:36:23.976842 2015] [fcgid:warn] [pid 4587] [client 
83.103.88.45:40849] mod_fcgid: stderr:    OS: Linux, referer: 
http://journals.edizioniseed.it/index.php/FE/manager
[Tue Dec 01 13:36:23.976850 2015] [fcgid:warn] [pid 4587] [client 
83.103.88.45:40849] mod_fcgid: stderr:    PHP Version: 
5.5.9-1ubuntu4.14, referer: 
http://journals.edizioniseed.it/index.php/FE/manager
[Tue Dec 01 13:36:23.976858 2015] [fcgid:warn] [pid 4587] [client 
83.103.88.45:40849] mod_fcgid: stderr:    Apache Version: N/A, referer: 
http://journals.edizioniseed.it/index.php/FE/manager
[Tue Dec 01 13:36:23.976883 2015] [fcgid:warn] [pid 4587] [client 
83.103.88.45:40849] mod_fcgid: stderr:    DB Driver: mysql, referer: 
http://journals.edizioniseed.it/index.php/FE/manager
[Tue Dec 01 13:36:23.976891 2015] [fcgid:warn] [pid 4587] [client 
83.103.88.45:40849] mod_fcgid: stderr:    DB server version: 
5.5.41-0ubuntu0.14.04.1, referer: 
http://journals.edizioniseed.it/index.php/FE/manager
[Tue Dec 01 13:36:23.976901 2015] [fcgid:warn] [pid 4587] [client 
83.103.88.45:40849] mod_fcgid: stderr: PHP Fatal error:  require_once():
 Failed opening required 'Archive/Tar.php' 
(include_path='.:/var/www/vhosts/edizioniseed.it/journals.edizioniseed.it/classes:/var/www/vhosts/edizioniseed.it/journals.edizioniseed.it/pages:/var/www/vhosts/edizioniseed.it/journals.edizioniseed.it/lib/pkp:/var/www/vhosts/edizioniseed.it/journals.edizioniseed.it/lib/pkp/classes:/var/www/vhosts/edizioniseed.it/journals.edizioniseed.it/lib/pkp/pages:/var/www/vhosts/edizioniseed.it/journals.edizioniseed.it/lib/pkp/lib/adodb:/var/www/vhosts/edizioniseed.it/journals.edizioniseed.it/lib/pkp/lib/phputf8:/var/www/vhosts/edizioniseed.it/journals.edizioniseed.it/lib/pkp/lib/pqp/classes:/var/www/vhosts/edizioniseed.it/journals.edizioniseed.it/lib/pkp/lib/smarty:.:')
 in 
/var/www/vhosts/edizioniseed.it/journals.edizioniseed.it/plugins/generic/pln/lib/bagit.php
 on line 32, referer: 
http://journals.edizioniseed.it/index.php/FE/manager

And I can’t disable the plugin because the plugin manager page is blank!

I tried to disable the plugin by db modifing (or deleting) the line plnplugin in plugin_setting table and I can see my journal pages but the plugin manager page keep to be blank.

So the momentary workaround is to remove the pln folder by the plugin folder of my site but I would solve my problem.

Have you got any idea?

Thank you.

Hi all,

Tagging @mjordan.

Regards,
Alec Smecher
Public Knowledge Project Team

Hi Enzo,

Can you confirm that Archive/Tar.php is in the PHP include path used by OJS? If it’s not, that would explain the require_once() error. Even though pear list shows that Archive_Tar is installed, it is possible that the path used by your the command-line version of PHP and the path used by OJS are different.

Also, what version of OJS are you running?

Mark
PKP Team

Hi,
I’m using OJS 2.4.7.1. I don’t know how to check if Archive/Tar.php is in the PHP include path.

Thank you,
Enzo

Hi Enzo,

It appears the output of phpinfo() doesn’t indicate that Archive/Tar is installed. However, this PHP code does:

<?php

include 'PEAR/Registry.php';

$reg = new PEAR_Registry;
foreach ($reg->listPackages() as $package) {
    print "$package <br />";
}

Since you have command-line access to your server, you can put that code in a file and then visit the file’s URL in your browser. The output will include archive_tar in the list of installed extensions. Of course, you should remove the file immediately after doing this test. If you don’t see archive-tar in the list, we’ve narrowed down the problem.

Mark
PKP Team

Hi, I tried to create a php file with your code and upload it on my server, but get a blank page.

This is the log:
[Wed Dec 09 09:04:56.827814 2015] [fcgid:warn] [pid 25775] [client 217.73.208.152:38059] mod_fcgid: stderr: ojs2 has produced an error
[Wed Dec 09 09:04:56.827855 2015] [fcgid:warn] [pid 25775] [client 217.73.208.152:38059] mod_fcgid: stderr: Message: WARNING: include_once(PEAR5.php): failed to open stream: No such file or directory
[Wed Dec 09 09:04:56.827880 2015] [fcgid:warn] [pid 25775] [client 217.73.208.152:38059] mod_fcgid: stderr: In file: /var/www/vhosts/edizioniseed.it/journals.edizioniseed.it/plugins/generic/pln/lib/Archive/PEAR.php
[Wed Dec 09 09:04:56.827889 2015] [fcgid:warn] [pid 25775] [client 217.73.208.152:38059] mod_fcgid: stderr: At line: 730
[Wed Dec 09 09:04:56.827896 2015] [fcgid:warn] [pid 25775] [client 217.73.208.152:38059] mod_fcgid: stderr: Stacktrace:
[Wed Dec 09 09:04:56.827904 2015] [fcgid:warn] [pid 25775] [client 217.73.208.152:38059] mod_fcgid: stderr: Server info:
[Wed Dec 09 09:04:56.827911 2015] [fcgid:warn] [pid 25775] [client 217.73.208.152:38059] mod_fcgid: stderr: OS: Linux
[Wed Dec 09 09:04:56.827919 2015] [fcgid:warn] [pid 25775] [client 217.73.208.152:38059] mod_fcgid: stderr: PHP Version: 5.5.9-1ubuntu4.14
[Wed Dec 09 09:04:56.827926 2015] [fcgid:warn] [pid 25775] [client 217.73.208.152:38059] mod_fcgid: stderr: Apache Version: N/A
[Wed Dec 09 09:04:56.827934 2015] [fcgid:warn] [pid 25775] [client 217.73.208.152:38059] mod_fcgid: stderr: DB Driver: mysql
[Wed Dec 09 09:04:56.827941 2015] [fcgid:warn] [pid 25775] [client 217.73.208.152:38059] mod_fcgid: stderr: DB server version: 5.5.41-0ubuntu0.14.04.1
[Wed Dec 09 09:04:56.827949 2015] [fcgid:warn] [pid 25775] [client 217.73.208.152:38059] mod_fcgid: stderr: ojs2 has produced an error
[Wed Dec 09 09:04:56.827958 2015] [fcgid:warn] [pid 25775] [client 217.73.208.152:38059] mod_fcgid: stderr: Message: WARNING: include_once(): Failed opening ‘PEAR5.php’ for inclusion (include_path=’.:/var/www/vhosts/edizioniseed.it/journals.edizioniseed.it/classes:/var/www/vhosts/edizioniseed.it/journals.edizioniseed.it/pages:/var/www/vhosts/edizioniseed.it/journals.edizioniseed.it/lib/pkp:/var/www/vhosts/edizioniseed.it/journals.edizioniseed.it/lib/pkp/classes:/var/www/vhosts/edizioniseed.it/journals.edizioniseed.it/lib/pkp/pages:/var/www/vhosts/edizioniseed.it/journals.edizioniseed.it/lib/pkp/lib/adodb:/var/www/vhosts/edizioniseed.it/journals.edizioniseed.it/lib/pkp/lib/phputf8:/var/www/vhosts/edizioniseed.it/journals.edizioniseed.it/lib/pkp/lib/pqp/classes:/var/www/vhosts/edizioniseed.it/journals.edizioniseed.it/lib/pkp/lib/smarty:.:’)
[Wed Dec 09 09:04:56.827969 2015] [fcgid:warn] [pid 25775] [client 217.73.208.152:38059] mod_fcgid: stderr: In file: /var/www/vhosts/edizioniseed.it/journals.edizioniseed.it/plugins/generic/pln/lib/Archive/PEAR.php
[Wed Dec 09 09:04:56.827977 2015] [fcgid:warn] [pid 25775] [client 217.73.208.152:38059] mod_fcgid: stderr: At line: 730
[Wed Dec 09 09:04:56.827984 2015] [fcgid:warn] [pid 25775] [client 217.73.208.152:38059] mod_fcgid: stderr: Stacktrace:
[Wed Dec 09 09:04:56.827992 2015] [fcgid:warn] [pid 25775] [client 217.73.208.152:38059] mod_fcgid: stderr: Server info:
[Wed Dec 09 09:04:56.827999 2015] [fcgid:warn] [pid 25775] [client 217.73.208.152:38059] mod_fcgid: stderr: OS: Linux
[Wed Dec 09 09:04:56.828007 2015] [fcgid:warn] [pid 25775] [client 217.73.208.152:38059] mod_fcgid: stderr: PHP Version: 5.5.9-1ubuntu4.14
[Wed Dec 09 09:04:56.828014 2015] [fcgid:warn] [pid 25775] [client 217.73.208.152:38059] mod_fcgid: stderr: Apache Version: N/A
[Wed Dec 09 09:04:56.828022 2015] [fcgid:warn] [pid 25775] [client 217.73.208.152:38059] mod_fcgid: stderr: DB Driver: mysql
[Wed Dec 09 09:04:56.828029 2015] [fcgid:warn] [pid 25775] [client 217.73.208.152:38059] mod_fcgid: stderr: DB server version: 5.5.41-0ubuntu0.14.04.1

I solved my problem coping Archive/Tar.php within the /plugins/generic/pln/lib folder .

Thank you,

Hi, Enzo,
I have exactly the same issue as you had. How did you fix it! [quote=“Enzo, post:12, topic:4346”]
I solved my problem coping Archive/Tar.php within the /plugins/generic/pln/lib folder
[/quote]
Where do you find the ‘Archive/Tar.php’ - could you explain what you did you meant please.
Thanks.