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?
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
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.
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:
[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.
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.
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.
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.