The full display on one field out of 40 on my D6->D7 upgrade project is missing. content_migrate.module assumes it is available which causes an error during batch migration:

An AJAX HTTP error occurred.
HTTP Result Code: 200
Debugging information follows.
Path: /batch?id=179&op=do
StatusText: OK
ResponseText: 
( ! ) Fatal error: Unsupported operand types in /home/user/public_html/modules/field/field.crud.inc on line 598
Call Stack
#TimeMemoryFunctionLocation
10.0001653568{main}(  )../index.php:0
20.204235797152menu_execute_active_handler(  )../index.php:21
30.211537164472call_user_func_array
(  )../menu.inc:517
40.211537164840system_batch_page(  )../menu.inc:0
50.211537164840_batch_page(  )../system.admin.inc:2333
60.211537166216_batch_do(  )../batch.inc:80
70.211537166216_batch_process(  )../batch.inc:161
80.214037504040call_user_func_array
(  )../batch.inc:284
90.214037504104_content_migrate_batch_process_create_fields(  )../batch.inc:0
100.673956899608field_create_instance(  )../content_migrate.admin.inc:257
110.676556913384_field_write_instance(  )../field.crud.inc:493

Solution is to check that the full display exists. Patched attached.

CommentFileSizeAuthor
content_migrate-unsupported-op-types.patch862 bytes13rac1

Comments

ttrafford’s picture

This worked great for me.

dieuwe’s picture

Worked great for me too. Thanks.

off’s picture

Its worked! Nice!

hanoii’s picture

working here as well

rfay’s picture

Status: Needs review » Reviewed & tested by the community

Solved it for me. Recommending commit. Can't seem to do any harm anyway. Better than a fatal!

axle_foley00’s picture

This works for me also.

jrabeemer’s picture

The above fix worked for me. No fatal errors. +1

huesforalice’s picture

Very nice, really helped me out!

colan’s picture

Version: 7.x-2.x-dev » 7.x-3.x-dev
Issue summary: View changes
Status: Reviewed & tested by the community » Fixed

Thanks! Committed in 44851e0.

Status: Fixed » Closed (fixed)

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

RAWDESK’s picture

Useful patch.. applied it in my self written remote content type construction API.