Drupal Commerce and Square are connected, but when I try to edit the Square Connect rule at /admin/commerce/config/payment-methods, I get the following error:

Class 'SquareConnect\Configuration' not found in /sites/all/modules/commerce_square/commerce_square.module on line 133

I have the SDK installed at /sites/all/libraries/square

Don't know if this matters, but the site is running Domain Control so I can have the subdomain and main domain running off one Drupal installation.

I'm running Commerce Kickstarter 7.x-2.48

Comments

lonehorseend created an issue. See original summary.

mglaman’s picture

Status: Active » Postponed (maintainer needs more info)

Did you install the SDK as detailed? Review your site status to see if it's reported as installed.

Sorry for delay, we were off at DrupalCon Vienna.

lonehorseend’s picture

No problem.

Yes. It's under /sites/all/libraries/square and /admin/reports/libraries is recognizing that it's there. I forgot to rename the directory to square until after I connected Drupal and Square together.

mglaman’s picture

Is it working, then? If so we can close the issue. Let me know!

lonehorseend’s picture

The connection is there, yes, but the payment rule errors out.

When I go to /admin/commerce/config/payment-methods/manage/commerce_payment_commerce_square/edit/3 to select what I need (after activating the rule) I get: site is currently unable to handle this request. HTTP ERROR 500

Drupal log doesn't show anything. Server log show this:

[09-Oct-2017 15:06:36 America/Los_Angeles] PHP Fatal error: Class 'SquareConnect\Configuration' not found in /sites/all/modules/commerce_square/commerce_square.module on line 133

DevJoshLopez’s picture

try turning off cache.

mglaman’s picture

Status: Postponed (maintainer needs more info) » Active

lonehorseend, thanks for reply.

And yes, as DevJoshLopez said can you report back if page cache is enabled? Worked with him and that was an issue when trying to load checkout form. So confused about that. I have not yet had time to try and reproduce that (cache was disabled in local environment.)

lonehorseend’s picture

Status: Active » Fixed

I don't use any sort of caching other than Drupal's native caching and flushing it is the first thing I usually do when there is a problem. Sometimes I'll even go so far as doing it from the DB side to make sure.

However, just to make sure... I just flushed the cache before, reactivated the payment rule, and flushed the cache after, It seemed to have worked.

Thank you! :)

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.