Received User warning when drupal_get_profile return null on function libraries_scan_info_files

User warning: The following profile is missing from the file system: in drupal_get_filename() (line 277 of /var/www/html/.../web/core/includes/bootstrap.inc) #0 /var/www/html/.../web/core/includes/bootstrap.inc(587): _drupal_error_handler_real(512, 'The following p...', '/var/www/html/a...', 277, Array) #1 [internal function]: _drupal_error_handler(512, 'The following p...', '/var/www/html/a...', 277, Array) #2 /var/www/html/.../web/core/includes/bootstrap.inc(277): trigger_error('The following p...', 512) #3 /var/www/html/.../web/core/includes/bootstrap.inc(296): drupal_get_filename('profile', NULL) #4 /var/www/html/.../web/modules/contrib/libraries/libraries.module(170): drupal_get_path('profile', NULL) #5 /var/www/html/.../web/modules/contrib/libraries/libraries.module(444): libraries_scan_info_files() #6 /var/www/html/.../web/modules/contrib/libraries/libraries.module(548):

CommentFileSizeAuthor
#2 3073205-2-fix-user-warning.patch872 bytesartem_kondra

Comments

pi0ne3r created an issue. See original summary.

artem_kondra’s picture

StatusFileSize
new872 bytes

patch fix warning, add checking to similar like in function libraries_get_libraries()

artem_kondra’s picture

Status: Active » Needs review