Duplicate function name theme_file_styles_image()

Created on 25 April 2014, about 11 years ago
Updated 11 June 2025, 2 days ago

While upgrading with drush I had this error come up

PHP Fatal error: Cannot redeclare theme_file_styles_image() (previously declared in /uext10/www/noao/sites/all/modules/styles/contrib/file_styles/file_styles.theme.inc:66) in /uext10/www/noao/sites/all/modules/styles/contrib/file_styles/includes/themes/file_styles.theme.inc on line 21
Drush command terminated abnormally due to an unrecoverable error. [error]
Error: Cannot redeclare theme_file_styles_image() (previously declared in /uext10/www/noao/sites/all/modules/styles/contrib/file_styles/file_styles.theme.inc:66) in
/uext10/www/noao/sites/all/modules/styles/contrib/file_styles/includes/themes/file_styles.theme.inc, line 21
The external command could not be executed due to an application error. [error]
Backups were restored successfully.

There are two functions with the same name in:

sites/all/modules/styles/contrib/file_styles/file_styles.theme.inc
sites/all/modules/styles/contrib/file_styles/includes/themes/file_styles.theme.inc

I have tried changing the name of the function in

sites/all/modules/styles/contrib/file_styles/includes/themes/file_styles.theme.inc

and this allowed me to go on with the update...

πŸ› Bug report
Status

Closed: outdated

Component

Code

Created by

πŸ‡¨πŸ‡±Chile dwalker51

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.

  • πŸ‡ΊπŸ‡ΈUnited States bluegeek9

    Thank you for your contributions to this issue. As Drupal 7 has reached its End of Life and is no longer supported, we are closing this issue. We encourage you to upgrade to a supported version of Drupal.

Production build 0.71.5 2024