Hello everyone!
in OMP 3.2.1-2 I have an error if I try to delete a press at the page:
https://<DNS-NAME>/index.php/index/admin/contexts
The error is: invalid input syntax for integer: "STATUS_PUBLISHED" Query: select "s".* from "submissions" as "s" where "s"."context_id" = ? and "s"."status" in (?) group by "s"."submission_id" order by "s"."date_submitted" desc in /lib/pkp/classes/db/DAO.inc.php
The fatal error is caused by this: PHP Warning: Use of undefined constant STATUS_PUBLISHED - assumed STATUS_PUBLISHED'
Following the hint I’ve found on:
I’ve added this workaround code at line 83 and 108 of ‘classes/publicationFormat/PublicationFormatTombstoneManager.inc.php’: import('lib.pkp.classes.submission.PKPSubmission');
Do you already know this bug? Do you have a better suggestion to correct it?
Thanks
Generally we’re happiest to have a pull request to the latest stable branch (that’s currently stable-3_3_0); we can take care of cherry-picking forward from there to main. However, if you’re working with stable-3_2_1, that’s fine too!
Thanks,
Alec Smecher
Public Knowledge Project Team