PDO Exception when translating content

Created on 22 March 2016, about 9 years ago
Updated 28 February 2025, 3 months ago

Hi,

I face an error when translating a Drupal 7 Commerce product display embedding a registration.

First, I have the following PHP notice when creating the translation :

Notice: Undefined property: stdClass::$nid in commerce_registration_form_alter() (line 484 of /var/www/vhosts/rallystory.com/httpdocs/_dp/sites/all/modules/commerce_registration/commerce_registration.module).

Then, I get the PDO Exception when trying to save the translation :

PDOException: SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'nid' cannot be null: INSERT INTO {commerce_registration_node_settings} (nid, settings) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1); Array ( [:db_insert_placeholder_0] => [:db_insert_placeholder_1] => a:1:{s:17:"hide_from_display";i:0;} ) in commerce_registration_node_settings_form_submit() (line 519 of /var/www/vhosts/rallystory.com/httpdocs/_dp/sites/all/modules/commerce_registration/commerce_registration.module).

Please advise

πŸ› Bug report
Status

Closed: outdated

Version

2.1

Component

Code

Created by

πŸ‡«πŸ‡·France misterpo

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024