I noticed the following behaviour when trying out Commons (commons-7.x-3.0-beta1-core).
Visit the Events page
'Attend' the Ribfest
Click 'Cancel' to change your mind and...
PDOException: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'commons.cache_entity_registration' doesn't exist: DELETE FROM {cache_entity_registration} WHERE (cid IN (:db_condition_placeholder_0)) ; Array ( [:db_condition_placeholder_0] => 2 ) in cache_clear_all() (line 176 of C:\d7\local\commons\includes\cache.inc).
I noticed also that clicking 'back' on the browser and then clicking 'Cancel' a second time successfully cancels your attendance.
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | 1867318.registration.entity_cache_support.7.patch | 565 bytes | jpontani |
| #7 | 1867318.commons.registration_entity_cache_path.7.patch | 588 bytes | jpontani |
| #9 | 1867318.commons.registration_entity_cache_patch.9.patch | 585 bytes | jpontani |
Comments
Comment #1
user654 commented.
Comment #2
Anonymous (not verified) commentedSame here. Tracked it down to registration module not supporting entity cache properly.
I've posted a patch, if you apply that to the registration module then it works ok. Here it is:
#1867564: Update Entity cache support
Comment #3
geigerg commentedSame here. Install time patch from #2 applied.
PDOException: SQLSTATE[42S02]: [Microsoft][SQL Server Native Client 11.0][SQL Server]Ungültiger Objektname 'registration_type'.: SELECT base.[id] AS [id], base.[name] AS [name], base.[label] AS [label], base.[weight] AS [weight], base.[locked] AS [locked], base.[data] AS [data], base.[status] AS [status], base.[module] AS [module] FROM {registration_type} base; Array ( ) in EntityAPIController->query() (line 152 of C:\inetpub\wwwroot\profiles\commons\modules\contrib\entity\includes\entity.controller.inc).
Comment #4
ezra-g commentedComment #5
ezra-g commentedBumping priority to "major" so we can address this before 3.0.
Comment #6
jpontani commentedComment #7
jpontani commentedAttached is a patch that fixes the Registration module to properly support entitycache. The issue is the entity info was not properly adding the entity cache config to the return array.Also attached is a patch for commons makefile to include the patch until it gets applied to the Registration module.See latest comment, didn't see the patch in the linked issue from #2.
Comment #8
jpontani commented#7 may be pointless. See #1867564: Update Entity cache support. Will create a commons patch to include that patch instead of mine.
Comment #9
jpontani commentedUpdated commons makefile patch that has the patch from linked issue in #8.
Comment #10
ezra-g commentedThanks!
I updated the code comment to point to the Registration module issue that contains the patch and committed.
http://drupalcode.org/project/commons.git/commit/518fe58
Comment #11
ezra-g commentedThis breaks the Commons build because the referenced patch doesn't apply. Per #3 on that issue, the patch also needs to be re-rolled to include a hook_update_n() implementation. I've reverted the commit in #10: http://drupalcode.org/project/commons.git/commit/fb8ae00.
Comment #12
matt v. commentedI've added an updated patch in the #1867564: Update Entity cache support issue.
Comment #13
ezra-g commentedThe latest patch to Entity Registration module is now included. Thanks, Matt V!
http://drupalcode.org/project/commons.git/commit/6a61fbd