Problem

Since advagg_relocate_get_remote_font_data returns FALSE on network errors advagg_relocate_font_face_parser(array $font_faces) will throw TypeError.

How to reproduce

Switch off your internet connection and clear Drupal caches.
Will produce following error:

WD php: TypeError: Argument 1 passed to advagg_relocate_font_face_parser() must be of the type array, boolean given, called in /var/www/sites/all/modules/contrib/advagg/advagg_relocate/advagg_relocate.advagg.inc on line 228 in advagg_relocate_font_face_parser() (line 240 of /var/www/sites/all/modules/contrib/advagg/advagg_relocate/advagg_relocate.advagg.inc).
CommentFileSizeAuthor
#2 3135446-suppress-php-warnings-2.patch598 bytessokru

Comments

sokru created an issue. See original summary.

sokru’s picture

Status: Active » Needs review
StatusFileSize
new598 bytes

  • mikeytown2 committed b43b297 on 7.x-2.x authored by sokru
    Issue #3135446 by sokru: advagg_relocate_get_remote_font_data should...
mikeytown2’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.