PHP notices if output resolution is not set

Created on 16 September 2013, over 11 years ago
Updated 24 October 2024, 6 months ago

I'm using the module with setting output resolution to 0 (so the ratio and min size checkboxes are unchecked).

I get the following notices after saving the field edit form:

Notice: Uninitialized string offset: 0 in _imagefield_crop_widget_enforce_ratio_validate() (line 137 of path_to_drupal\sites\all\modules\imagefield_crop\imagefield_crop.module).
Notice: Uninitialized string offset: 0 in _imagefield_crop_widget_enforce_minimum_validate() (line 144 of path_to_drupal\sites\all\modules\imagefield_crop\imagefield_crop.module).
Notice: Uninitialized string offset: 0 in _imagefield_crop_widget_enforce_minimum_validate() (line 145 of path_to_drupal\sites\all\modules\imagefield_crop\imagefield_crop.module).

and these on the node edit screen:

Notice: Undefined offset: 1 in imagefield_crop_widget_process() (line 211 of path_to_drupal\sites\all\modules\imagefield_crop\imagefield_crop.module).
Notice: Undefined variable: width in imagefield_crop_widget_preview_process() (line 308 of path_to_drupal\sites\all\modules\imagefield_crop\imagefield_crop.module).
Notice: Undefined variable: height in imagefield_crop_widget_preview_process() (line 309 of path_to_drupal\sites\all\modules\imagefield_crop\imagefield_crop.module).
Notice: Undefined variable: width in imagefield_crop_widget_preview_process() (line 321 of path_to_drupal\sites\all\modules\imagefield_crop\imagefield_crop.module).
Notice: Undefined variable: height in imagefield_crop_widget_preview_process() (line 322 of path_to_drupal\sites\all\modules\imagefield_crop\imagefield_crop.module).

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇭🇺Hungary progpapa

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024