PDFs of some articles in a published issue keeps getting deleted/removed. This seems to happen randomly, in current and past issues. Even after editing the affected submissions and reuploading the removed PDFs, some still get removed after some time.
When an affected submission is viewed from the dashboard, the galley created is still there but without the PDF file.
Website running OJS 3.4.0.3 with Manuscript child theme.
This has been happening for a year now. How can this be fixed please?
See the attached screenshots below.
I have seen cases where PDFs were not displayed in published editions when they were linked to âArticle Componentsâ of the âsupplementary filesâ type.
I suggest comparing the article component associated with a PDF galley that is being displayed with one that is not.
Thatâs very odd behaviour and hard to guess whatâs happening from here â but as a start, Iâd recommend upgrading to the latest 3.4.0-x release. A lot of bugs have been fixed since 3.4.0-3.
Regards,
Alec Smecher
Public Knowledge Project Team
I dont know if this is still a problem (About 80 results here):
SELECT *
FROM publication_galleys as pg1
WHERE pg1.submission_file_id
IN ( SELECT pg.submission_file_id
FROM publication_galleys as pg
LEFT JOIN submission_files as sf ON (pg.submission_file_id = sf.file_id)
WHERE pg.submission_file_id IS NOT NULL
AND sf.file_id IS NULL );
There are no errors in the log file and no detected pattern. At this moment we have uploaded again all the files but it just a matter of time before they disapear again.
This is still too vague for me to do much investigation, but just on a whim, do you use the XML import export tools? Can you check the access log for NativeImportExportPlugin to see if it appears with a POST request?
Regards,
Alec Smecher
Public Knowledge Project Team
@ugp2 and @PaideiaStudio, I think @ugp2 is right â the join on submission_files should use submission_file_id, notfile_id.
Unfortunately I canât replicate this behaviour, so Iâll need someone who is experiencing it to investigate further and see if they can determine more about the causes and conditions.
Regards,
Alec Smecher
Public Knowledge Project Team
We have noticed that when a PDF is deleted (changed date-time of the relevant directory), the following message appears in the other_vhosts_access.log: "POST /$$$call$$$/grid/article-galleys/article-galley-grid/delete-galley?submissionId=99999&publicationId=99999& representationId=99999 HTTP/1.1â 200 /537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36â
However, I see no connection between the submission or galley mentioned there and the deleted PDF. It concerns a completely different issue and even a different magazine. But maybe it will help you @asmecher find the cause?
That does help, but Iâve taken a look through the code and still canât spot where there is a mismatch. Do you by any chance have a database backup taken after that galley was created, but before it was deleted?
Thanks,
Alec Smecher
Public Knowledge Project Team
Iâm working with @ugp2 on this, and others are welcome to jump in too.
So far the challenge has been identifyingâŠ
The event that triggers the galleys to be removed, and
The relationship between that event and the erroneously removed galley.
I think weâve identified the first part as a POST request to delete a galley. It seems that in some cases, this results in the additional deletion of an unrelated galley.
However, weâre still trying to identify the second part.
What would be extremely helpful to me is the following data:
A database dump that was captured before the erroneous deletion,
Information about which galley was appropriately deleted (assuming the first part above is correct), and
Information about which galley was accidentally deleted
This combination should give me enough to reproduce the issue and debug it. My own attempts run locally have not replicated the problem yet.
Thanks,
Alec Smecher
Public Knowledge Project Team
We appear to be having a similar problem to @ugp2. Iâm currently trying to get out technical team to check if there is a difference between our back ups and our deployed installation (e.g. if something has disappeared in the meantime). That might take a bit of time due to holidays of our technical team.
Do I understand correctly that this query might help us measure how many galleys are âmissingâ?
SELECT *
FROM publication_galleys as pg1
WHERE pg1.submission_file_id IN (
SELECT pg.submission_file_id
FROM publication_galleys as pg
LEFT JOIN submission_files as sf ON (pg.submission_file_id = sf.submission_file_id)
WHERE pg.submission_file_id IS NOT NULL
AND sf.submission_file_id IS NULL
);
Iâm wondering if other installations who have this problem also use the OA switchboard plugin? It was causing errors for us, according to the logs, in at least one of the cases where a galley seemed to have disappeared.
Thanks for the follow-up â that would definitely explain the problems mentioned in this thread, and also why I was unable to reproduce it locally using a newer 3.4.0-x codebase.
Regards,
Alec Smecher
Public Knowledge Project Team