On module uninstall one gets this error:

Fatal error: Call to undefined function file_type_load_all() in ... sites/all/modules/picture/picture.install on line 91

Drupal 7.41

Comments

EdgarPE created an issue. See original summary.

JRF’s picture

I've got the same error on uninstall.
It seems that picture call a function present in the "file entity" module but not present in core during uninstallation. So if you want to avoid this error, a workaround is to install file entity and unsintall picture after.

alek123’s picture

StatusFileSize
new490 bytes

Add the file Entity module call to picture.install, maybe it is necesary to write the dependency.

beanjammin’s picture

Version: 7.x-2.13 » 7.x-2.x-dev
Status: Active » Needs review
Issue tags: +uninstall problems
StatusFileSize
new1.75 KB

The settings being removed by the uninstall when it dies are only set if the file_entity module is available. I've updated the patch to test for the file_entity module and only remove its settings when it is found.

attiks’s picture

Status: Needs review » Fixed

  • attiks committed 94a517f on 7.x-2.x authored by Beanjammin
    Issue #2604628 by alek123, Beanjammin: Fatal error on uninstall
    

Status: Fixed » Closed (fixed)

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