Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When I use a file relationship or a view based on a file vs a node with the views_timelinejs module I cannot select file:render as a media type or file: upload as a date type.
Even if I use other values, I see the following errors because I am using file fields:
Warning: strlen() expects parameter 1 to be string, array given in drupal_validate_utf8() (line 1616 of drupal/includes/bootstrap.inc).
Warning: htmlspecialchars() expects parameter 1 to be string, array given in check_plain() (line 1582 of drupal/includes/bootstrap.inc).
Comments
Comment #1
SocialNicheGuru CreditAttribution: SocialNicheGuru commentedWarning: strlen() expects parameter 1 to be string, array given in drupal_validate_utf8() (line 1618 of drupal7/includes/bootstrap.inc).
Warning: htmlspecialchars() expects parameter 1 to be string, array given in check_plain() (line 1582 of drupal7/includes/bootstrap.inc).
I create a view with a field relationship to a field pointing to a file: Content:field-in-file:fid aka field_field-in-file attached to a content type
I add the title of the field: (field_field-in-file)File:Title to the fields section
I get the errors above in views_timelinejs
If I switch to a regular title field, everything is ok.
The views handlers called to deal with the title field: