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.

Comments

user654’s picture

.

Anonymous’s picture

Same 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

geigerg’s picture

Same 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).

ezra-g’s picture

Title: PDOException: SQLSTATE[42S02]: » PDOException Canceling event registration with Entity Cache
ezra-g’s picture

Priority: Normal » Major

Bumping priority to "major" so we can address this before 3.0.

jpontani’s picture

Assigned: Unassigned » jpontani
jpontani’s picture

Attached 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.

jpontani’s picture

Status: Active » Needs work

#7 may be pointless. See #1867564: Update Entity cache support. Will create a commons patch to include that patch instead of mine.

jpontani’s picture

Status: Needs work » Needs review
StatusFileSize
new585 bytes

Updated commons makefile patch that has the patch from linked issue in #8.

ezra-g’s picture

Status: Needs review » Fixed

Thanks!

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

ezra-g’s picture

Status: Fixed » Needs work

This 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.

matt v.’s picture

ezra-g’s picture

Status: Needs work » Fixed

The latest patch to Entity Registration module is now included. Thanks, Matt V!

http://drupalcode.org/project/commons.git/commit/6a61fbd

Status: Fixed » Closed (fixed)

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