The path to cck/content_admin.inc has changed. Please see this fix for filefield for more info (had the same problem):

http://drupal.org/node/334468?mode=2&sort=2

Update #2 in the emvideo.install still references the old path. Needs to be changed to cck/includes/content.admin.inc

Thanks.

Comments

alex ua’s picture

Status: Active » Fixed

Fixed. Thanks.

chrisschaub’s picture

Hmmm, think it should be...

include_once('./'. drupal_get_path('module', 'content') .'/includes/content.admin.inc');

The file name changed too. Thanks.

alex ua’s picture

Fixed.

chrisschaub’s picture

Thanks. I thought this was the only issue with update #2, but I can't get it to go past update #2. And there's no error message any more, after this fix. Any ideas why update 2 would just fail? Thanks for any help.

chrisschaub’s picture

I think the problem might be that the db_columns field already has this data in it:

a:4:{s:5:"embed";a:4:{s:4:"type";s:4:"text";s:4:"size";s:3:"big";s:8:"not null";b:0;s:8:"sortable";b:1;}s:5:"value";a:4:{s:4:"type";s:7:"varchar";s:6:"length";i:255;s:8:"not null";b:0;s:8:"sortable";b:1;}s:8:"provider";a:4:{s:4:"type";s:7:"varchar";s:6:"length";i:255;s:8:"not null";b:0;s:8:"sortable";b:1;}s:4:"data";a:4:{s:4:"type";s:4:"text";s:4:"size";s:3:"big";s:8:"not null";b:0;s:8:"sortable";b:0;}}

So, data is already there. Should I just edit this to data has a type of longtext or is it ok? Maybe the update just needs to make sure data isn't already set somehow?

Status: Fixed » Closed (fixed)

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

chrisschaub’s picture

Status: Closed (fixed) » Needs review

No word yet from developer if last issue in comment #5 has been fixed. Re-opening since it was automatically closed by system.

aaron’s picture

Status: Needs review » Needs work

I have a note in the install:

        // the following line will trigger (negligible) warnings if emvideo_update_2 was run before
        // (column already exists)
        @content_alter_db_field(array(), array(), $field, $columns);

which tells me it should run just fine, and that warnings are suppressed and ignored. However, perhaps they're not being ignored?

This will take a little more to figure out, I guess...