Hi all,
I have an error in two different servers running AtoM 2.5.3-172 when I upload a PDF image through the GUI.
The error ends being NULL digital_object.path value:
This is from nginx.log:
2020/10/30 18:02:48 [error] 928#928: *577 FastCGI sent in stderr: "PHP message: Unable to execute INSERT statement. [wrapped: SQLSTATE[HY000]: General error: 1364 Field 'name' doesn't have a default value]" while reading response header from upstream, client: 95.120.153.214, server: _, request: "POST /index.php/testing/object/addDigitalObject HTTP/1.1", upstream: "fastcgi://unix:/run/php7.2-fpm.atom.sock:", host: "188.164.195.165", referrer: "
http://188.164.195.165/index.php/testing/object/addDigitalObject"
And this is the database insert log:
2020-10-30T18:02:48.621153Z 4 Query INSERT INTO object (`CLASS_NAME`,`CREATED_AT`,`UPDATED_AT`) VALUES ('QubitDigitalObject','2020-10-30 11:02:48','2020-10-30 11:02:48')
2020-10-30T18:02:48.621513Z 4 Query INSERT INTO digital_object (`ID`,`OBJECT_ID`,`PATH`,`PARENT_ID`) VALUES (223394,223393,'',223392)
2020-10-30T18:02:48.622005Z 4 Query ROLLBACK
If I upload the digital object through the cli, it works as expected:
root@ubuntu18:/usr/share/nginx/atom# php symfony digitalobject:load --path="/root/" --index /root/niatiros.csv
>> digital-object Load digital objects from /root/niatiros.csv...
(Oct 30, 09:41:48 AM) Loading 'niatiros.pdf' (1 of 1 remaining)
>> digital-object Successfully Loaded 1 digital objects.
root@ubuntu18:/usr/share/nginx/atom#
Best,
Jesus.