OMP 3.2.0.3 publications formats publication date

When I go to change Publication Date for a book, I go for the edit Metadata for them:

Publication Formats > Edit metadata fields >Metadata

when i do click in Edit link the following error appears and
“Failed Ajax request or invalid JSON returned”
Can do nothing more

The error log file shows this error:
omp: 404 Not Found, referer: http://editorial.agrosavia.co/index.php/publicaciones/workflow/index/70/5

Any suggestion?

Is there already a solution or workaround?
When testing OMP 3.2.0-3 we got the same

Hi @ugp2,

Check your PHP error log for details.

Regards,
Alec Smecher
Public Knowledge Project Team

Hi @asmecher,

By editing the metadata of the Publication Formats, only this is mentioned:
omp: 404 Not Found, referer: https://…/index.php/ugp/workflow/index/46/5

When opening an active submission this is also in the error log:
[Fri Nov 13 15:36:22.096315 2020] [php7:notice] [pid 20521] [client …] PHP Notice: tempnam(): file created in the system’s temporary directory in /disk/www/…/classes/codelist/ONIXCodelistItemDAO.inc.php on line 84, referer: https://…/index.php/ugp/submissions
[Fri Nov 13 15:36:22.163230 2020] [php7:notice] [pid 20521] [client …] PHP Notice: tempnam(): file created in the system’s temporary directory in /disk/www/…/classes/codelist/ONIXCodelistItemDAO.inc.php on line 84, referer: https://…/index.php/ugp/submissions
[Fri Nov 13 15:36:22.176652 2020] [php7:notice] [pid 20521] [client …] PHP Notice: tempnam(): file created in the system’s temporary directory in /disk/www/…/classes/codelist/ONIXCodelistItemDAO.inc.php on line 84, referer: https://…/index.php/ugp/submissions
[Fri Nov 13 15:36:23.995533 2020] [php7:notice] [pid 2704] [client …] PHP Notice: tempnam(): file created in the system’s temporary directory in /disk/www/…/classes/codelist/ONIXCodelistItemDAO.inc.php on line 84, referer: https://…/index.php/ugp/workflow/index/46/5

Regards,
Pia Spriensma
UGP

Hi @ugp2,

I suspect your file permissions are not correct in your files_dir. It looks like OMP is unable to create temporary files in a directory called temp/ in the files_dir specified in config.inc.php.

Regards,
Alec Smecher
Public Knowledge Project Team

Hi @asmecher,

The /temp directory is set wide open. All other error messages have disappeared except for this one: omp: 404 Not Found, referer: https://…/index.php/ugp/workflow/index/46/5
We still can’t edit the metadata of a submission. Adding works, deleting and modifying doesn’t.

Hop you can help,
Pia Spriensma,
UGP

Hi @ugp2,

That message states the referral URL, but not the URL that’s experiencing the 404. I’d suggest checking your Apache access log to see what URL the 404 errors are appearing on.

Regards,
Alec Smecher
Public Knowledge Project Team

Hi @asmecher,

In that file I unfortunately only find this:
…:443 [ip-adress] - - [25/Nov/2020:11:18:18 +0100] “GET /index.php/ugp/$$$call$$$/grid/catalog-entry/identification-code-grid/edit-code?submissionId=46&identificationCodeId=107&_=1606298965644 HTTP/1.1” 404 6006 “https://…/index.php/ugp/workflow/index/46/5” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.66 Safari/537.36”

Do you know which file/directory it’s about?

Regards,
Pia Spriensma
UGP

Hi @ugp2,

This looks like a back-end operation to edit an identification code assigned to a submission. The request should be handled by controllers/grid/catalogEntry/IdentificationCodeGridHandler.inc.php. Beyond that, there’s not much more I can tell you – those IDs will be unique to your press.

Regards,
Alec Smecher
Public Knowledge Project Team

Hi @asmecher,

After a lot of analyses we still can’t come up with a solution. Our last test was a clean OMP 3.2.0-3 installation (straight from the download) and created an empty database with it. Even then we have the same problem.
Do you want to test if it is possible to edit an ISBN number in your situation?
In all cases the deletion will not work either. After the “ok” the screen remains.

Kind regards,
Pia Spriensma
UGP

Hi @ugp2,

Thanks, I was able to track this down and fix it. There’s a patch here: Error editing identification code in OMP · Issue #6460 · pkp/pkp-lib · GitHub

Regards,
Alec Smecher
Public Knowledge Project Team

Hi @asmecher,

Thanks, I implemented the patch and it works. For “Publication Dates” I made a similar change. It didn’t work either. The form was modified but the ‘…GridHandler’ and ‘…GridRow’ were not.

Regards,

Hi @ugp2,

Thanks for the heads-up, I’ve ported a similar fix to publication dates (and markets was similarly affected) and added another patch for those to the above entry.

Regards,
Alec Smecher
Public Knowledge Project Team