PKP PN plugin: network status OK but Deposits table stays empty (OJS 3.5.0.5)

Describe the issue or problem
The PKP PN plugin never creates any deposits. The Deposits table has shown “0 - 0 of 0 items” for several days. Network Status reads “The PKP PLN can accept deposits from this journal.” I expected the published issues to appear as Pending and then progress to Completed.

Steps I took leading up to the issue

  1. Installed PKP PN plugin on OJS 3.5.0.1, enabled it, and accepted all Terms of Use. Network status confirmed the PLN could accept deposits.
  2. Deposits table remained empty over several days.
  3. Upgraded OJS from 3.5.0.1 to 3.5.0.5. The upgrade removed the plugin.
  4. Reinstalled the plugin from the v4.0.0.0 release package. The Journal Identifier was preserved and all terms were re-accepted.
  5. Deposits table is still empty three days later.

What application are you using?
OJS 3.5.0.5, PKP PN plugin 4.0.0.0
Journal: https://mwsjournal.com
Journal Identifier: 351143CE-BDA7-499E-9708-3B6EC1BCD5D4

Additional information
The journal has 4 published back issues containing 13 articles.

  1. The scheduler cron runs every minute: /usr/bin/php -q /home/mwsjourn/public_html/lib/pkp/tools/scheduler.php run

  2. The job queue is empty and there are no failed jobs.

  3. In the scheduledTaskLogs directory I only ever see ProcessQueueJobs log files. There is never a log entry for the PKP PN Depositor task, which suggests the task is not being registered or scheduled at all.

    I have read the existing threads on this symptom (Jul 17, Jul 2, and the OJS 3.3 thread) and worked through the troubleshooting steps at https://docs.pkp.sfu.ca/pkp-pn/en/#troubleshooting without success.

Hi @mwsjournal,

If you’re using the most recent release of the PKP PN plugin, it is noted that it is experimental:

There is not yet a version of the plugin for PKP 3.5 that is working as of yet. Our developer is working on it and hopes to have it released soon. Keep an eye on the releases pages linked above for when the next version of the plugin drops (it will also become available through the plugin gallery, at the same time too, which is the recommended method of installing it) - that one will be the version that ought to work with OJS 3.5.

-Roger
PKP Team

Hi @rcgillis @jonasraoni

I installed the 4.0.0.0 version for OJS 3.5.0-5 from the plugin gallery, so I assumed this would be the official version that should work with OJS 3.5 Also, the message that the plugin is experimental was removed for the release on GitHub. During installation, I observed the following behaviour:

Installation took more than 15 minutes (spinning wheel). After I reloaded the plugin gallery page, The plugin was marked as “Up to date”. Also, the versions table record indicated 4.0.0.0 as version, and a post-run of the php tools/upgrade.php upgrade script didn’t show anything.

This was for a large journal having 912 issues. The plugin did not find the recently added issue, so still displays 912 instead of 913. BTW, the page navigation is missing, see Bug: Page navigation missing in status page · Issue #123 · pkp/pln · GitHub .

This I find in the most recent Depositor log:

[2026-08-29 13:40:12] https://www.chimia.ch
[2026-08-29 13:40:12] [Notice] Task process started.
[2026-08-29 13:40:12] [Notice] PKP Preservation Network Processor
[2026-08-29 13:40:12] [Notice] Depositor processing for CHIMIA.
[2026-08-29 13:40:12] [Notice] Getting service document.
[2026-08-29 13:40:13] [Notice] Processing new content.
[2026-08-29 13:40:13] [Error] Exception: Tried to insert APP\plugins\generic\pln\classes\depositObject\DepositObject without any properties for the pln_deposit_objects table. in /var/www/virtual/ojs.chimia.ch/htdocs/ojs/lib/pkp/classes/core/EntityDAO.php:155
Stack trace:
#0 /var/www/virtual/ojs.chimia.ch/htdocs/ojs/plugins/generic/pln/classes/depositObject/DAO.php(129): PKP\core\EntityDAO->_insert()
#1 /var/www/virtual/ojs.chimia.ch/htdocs/ojs/plugins/generic/pln/classes/depositObject/Repository.php(134): APP\plugins\generic\pln\classes\depositObject\DAO->insert()
#2 /var/www/virtual/ojs.chimia.ch/htdocs/ojs/plugins/generic/pln/classes/depositObject/Repository.php(259): APP\plugins\generic\pln\classes\depositObject\Repository->add()
#3 /var/www/virtual/ojs.chimia.ch/htdocs/ojs/plugins/generic/pln/classes/tasks/Depositor.php(249): APP\plugins\generic\pln\classes\depositObject\Repository->createNew()
#4 /var/www/virtual/ojs.chimia.ch/htdocs/ojs/plugins/generic/pln/classes/tasks/Depositor.php(111): APP\plugins\generic\pln\classes\tasks\Depositor->processNewDepositObjects()
#5 /var/www/virtual/ojs.chimia.ch/htdocs/ojs/lib/pkp/classes/scheduledTask/ScheduledTask.php(151): APP\plugins\generic\pln\classes\tasks\Depositor->executeActions()
#6 /var/www/virtual/ojs.chimia.ch/htdocs/ojs/lib/pkp/classes/scheduledTask/PKPScheduler.php(60): PKP\scheduledTask\ScheduledTask->execute()
{...}
#22 /var/www/virtual/ojs.chimia.ch/htdocs/ojs/lib/pkp/tools/scheduler.php(332): PKP\tools\CommandScheduler->execute()
#23 {main}
[2026-08-29 13:40:13] [Notice] Processing updated content.
[2026-08-29 13:40:13] [Notice] Packaging content for deposit.

The NativeXML export for this issue works.

When I run the Depositor process manually using php lib/pkp/tools/scheduler.php test and then choose the APP\plugins\generic\pln\classes\tasks\Depositor task, the process crashes:
Running [APP\plugins\generic\pln\classes\tasks\Depositor] PHP Warning: Undefined property: stdClass::$properties in /var/www/virtual/ojs.chimia.ch/htdocs/ojs/lib/pkp/classes/core/EntityDAO.php on line 112

PHP Warning: Attempt to read property "id" on null in /var/www/virtual/ojs.chimia.ch/htdocs/ojs/lib/pkp/classes/core/EntityDAO.php on line 112

PHP Warning: Attempt to read property "type" on null in /var/www/virtual/ojs.chimia.ch/htdocs/ojs/lib/pkp/classes/core/EntityDAO.php on line 112

PHP Warning: Undefined property: stdClass::$properties in /var/www/virtual/ojs.chimia.ch/htdocs/ojs/lib/pkp/classes/core/EntityDAO.php on line 112

PHP Warning: Attempt to read property "id" on null in /var/www/virtual/ojs.chimia.ch/htdocs/ojs/lib/pkp/classes/core/EntityDAO.php on line 112

PHP Warning: Attempt to read property "type" on null in /var/www/virtual/ojs.chimia.ch/htdocs/ojs/lib/pkp/classes/core/EntityDAO.php on line 112

.................................................. 2s FAIL

PHP Fatal error: Uncaught PDOException: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'as `do` where (not exists (select * from `journals` as `j` where `j`.`journal...' at line 1 in /var/www/virtual/ojs.chimia.ch/htdocs/ojs/lib/pkp/lib/vendor/laravel/framework/src/Illuminate/Database/Connection.php:605

{…}

Next Illuminate\Database\QueryException: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'as `do` where (not exists (select * from `journals` as `j` where `j`.`journal...' at line 1 (Connection: mysql, Host: localhost, Port: , Database: ojs, SQL: delete from `pln_deposit_objects` as `do` where (not exists (select * from `journals` as `j` where `j`.`journal_id` = `do`.`journal_id`) or (`do`.`deposit_id` is not null and not exists (select * from `pln_deposits` as `d` where `d`.`deposit_id` = `do`.`deposit_id`)) or (`do`.`object_type` in (Submission, PublishedArticle) and not exists (select * from `submissions` as `s` where `s`.`submission_id` = `do`.`object_id` and `s`.`context_id` = `do`.`journal_id`)) or (`do`.`object_type` = Issue and not exists (select * from `issues` as `i` where `i`.`issue_id` = `do`.`object_id` and `i`.`journal_id` = `do`.`journal_id`)))) in /var/www/virtual/ojs.chimia.ch/htdocs/ojs/lib/pkp/lib/vendor/laravel/framework/src/Illuminate/Database/Connection.php:838

I will uninstall the plugin now.

Hi @mpbraendle,

Thanks for reporting your experience. @jonasraoni - if that version is making its way into the plugin gallery - should we prevent it from appearing there ahead of the neweer release?

-Roger
PKP Team

@mpbraendle

small fix for mysql database

Hi @mwsjournal / @mpbraendle

Thanks for the feedback, the problem was happening when running the task through the task scheduler (lib/pkp/tools/scheduler.php run), the plugin isn’t loaded and breaks some expectations, something similar to this issue: Queue running via CLI worker does not trigger plugin hooks · Issue #9345 · pkp/pkp-lib · GitHub .

I’ve released a new version of the plugin yesterday with a couple of fixes, let me know if it addresses the problems you’ve had.

Best,
Jonas Raoni

Hi @jonasraoni

I have installed the plugin. The search/filter/pagination works nicely and the new issue was recognized after I started a schedule of the Depositor and it is being processed now.

One thing about installation:
We do have a test server where new plugins are installed. When that works, I push those to a Git repo and pull them to the production server (there then doing the standard tools/upgrade.php procedure).

The gallery page still does not return after installation and shows the rotating wheel icon.
However, after reloading the plugin page everything was fine.
The test server, of course, is behind a (simple) firewall in order to be not publicly visible. Is there a component in the PLN plugin installation that calls back a PKP server and then the response doesn’t get through to our server?

Which brings me also to the question whether there should be a test mode for PLN so that deposits don’t go the archive if a test server is used, but behavior can be simulated somehow.

One last thing about OJS 3.5 NativeXML export (also for @asmecher):
Our journal has a few issues that were processed (status = “Completed”) in OJS 3.4 with PKP PLN, but now show an error due to the NativeXML schema change for affiliations. These occur for some articles that were added in the early time when the journal was ported to OJS.

E.g. when exporting the failing issue the following error is produced:

php ./importExport.php NativeImportExportPlugin export gugus.xml chimia issue 52

int(774)

int(773) (this is a debug statement to find the submission which has the problem)

Exception: XML validation failed with:

Array

(

    [0] => LibXMLError Object

        (

            [level] => 2

            [code] => 1871

            [column] => 0

            [message] => Element '{http://pkp.sfu.ca}affiliation': Missing child element(s). Expected is ( {http://pkp.sfu.ca}name ).



            [file] =>

            [line] => 0

        )



)

in /var/www/virtual/ojs.chimia.ch/htdocs/ojs/lib/pkp/classes/xslt/XMLTypeDescription.php

For these articles, the affiliation was empty, but now it shows up as:

I assume these submissions were uploaded with QuickSubmit earlier.
I can remove the “empty” institution and possibly add (the correct) one. Usually, it is the publisher institution directly. But it is a tedious task having to loop through the NativeXML export step, identify the submission, and then fix it. Is there a quicker task to identify those (e.g. via database query)?

Which brings me to another topic that I’m not happy with the implementation for affiliations - but this a complete other topic that we can discuss elsewhere.

Hi!

  • Slowness to install: I can’t reproduce it, so it will require some debugging on your side.
  • External access: requests can be done against the host https://pkp-pn.lib.sfu.ca/ at different parts of the plugin, if you want to ensure the problem isn’t related to a pending request, you may disable the plugin before running the “upgrade”, then no external requests should be happening.
  • Test mode: Definitely agree, I’ve seen test servers depositing content, in my opinion this is very important, I can identify a couple of other side problems.
  • Bad affiliations: Do you have an empty affiliation record with no data? If yes, then I’d say it’s a bug at the OJS migration, empty affiliations shouldn’t generate a record with no name. Let me know if that’s the case and a GitHub issue should be open :thinking:

Best
Jonas Raoni

Hi @jonasraoni,

Upgrading to 4.0.1-0 fixed it. I used the Upgrade option on the existing plugin, so the Journal Identifier and accepted terms were preserved.

The Depositor task ran on the next scheduled cycle, and all 5 published issues now appear in the Deposits table with status “In Progress”. Previously the table stayed at 0 items and the task never appeared in scheduledTaskLogs.

OJS 3.5.0.5, PKP PN 4.0.1.0. Thank you for the quick fix. I’ll report back if the deposits don’t move on to Completed.

@mpbraendle do you have any feedback regarding the “bad affiliations”? If there’s a bug, I’d like to get it fixed at upstream.

Best,
Jonas Raoni

@jonasraoni I don’t think you need to do anything. The error occurred already in the NativeXML export. I have fixed now all articles that had missing affiliations, about 50 issues and around 5-10 articles per issue. In most of the cases these were so-called community publications by the society which were originally uploaded by QuickSubmit (with an additional plugin that disabled that the e-mail address was mandatory) . For most of them, I had to add only one affiliation (usually, the society itself) - now they even have a ROR.
Currently, 93 issues have PLN status “In Progress” - so they have been transmitted and are now processed at PKP side. I assume that will take some time. I see no errors anymore in the Depositor log:

[2026-09-26 02:00:50] [Notice] Trying status update for 1 (Issue: 50) (Local Status: [Transferred], Processing Status: [Unknown], Lockss Status: [Unknown])

[2026-09-26 02:00:50] [Notice] Processing status got for 1 -> (depositedByJournal)

[2026-09-26 02:00:51] [Notice] Trying status update for 2 (Issue: 51) (Local Status: [Transferred], Processing Status: [Unknown], Lockss Status: [Unknown])

[2026-09-26 02:00:51] [Notice] Processing status got for 2 -> (depositedByJournal)

[2026-09-26 02:00:51] [Notice] Trying status update for 3 (Issue: 52) (Local Status: [Transferred], Processing Status: [Unknown], Lockss Status: [Unknown])
...
[2026-09-26 02:02:10] [Notice] Processing status got for 911 -> (depositedByJournal)

[2026-09-26 02:02:10] [Notice] Trying status update for 914 (Issue: 999) (Local Status: [Transferred], Processing Status: [Unknown], Lockss Status: [Unknown])

[2026-09-26 02:02:11] [Notice] Processing status got for 914 -> (depositedByJournal)

[2026-09-26 02:02:11] [Notice] Sending deposits to the PKP PN.

[2026-09-26 02:02:11] [Notice] Pruning orphaned deposits.

[2026-09-26 02:02:11] [Notice] Task process stopped.

You may check on the PN server whether everything is ok. The journal identifier is 39502F9F-934E-4C53-B657-7346AE947A40.

Thanks for the report! As you didn’t flag anything wrong regarding the affiliation (I thought it could be an upgrade issue), I’ll set a timer to close this topic in one week :smiling_face_with_sunglasses:

Best,
Jonas Raoni