When downloading commerce_stripe + dependencies into a fresh Drupal installation via drush I received a message indicating that the PHP library was already present even though I had yet to download it:

commerce_price was enabled successfully.  [ok]
commerce_stripe was enabled successfully. [ok]
commerce_ui was enabled successfully. [ok]
ctools was enabled successfully.  [ok]
ctools defines the following permissions: use ctools import
libraries was enabled successfully.   [ok]
Stripe PHP library already present. No download required.  [ok]

I'm not at all familiar with the inner workings of drush, but looking at drush_commerce_stripe_download() it looks as if is_dir($path) would return TRUE if for some reason the libraries module didn't exist at the time this function is executed.

Looking forward to evaluating this module! Cheers -

Comments

  • aviindub committed 4239e2c on 7.x-1.x
    Issue #2481643: Drush: "Stripe PHP library already present..." message...
aviindub’s picture

Status: Active » Fixed

indeed you are correct. easy fix... thanks for the report.

aviindub’s picture

Assigned: Unassigned » aviindub
Priority: Minor » Normal
Status: Fixed » Needs work

on another look, i realized there are a couple more issues. the drush command is not actually hooked up to its callback, and there is nothing to determine which version of the library is downloaded. this has never worked as far as i can tell.

aviindub’s picture

Version: 7.x-1.0-rc7 » 7.x-1.x-dev
aviindub’s picture

in the meantime, anyone wishing to install this module should download the library manually:

Download Stripe library v1.18.0 from GitHub and extract it to sites/all/libraries/stripe-php.

artreaktor’s picture

Status: Needs work » Needs review
StatusFileSize
new1.3 KB

few bugs fixed

  • aviindub committed 66ae706 on 7.x-1.x authored by artreaktor
    Issue #2481643 by artreaktor: Drush: "Stripe PHP library already present...

  • aviindub committed 783d77e on 7.x-1.x
    Issue #2481643 by aviindub: Drush: "Stripe PHP library already present...
aviindub’s picture

Status: Needs review » Fixed

thanks for the patch. i went ahead and added a checkout to the current supported version so we can call this fixed.

Status: Fixed » Closed (fixed)

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