I tried to run update on my dev site after #1979066: Consider using field formatters to display changes, and got the following fatal in response:

An AJAX HTTP error occurred.
HTTP Result Code: 200
Debugging information follows.
Path: http://pift-drupal_7.redesign.devdrupal.org/update.php?op=selection&toke...
StatusText: OK
ResponseText: Fatal error: Unsupported operand types in /var/www/dev/pift-drupal_7.redesign.devdrupal.org/htdocs/sites/all/modules/project_issue/project_issue.install on line 1014
Call Stack: 0.0002 640888
1. {main}() /var/www/dev/pift-drupal_7.redesign.devdrupal.org/htdocs/update.php:0 1.5212 10365312
2. _batch_page() /var/www/dev/pift-drupal_7.redesign.devdrupal.org/htdocs/update.php:497 1.5239 10391024
3. _batch_do() /var/www/dev/pift-drupal_7.redesign.devdrupal.org/htdocs/includes/batch.inc:80 1.5239 10391056
4. _batch_process() /var/www/dev/pift-drupal_7.redesign.devdrupal.org/htdocs/includes/batch.inc:161 2.3556 10516824
5. call_user_func_array() /var/www/dev/pift-drupal_7.redesign.devdrupal.org/htdocs/includes/batch.inc:284 2.3556 10516904
6. update_do_one() /var/www/dev/pift-drupal_7.redesign.devdrupal.org/htdocs/includes/batch.inc:284 2.3556 10517480
7. project_issue_update_7009() /var/www/dev/pift-drupal_7.redesign.devdrupal.org/htdocs/includes/update.inc:963

Comments

jthorson’s picture

Can't reproduce ... second run completed successfully. *shrug*

jthorson’s picture

Priority: Normal » Major
Issue tags: +drupal.org D7

Bumping priority and tagging for Drupal.org D7 ... this issue prevented my dev site from building successfully.

Once logged in, I attempted to run update.php again, and got the same error after multiple runs.

jthorson’s picture

Priority: Major » Normal

Looks like the error is being thrown on the very first field, due to the lack of a $instance['display']['nodechanges'] parameter.

Field: body

Display Settings:
    Array
    (
        [module] => text
        [type] => text_default
        [weight] => 40
    )

Instance Display:
    Array
    (
        [default] => Array
            (
                [label] => hidden
                [type] => text_default
                [settings] => Array
                    (
                    )
                [weight] => 5
                [module] => text
            )
        [teaser] => Array
            (
                [label] => hidden
                [type] => text_summary_or_trimmed
                [trim_length] => 1400
                [settings] => Array
                    (
                        [trim_length] => 600
                    )
                [weight] => 5
                [module] => text
            )
        [issuemetadata] => Array
            (
                [type] => hidden
                [label] => above
                [settings] => Array
                    (
                    )
                [weight] => 5
            )
    )

Updating to the latest -dev versions of nodechanges and project_issue (initially were on the May 3rd build) seems to have resolved things.

drumm’s picture

Assigned: Unassigned » drumm
Status: Active » Closed (works as designed)

snapshot_to_7.devdrupal.org is running project_issue_update_7009() without problems, so I think this isn't a problem.