Error with Square/Environment when trying to save settings

Created on 5 January 2023, almost 2 years ago
Updated 31 October 2023, about 1 year ago

Problem/Motivation

When saving the settings in /admin/commerce/config/square, I get the following error:
The website encountered an unexpected error. Please try again later.
Error: Class 'Square\Environment' not found in Drupal\commerce_square\Form\SquareSettings->buildForm() (line 115 of modules/contrib/commerce_square/src/Form/SquareSettings.php).

Running Drupal 9.5.0. Installed commerce_square via composer.

Steps to reproduce

Save settings (on local or production site) and instead of going to Square to sync, drupal throws an error

Proposed resolution

Patch for the missing class?

💬 Support request
Status

Active

Version

1.5

Component

Code

Created by

🇺🇸United States corbinrose

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