We're updating the issue view to help you get more done. 

Better error handling for invalid PDFs

Description

Invalid PDFs that are uploaded via a metadata media fields currently throw the following error. Make this nicer!

Warning: Division by zero in /data/nauman/app/lib/core/Plugins/Media/PDFWand.php on line 500

Warning: filesize(): stat failed for /data/nauman/media/nauman/images/5/88528_ca_attribute_values_value_blob_541_icon.jpg in /data/nauman/app/lib/core/Plugins/Media/PDFWand.php on line 680

Warning: md5_file(/data/nauman/media/nauman/images/5/88528_ca_attribute_values_value_blob_541_icon.jpg): failed to open stream: No such file or directory in /data/nauman/app/lib/core/BaseModel.php on line 4645

Warning: Division by zero in /data/nauman/app/lib/core/Plugins/Media/PDFWand.php on line 479

Warning: Division by zero in /data/nauman/app/lib/core/Plugins/Media/PDFWand.php on line 480

Warning: Division by zero in /data/nauman/app/lib/core/Plugins/Media/PDFWand.php on line 500

Warning: filesize(): stat failed for /data/nauman/media/nauman/images/5/38470_ca_attribute_values_value_blob_541_iconlarge.jpg in /data/nauman/app/lib/core/Plugins/Media/PDFWand.php on line 680

Warning: md5_file(/data/nauman/media/nauman/images/5/38470_ca_attribute_values_value_blob_541_iconlarge.jpg): failed to open stream: No such file or directory in /data/nauman/app/lib/core/BaseModel.php on line 4645
...

Environment

None

Assignee

User known

Reporter

Julia Weist

Labels

None

Affects versions

Priority

Major
Configure