Comments

jabrister created an issue. See original summary.

jabrister’s picture

Issue summary: View changes

When I try to create a subscription in http://www.mysite.com/?q=admin/store/subscriptions/create I get this error:

PDOException: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'node-157' for key 'PRIMARY': INSERT INTO {fc} (entity_type, entity_id, revision_id, complete, percentage, completeness) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2, :db_insert_placeholder_3, :db_insert_placeholder_4, :db_insert_placeholder_5); Array ( [:db_insert_placeholder_0] => node [:db_insert_placeholder_1] => 157 [:db_insert_placeholder_2] => 163 [:db_insert_placeholder_3] => 1 [:db_insert_placeholder_4] => 100 [:db_insert_placeholder_5] => a:0:{} ) in drupal_write_record() (line 7316 of /home/mydomain/public_html/includes/common.inc).

I read a related issue that was due to a previous entry being in the database and the module (or Drupal) couldn’t write to it because of that. It seems like a long shot, but maybe I should try to find where it is in the database and manually clear the entry (if there is one)? Other than that I’m not sure how to figure out what’s happening by looking at the error message.

Can anyone decipher the error message?
Does anybody have any helpful ideas to end the error message?

Thanks-
jabrister

update: I noticed in the Status Report:

Warning
Tokens Problems detected

The following token types do not have any tokens defined:

•$info['tokens']['subscription']

Could this be the culprit?

jabrister’s picture

The following solved it:

https://www.drupal.org/node/1983238

I thought this was the answer, it turned out I had disabled the subscription manager and it's dependencies. After enabling it again, I get the following error:

•Notice: Undefined offset: 6 in uc_recurring_subscription_overview() (line 49 of /home/getrefer/public_html/sites/all/modules/uc_recurring/modules/uc_recurring_subscription/uc_recurring_subscription.admin.inc).
•Notice: Trying to get property of non-object in uc_recurring_subscription_overview() (line 49 of /home/getrefer/public_html/sites/all/modules/uc_recurring/modules/uc_recurring_subscription/uc_recurring_subscription.admin.inc).
•Notice: Trying to get property of non-object in uc_recurring_subscription_overview() (line 49 of /home/getrefer/public_html/sites/all/modules/uc_recurring/modules/uc_recurring_subscription/uc_recurring_subscription.admin.inc).

I WILL PAY SOMEONE TO SOLVE THIS

jabrister’s picture