Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
field system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
4 Apr 2011 at 01:34 UTC
Updated:
29 Jul 2014 at 19:28 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
bfroehle commented@droplet: There is a try/catch block.. what am I missing?
Comment #2
droplet commented@bfroehle,
I though like you before but it isn't.
it's issue split from:
http://drupal.org/node/1052248#comment-4270018
hook_field_storage_create_field()
simple php test script:
Comment #3
damien tournoud commentedThis definitely works for me.
By any chance, would you have xdebug with weird configuration options enabled?
Comment #4
damien tournoud commentedOk, there are a couple of issues here:
Comment #5
damien tournoud commentedActually, this needs to go in 8.x first.
Comment #6
droplet commented@#3,
Oh, right, I enabled Xdebug, and now i see the error.
#4 patch work for me.
Comment #7
chx commentedThat's weird. If you are updating an instance, why would the patch change that? And while at it, why is that message not 'error' ??
Comment #8
damien tournoud commentedPDOException can currently be triggered by
field_sql_storage_field_storage_update_field()(see #4 for the summary). Either we catch them or we re-wrap them into a FieldException, but we need to do something.The message is not error, but it is not touched by this patch.
Comment #9
chx commentedWhile #8 is bogus, for consistency reasons I can accept this. Please file a followup for the missing 'error' thanks!
Comment #10
webchickLooks like this needs backporting to D7 as well.
Committed and pushed to 8.x and 7.x. Thanks!