Skip to content

Integrity constraint violation: 1048 Column 'source' cannot be null #87

@nattywebdev

Description

@nattywebdev

I am seeing the following reported when I try to amend a ubercart order for a user:

PDOException: SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'source' cannot be null: INSERT INTO {simplenews_subscription} (tid, snid, status, timestamp, source) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2, :db_insert_placeholder_3, :db_insert_placeholder_4); Array ( [:db_insert_placeholder_0] => 150 [:db_insert_placeholder_1] => 1040 [:db_insert_placeholder_2] => 1 [:db_insert_placeholder_3] => 1778689818 [:db_insert_placeholder_4] => ) in simplenews_subscription_save() (line 1694 of /app/web/modules/simplenews/simplenews.module).

Where did column source come from? Is this new?

It's a while since I set up Simplenews on this website but I don't think I've changed anything to cause this.

Advice most welcome!

I'm using the latest release of Simplenews (1.x-1.2.3) with Backdrop 1.33.2 on php 8.3.23.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions