When Scald is enabled through an install profile (eg: mysite.info) the following error is produced by running

$ drush @mysite site-install mysite -y -d

WD php: FieldException: Attempt to create a field of unknown type    [error]
image. in field_create_field() (line 110 of
/Library/WebServer/Documents/mysite/modules/field/field.crud.inc).
[9.2 sec, 40.12 MB]
WD php: Warning: Cannot modify header information - headers already  [warning]
sent by (output started at
/usr/local/Cellar/drush/5.8/libexec/includes/output.inc:37) in
drupal_send_headers() (line 1212 of
/Library/WebServer/Documents/mysite/includes/bootstrap.inc). [9.2
sec, 40.17 MB]
FieldException: Attempt to create a field of unknown type <em class="placeholder">image</em>. in field_create_field() (line 110 of /Library/WebServer/Documents/mysite/modules/field/field.crud.inc).

The error is produced by the method _scald_create_thumbnail_field located in scald.install who is trying to create an image field without having the image module activated.

In order to force the activation of the image module before activating scald, it is necessary to add a dependance to the image module in the scald.info file

dependencies[] = image

Files: 
CommentFileSizeAuthor
#1 fixScaldInstall-1899738.patch331 bytesMindless-dupe

Comments

Mindless-dupe’s picture

Priority:Major» Normal
StatusFileSize
new331 bytes

Attached, the patch to correct the issue

Mindless-dupe’s picture

Status:Active» Needs review
jcisio’s picture

Title:Scald can not be enabled through an install profile» Scald can not be enabled through an install profile without Image module
Status:Needs review» Fixed

Makes sense. I committed and pushed. Thanks!

Status:Fixed» Closed (fixed)

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