Drupal 7.22 PHP 5.4
warning on preview new event. white screen on save. event not saved.
Warning: array_flip(): Can only flip STRING and INTEGER values! in EntityCacheControllerHelper::entityCacheLoad() (line 64 of /var/www/drupal-commons/profiles/commons/modules/contrib/entitycache/entitycache.module).
Warning: array_flip(): Can only flip STRING and INTEGER values! in EntityCacheControllerHelper::entityCacheLoad() (line 64 of /var/www/drupal-commons/profiles/commons/modules/contrib/entitycache/entitycache.module).
Notice: String offset cast occured in _field_invoke_multiple() (line 322 of /var/www/drupal-commons/modules/field/field.attach.inc).
Warning: array_flip(): Can only flip STRING and INTEGER values! in EntityCacheControllerHelper::entityCacheLoad() (line 64 of /var/www/drupal-commons/profiles/commons/modules/contrib/entitycache/entitycache.module).
Warning: array_flip(): Can only flip STRING and INTEGER values! in EntityCacheControllerHelper::entityCacheLoad() (line 64 of /var/www/drupal-commons/profiles/commons/modules/contrib/entitycache/entitycache.module).
Notice: String offset cast occured in _field_invoke_multiple() (line 322 of /var/www/drupal-commons/modules/field/field.attach.inc).
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | warning_after-1991320-7.patch | 747 bytes | japerry |
| #4 | Screenshot_10_21_13_7_53_PM.png | 198.79 KB | japerry |
Comments
Comment #1
stupiddingo commentedI can confirm this behaviour for events when hitting preview on Commons 3.2 and latest 3.x from build-commons-dev.make
Commons 3.2
Clicking preview displays errors reported above. Clicking submit whitescreens with error:
Commons 3.3x
First time preview button is clicked the edit page reloads with no error. On second click preview page loads with errors:
Interestingly, in both 3.2 and 3.3x submitting without previewing works with no errors.
My hunch is either dates or address based on this behaviour being absent for all other content types. I'll try to track this down.
Comment #2
jpontani commentedI'll investigate more, but for starters, Commons does not officially support PHP 5.4 or higher just yet. While many aspects may work, there is the potential that some do not. As such, PHP 5.3 is the recommended environment for production use.
Comment #3
ezra-g commentedComment #4
japerrySame issue occurs on php 5.3.27. Just tested on 3.4 and dev, still persists.
Comment #5
thinkdrupal commentedSame issue with PHP 5.3.17....using commons 7.x-3.5 and Drupal 7.24. When you click preview (this time for creating an Event), you get the error. However, I was able to save the Event with no errors.
Comment #6
lsolesen commentedStill present in newest version of Commons.
Comment #7
japerryRegistration is trying to load but the event doesn't exist yet. We shouldn't be doing this.... Here is a patch!
Comment #8
devin carlson commentedTested #7 with an existing Commons site and confirmed that it fixed the issue.
The fact that a registration is being created in a theme function and attached to an entity's build array as raw HTML should be refactored but I'll tackle that in a separate issue.
Committed #7 to Commons 7.x-3.x.