I have the latest Ecommerce module installed on my drupal site, and it seems to be working fine. I also recently upgraded my Userpoints module to 5.x-2.0. The check box on my modules page on my drupal site for Userpoints Ecommerce is blocked, I cannot enable it. It also tells me this "Depends on: Userpoints,store (missing)"

But store is not missing, I have it on my drupal site, and it is enabled, I have been using it. Any ideas why this is? Thanks

Comments

kbahey’s picture

This is odd.

If store is enabled, then userpoints_ecommerce should detect it.

Try editing the userpoints_ecommerce.info file, and remove the dependency on store.

theycallmepj’s picture

After I did that, I got this error when I went to admin > site config > userpoints settings

Fatal error: Call to undefined function: module_exist() in /home/public_html/sites/all/modules/userpoints/contrib/userpoints_ecommerce/userpoints_ecommerce.module on line 25

kbahey’s picture

Find the file userpoints_ecommerce.module, and on line 25, change:

if (module_exist('cart') && module_exist('payment')) {

to

if (module_exists('cart') && module_exists('payment')) {

Also in userpoints_ecommerce.info, change the line:

dependencies = userpoints,store

to

dependencies = userpoints, cart, payment

If this fixes it, I will release 5.x-2.1 with these changes.

theycallmepj’s picture

This change did not work, but it did work when I took the commas out of

dependencies = userpoints, cart, payment
and changed it to
dependencies = userpoints cart payment

I also did this for referral_points

kbahey’s picture

Status: Active » Fixed

Fixed in 5.x-2.1

Anonymous’s picture

Status: Fixed » Closed (fixed)