LOCKSS & CLOCKSS Not Working

@rcgillis Have a look our LOCKSS & CLOCKSS are not working. We are using OJS 3.1.1.4

https://pjo.org.pk/index.php/pjo/gateway/lockss
https://pjo.org.pk/index.php/pjo/gateway/clockss

c47b1bec0b8c77510c0d9ca137a188d871c0259d_2_690x334

What does your log say when you reach the first link and you get the white screen?

@marc How can i check log regarding this CLOCKSS?

https://docs.pkp.sfu.ca/admin-guide/en/troubleshooting#error-reporting-blank-pages-diagnostics-etc

In linux I would do it as follows:

  1. $ tail -f /var/log/apache/error.log
  2. From your browser, refresh you lockss url.
  3. Control+C (to stop tail)
  4. Copy and paste this segment of log in a pastebin or so.

Cheers,
m.

@marc we are using hosting server and we are not allow to manipulate linux command. In hosting we use cpanel only.

Below i got it in error.log file. Please guide

#1 /home/pjoorgpk/public_html/lib/pkp/classes/core/PKPRouter.inc.php(390): GatewayHandler->clockss(Array, Object(Request))

#1 /home/pjoorgpk/public_html/lib/pkp/classes/core/PKPRouter.inc.php(390): GatewayHandler->lockss(Array, Object(Request))

[08-Apr-2021 07:15:15 UTC] PHP Fatal error: Uncaught Error: Call to a member function getId() on null in /home/pjoorgpk/public_html/pages/issue/IssueHandler.inc.php:52

Is this all that you get in your error log when you reach the lockks page?
What is your php version?

@marc error log file is to big in size around 1GB i got it these syntax error and LOCKSS & CLOCKSS logs only.

Ok. Then publish your the (more or less) 10 lines before, and 5 lines after any lockss reference or ERROR message from your log.

To make it easier to read, use pastebin.com and publish the link here.

And please, remember to post your php version.

BTW, how did you install the LOCKSS plugin?
Manually or from the gallery?

What OJS tells you about the plugin?
Asks for an upgrade or all is fine?

[07-Apr-2021 06:49:38 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Smarty has a deprecated constructor in /home/pjoorgpk/public_html/lib/pkp/lib/vendor/smarty/smarty/libs/Smarty.class.php on line 64
[07-Apr-2021 06:49:38 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; ADODB_Cache_File has a deprecated constructor in /home/pjoorgpk/public_html/lib/pkp/lib/adodb/adodb.inc.php on line 263
[07-Apr-2021 06:49:38 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; ADOConnection has a deprecated constructor in /home/pjoorgpk/public_html/lib/pkp/lib/adodb/adodb.inc.php on line 359
[07-Apr-2021 06:49:38 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; ADORecordSet has a deprecated constructor in /home/pjoorgpk/public_html/lib/pkp/lib/adodb/adodb.inc.php on line 2921
[07-Apr-2021 06:49:38 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; ADORecordSet_array has a deprecated constructor in /home/pjoorgpk/public_html/lib/pkp/lib/adodb/adodb.inc.php on line 3939
[07-Apr-2021 06:49:38 UTC] PHP Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/pjoorgpk/public_html/lib/pkp/lib/adodb/adodb.inc.php on line 1003
[07-Apr-2021 06:49:38 UTC] PHP Warning: Declaration of PKPUsageEventPlugin::getEnabled() should be compatible with LazyLoadPlugin::getEnabled($contextId = NULL) in /home/pjoorgpk/public_html/lib/pkp/plugins/generic/usageEvent/PKPUsageEventPlugin.inc.php on line 24
[07-Apr-2021 06:49:38 UTC] PHP Warning: Declaration of CustomBlockPlugin::getBlockContext() should be compatible with BlockPlugin::getBlockContext($contextId = NULL) in /home/pjoorgpk/public_html/plugins/generic/customBlockManager/CustomBlockPlugin.inc.php on line 19
[07-Apr-2021 06:49:38 UTC] PHP Warning: Declaration of CustomBlockPlugin::getEnabled() should be compatible with BlockPlugin::getEnabled($contextId = NULL) in /home/pjoorgpk/public_html/plugins/generic/customBlockManager/CustomBlockPlugin.inc.php on line 19
[07-Apr-2021 06:49:38 UTC] PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function PKPHandler::setupTemplate(), 0 passed in /home/pjoorgpk/public_html/pages/gateway/GatewayHandler.inc.php on line 26 and exactly 1 expected in /home/pjoorgpk/public_html/lib/pkp/classes/handler/PKPHandler.inc.php:433
Stack trace:
#0 /home/pjoorgpk/public_html/pages/gateway/GatewayHandler.inc.php(26): PKPHandler->setupTemplate()
#1 /home/pjoorgpk/public_html/lib/pkp/classes/core/PKPRouter.inc.php(390): GatewayHandler->lockss(Array, Object(Request))
#2 /home/pjoorgpk/public_html/lib/pkp/classes/core/PKPPageRouter.inc.php(232): PKPRouter->_authorizeInitializeAndCallRequest(Array, Object(Request), Array, false)
#3 /home/pjoorgpk/public_html/lib/pkp/classes/core/Dispatcher.inc.php(134): PKPPageRouter->route(Object(Request))
#4 /home/pjoorgpk/public_html/lib/pkp/classes/core/PKPApplication.inc.php(247): Dispatcher->dispatch(Object(Request))
#5 /home/pjoorgpk/public_html/index.php(68): PKPApplication->execute()
#6 {main}
thrown in /home/pjoorgpk/public_html/lib/pkp/classes/handler/PKPHandler.inc.php on line 433
[07-Apr-2021 06:49:39 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Smarty has a deprecated constructor in /home/pjoorgpk/public_html/lib/pkp/lib/vendor/smarty/smarty/libs/Smarty.class.php on line 64
[07-Apr-2021 06:49:39 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; ADODB_Cache_File has a deprecated constructor in /home/pjoorgpk/public_html/lib/pkp/lib/adodb/adodb.inc.php on line 263

Error log URL
https://pastebin.pl/view/a57fe302

and i haven’t install any LOCKSS & CLOCKSS plugin i just check in archives area, screenshot is attached.

Untitled

PHP 7.3 (ea-php73) we are using on hosting server

Your php version is fine.

The only error shown in your log is:

PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function 
PKPHandler::setupTemplate(), 0 passed in /home/pjoorgpk/public_html/pages/gateway
/GatewayHandler.inc.php on line 26 and exactly 1 expected 
in /home/pjoorgpk/public_html/lib/pkp/classes/handler/PKPHandler.inc.php:433

Try upgrading the plugin at Settings > Website > Plugins > Installed Plugins > PKP PN Plugin > Upgrade

imagen

url would be something like https://yourjournal/management/settings/website

(BTW, this is the LOCKSS plugin you are trying to enable, isn’t it?)

Hi all,

This isn’t related to the PKP PN error; it’s a mismatch in the code between the way a function is defined and the way it is used. In previous releases of PHP it used to generate a warning, but newer PHP releases now consider it an error. It has already been fixed since 2018; I’d recommend upgrading to a newer OJS. (See: [OJS] GatewayHandler setupTemplate() missing parameter · Issue #4116 · pkp/pkp-lib · GitHub)

Regards,
Alec Smecher
Public Knowledge Project Team

1 Like

@marc PKP PN Plugin not installed in my installed plugin gallery. How can i install it? Or if i want to upgrade my OJS 3.1.1.4 to newer one, then how is the procedure. Please guide.

Thanks @asmecher

@hussainyousaf forget my former suggestion and let’s do what Alec proposes.

Reading Alec’s link in gitHub you will see it was fixed in 3.1.1-5 so you only need to upgrade to this version to make it work… even I encourage you to upgrade to at least 3.2 or better to the last stable 3.3.

So please, make a backup of your site and do an upgrade.

After this, if you like, you can enable the PKP PN plugin (that is a lockss network for pkp journals) as follows:

https://docs.pkp.sfu.ca/learning-ojs/en/settings-website#plugins

Cheers,
m.

Thanks @marc

You please guide how can i update OJS to new stable version. Any guided steps or tutorial because in this process i cannot lost my running application and it’s data.

Basically you need to:

  1. Backup your existing system (files, database and configuration)
  2. Replace your code with the new version (download the new code and the replace the old one).
  3. Run the upgrade script (better in command-line, but you can also do it from your web)

As far as jumping directly to the last stable version (3.3.0-5) could be risky, let’s try with the last stable 3.2 (to be precise 3.2.1-4).

You have some instructions here. Try to follow them and contact here if you get in trouble:
https://pkp.sfu.ca/ojs/UPGRADE

But remember, is ESSENTIAL making a backup of your installation first, to rollback if something goes wrong with the installation.

To guide you I will need to know more about your installation and your profile:

  • Do you have a technical profile? I mean… you can do comman-line actions without assistance?
  • Where is this journal hosted? Self-server or hosting company?
  • Do you have ssh? If not… what tools do you have to reach your sever? ftp?
  • And how to you access your database?

Cheers,
m.

This topic was automatically closed after 11 hours. New replies are no longer allowed.