2

I keep randomly getting this error within my Drupal site. Only way to resolve is to delete the session from the database.

PDOException: SQLSTATE[HY000]: General error: 1205 Lock wait timeout exceeded; try restarting transaction: SELECT revision.order_number AS order_number, revision.revision_id AS revision_id, revision.revision_uid AS revision_uid, revision.mail AS mail, revision.status AS status, revision.log AS log, revision.revision_timestamp AS revision_timestamp, revision.revision_hostname AS revision_hostname, revision.data AS data, base.order_id AS order_id, base.type AS type, base.uid AS uid, base.created AS created, base.changed AS changed, base.hostname AS hostname FROM {commerce_order} base INNER JOIN {commerce_order_revision} revision ON revision.revision_id = base.revision_id WHERE (base.order_id IN (:db_condition_placeholder_0)) FOR UPDATE; Array ( [:db_condition_placeholder_0] => 1 ) in DrupalDefaultEntityController->load() (line 196 of C:\Sites\includes\entity.inc).

Do you have any idea what is wrong?

1 Answer 1

2

The sessions table has been known to get corrupted, try running a REPAIR TABLE sessions query against your database.

Sign up to request clarification or add additional context in comments.

10 Comments

I see, seems to have worked for now.. It started happening when introduced the commerce module..
@clockworkworks: On closer inspection is seems to be a reported bug...no fix as yet :(
spoke too soon is still doin it.... has somehing to do with (line 196 of C:\Sites\includes\entity.inc).
well at least i know it isnt me ha. im thinking maybe should just use Ubercart then for the time being? until a fix comes up.... would you reccomend this? Thanks again Clive
I would recommend Ubercart 110%, I've used Commerce and Ubercart for Drupal 7 and Commerce just isn't mature enough yet in my humble opinion (or at least the add-on modules aren't). I'm currently developing several Ubercart 7 sites, and have one in production as well and they're all working great
|

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.