Skip to content

Checkout subscriber causing fatals #5

Description

@scottsawyer

LogicException: The database connection is not serializable. This probably means you are serializing an object that has an indirect reference to the database connection. Adjust your code so that is not necessary. Alternatively, look at DependencySerializationTrait as a temporary solution. in Drupal\Core\Database\Connection->__sleep() (line 1920 of /app/web/core/lib/Drupal/Core/Database/Connection.php).

This seems to happen when a user enters a new address and the rate request refreshes the order form. This may be caused by a change in the order form refresh logic to refresh the entire form vs just the pane, but I am not entirely certain. But the #after_build callback is empty, so I am not sure why it's needed or why it fatals. It's probably safe just to remove it.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions