On a current, rather large, migration, I started seeing the following error:

Fatal error: Exception thrown without a stack frame in Unknown on line 0 shutdown

After a bit of research, I discovered this is typically associated with uncaught exceptions that are thrown in shutdown functions.

The fix is to use drupal_register_shutdown_function() rather than the native PHP one.

After applying this patch, I no longer get the bizarre error above, but have yet to figure out what exception was being thrown.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Status: Needs review » Needs work

The last submitted patch, migrate-drupal-register-shutdown-function.patch, failed testing.

  • Commit 455a451 on 7.x-2.x authored by jhedstrom, committed by mikeryan:
    Issue #2237891 by jhedstrom: Use drupal_register_shutdown_function
    
mikeryan’s picture

Status: Needs work » Fixed

The patch failed because it was against a stale version of Migrate. Nevertheless, it's simple and sensible - I've committed it.

Thanks!

mikeryan’s picture

Issue tags: +Migrate 2.6

Tagging as 2.6.

Status: Fixed » Closed (fixed)

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