/
[uploader] Resizing non-uploaded image caused fatal error
[uploader] Resizing non-uploaded image caused fatal error
Imported from: http://groups.google.com/group/in-portal-bugs/browse_thread/thread/0d584d8d67e44e43#
When image upload isn't required then this means that there are no 100% guarantee that image will be there.
For such cases in template, where image will be displayed we:
- either display default image, e.g.
<inp2:unit-prefix_Field name="ImageField" format="resize:100x100;default:img/no_image.gif"/>
- or place
<inp2:m_if check="unit-prefix_Field" name="ImageField" db="db"> ... </inp2:m_if>
around image display code
If none of mentioned above happens then horrible fatal error happens, that results in "*The connection was reset*" message being returned from a web server with no idea about what caused it.
missing_image_results_in_fatal_error.patch
Related Tasks
Error rendering macro 'jira' : Unable to locate Jira server for this macro. It may be due to Application Link configuration.