- πΊπΈUnited States aubjr_drupal
Really, really old patch, but I can verify this works.
- Status changed to RTBC
10 months ago 7:00pm 24 January 2024
Tested with PHP 7.1.6, when uploading a picture against a user the following warning appears:
Warning: A non-numeric value encountered in _exif_orientation_validate_user_picture() (line 34 of exif_orientation.module).
A typecast should resolve this:
function _exif_orientation_validate_user_picture(&$form, &$form_state) {
// If required, validate the uploaded picture.
$validators = array(
'file_validate_is_image' => array(),
'_exif_orientation_validate_image_callback' => array(),
'file_validate_image_resolution' => array(variable_get('user_picture_dimensions', '85x85')),
- 'file_validate_size' => array(variable_get('user_picture_file_size', '30') * 1024),
+ 'file_validate_size' => array((int)variable_get('user_picture_file_size', '30') * 1024),
);
...
}
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
Really, really old patch, but I can verify this works.