Help needed troubleshooting: Unable to upload ANY media anymore

I am unable to upload ANY media anymore. I am currently running git using ImageMagick and PHP 7.4.10. I believe it started when php was upgraded to 7.4, as previously working installs of earlier versions are also not working anymore.


I am leaning towards issues with tilepic and larger formats such as _page. It fails for all types of media (jpg, tiff, pdf, etc). Any ideas where I should be looking? I'm on a shared server.

For example this is when I try to upload a single jpg: note: ~XXXXX~ replacing full URL

Error displayed:

  • There are errors preventing information in specific fields from being saved:
    • Object media representation (default): Couldn't write file: Couldn't open image /tmp/phpT9wrxH.jpg


php error displayed:

Warning: md5_file(~xxxxx~/media/collectiveaccess/images/1/5/71259_ca_object_representations_media_1528_page.jpg): failed to open stream: No such file or directory in ~xxxxx~/app/lib/BaseModel.php on line 4899

Warning: filemtime(): stat failed for ~xxxxx~/media/collectiveaccess/images/1/5/71259_ca_object_representations_media_1528_page.jpg in ~xxxxx~/app/lib/BaseModel.php on line 4900



and the Log file:

2021-08-12 9:05:18 - DEBUG --> Executing command: '/usr/bin/identify/identify 2> /dev/null'

2021-08-12 9:05:19 - DEBUG --> Executing command: '/usr/bin/gs -v 2> /dev/null'

2021-08-12 9:06:15 - DEBUG --> Executing command: '/usr/bin/identify -format "%m" '/tmp/phpT9wrxH.jpg[0]' 2> /dev/null'

2021-08-12 9:06:15 - DEBUG --> Executing command: '/usr/bin/identify -format "%m;%w;%h;%[colorspace];%[depth];%[xresolution];%[yresolution]\n" '/tmp/phpT9wrxH.jpg' 2> /dev/null'

2021-08-12 9:06:16 - DEBUG --> Executing command: '/usr/bin/identify -format '%[DPX:*]' '/tmp/phpT9wrxH.jpg' 2> /dev/null'

2021-08-12 9:06:16 - DEBUG --> Executing command: '/usr/bin/convert '/tmp/phpT9wrxH.jpg' '~xxxxx~/app/tmp/imiptc8JBVaH.iptc' 2> /dev/null'

2021-08-12 9:06:17 - DEBUG --> Executing command: '/usr/bin/convert '/tmp/phpT9wrxH.jpg[0]' -quality 75 -resize 86x72 -filter Cubic -crop 72x72+7+0 -colorspace sRGB '~xxxxx~/media/collectiveaccess/images/1/5/12033_ca_object_representations_media_1528_icon.jpg' 2> /dev/null'

2021-08-12 9:06:20 - DEBUG --> Executing command: '/usr/bin/convert '/tmp/phpT9wrxH.jpg[0]' -quality 75 -resize 299x250 -filter Cubic -crop 250x250+25+0 -colorspace sRGB '~xxxxx~/media/collectiveaccess/images/1/5/5159_ca_object_representations_media_1528_iconlarge.jpg' 2> /dev/null'

2021-08-12 9:06:25 - DEBUG --> Executing command: '/usr/bin/convert '/tmp/phpT9wrxH.jpg[0]' -quality 75 -resize 72x60 -filter Cubic -colorspace sRGB '~xxxxx~/media/collectiveaccess/images/1/5/52677_ca_object_representations_media_1528_tiny.jpg' 2> /dev/null'

2021-08-12 9:06:28 - DEBUG --> Executing command: '/usr/bin/convert '/tmp/phpT9wrxH.jpg[0]' -quality 75 -resize 120x100 -filter Cubic -colorspace sRGB '~xxxxx~/media/collectiveaccess/images/1/5/69405_ca_object_representations_media_1528_thumbnail.jpg' 2> /dev/null'

2021-08-12 9:06:34 - DEBUG --> Executing command: '/usr/bin/convert '/tmp/phpT9wrxH.jpg[0]' -quality 75 -resize 110x92 -filter Cubic -crop 110x75+0+8.5 -colorspace sRGB '~xxxxx~/media/collectiveaccess/images/1/5/38983_ca_object_representations_media_1528_widethumbnail.jpg' 2> /dev/null'

2021-08-12 9:06:37 - DEBUG --> Executing command: '/usr/bin/convert '/tmp/phpT9wrxH.jpg[0]' -quality 75 -resize 240x201 -filter Cubic -colorspace sRGB '~xxxxx~/media/collectiveaccess/images/1/5/87642_ca_object_representations_media_1528_small.jpg' 2> /dev/null'

2021-08-12 9:06:39 - DEBUG --> Executing command: '/usr/bin/convert '/tmp/phpT9wrxH.jpg[0]' -quality 75 -resize 180x151 -filter Cubic -colorspace sRGB '~xxxxx~/media/collectiveaccess/images/1/5/43665_ca_object_representations_media_1528_preview.jpg' 2> /dev/null'

2021-08-12 9:06:42 - DEBUG --> Executing command: '/usr/bin/convert '/tmp/phpT9wrxH.jpg[0]' -quality 75 -resize 170x142 -filter Cubic -colorspace sRGB '~xxxxx~/media/collectiveaccess/images/1/5/47921_ca_object_representations_media_1528_preview170.jpg' 2> /dev/null'

2021-08-12 9:06:46 - DEBUG --> Executing command: '/usr/bin/convert '/tmp/phpT9wrxH.jpg[0]' -quality 75 -resize 200x167 -filter Cubic -crop 200x120+0+24 -colorspace sRGB '~xxxxx~/media/collectiveaccess/images/1/5/28098_ca_object_representations_media_1528_widepreview.jpg' 2> /dev/null'

2021-08-12 9:06:49 - DEBUG --> Executing command: '/usr/bin/convert '/tmp/phpT9wrxH.jpg[0]' -quality 75 -resize 400x335 -filter Cubic -colorspace sRGB '~xxxxx~/media/collectiveaccess/images/1/5/46980_ca_object_representations_media_1528_medium.jpg' 2> /dev/null'

2021-08-12 9:06:52 - DEBUG --> Executing command: '/usr/bin/convert '/tmp/phpT9wrxH.jpg[0]' -quality 75 -resize 538x450 -filter Cubic -colorspace sRGB '~xxxxx~/media/collectiveaccess/images/1/5/93910_ca_object_representations_media_1528_mediumlarge.jpg' 2> /dev/null'

2021-08-12 9:06:55 - DEBUG --> Executing command: '/usr/bin/convert '/tmp/phpT9wrxH.jpg[0]' -quality 75 -resize 700x585 -filter Cubic -colorspace sRGB '~xxxxx~/media/collectiveaccess/images/1/5/30119_ca_object_representations_media_1528_large.jpg' 2> /dev/null'

2021-08-12 9:07:03 - DEBUG --> Executing command: '/usr/bin/convert '/tmp/phpT9wrxH.jpg[0]' -quality 75 -resize 1000x836 -filter Cubic -colorspace sRGB '~xxxxx~/media/collectiveaccess/images/1/5/71259_ca_object_representations_media_1528_page.jpg' 2> /dev/null'

2021-08-12 9:07:13 - DEBUG --> Executing command: '/usr/bin/identify/identify -format "%m;%w;%h\n" '/tmp/phpT9wrxH.jpg' 2> /dev/null'

Comments

  • An update: I believe I am having memory issues that are causing convert to fail with larger files.

    I appended to the /convert command in /app/lib/plugins/media/ImageMagick.php " -limit memory 32MiB -limit map 64MiB" and now I am getting better results ; Still failing to create _page sizes, but at least media will upload enough to be viewable.

Sign In or Register to comment.