wpsharks / s2member

s2Member® Framework (membership management for WordPress®).
64 stars 36 forks source link

IPv6 issue when using idevaffiliate with s2member #1111

Open TheHotte84 opened 7 years ago

TheHotte84 commented 7 years ago

EXPLANATION OF THE ISSUE

When a user has an IPv6 address and register to s2member website the IPv6 is not saved in user details under Registration IP. Instead of that the IPv4 address is saved. idevaffiliate in contrast saves the IPv6 address if available. The notifications between s2member and idevaffiliate use the saved ip address to create commissions. Because of the ip difference no commissions are created although i should have happened.

STEPS TO REPRODUCE THE ISSUE

  1. Use an internet connection with IPv6 address.
  2. Go to a s2member website and register.
  3. Take a look at user details after registration (with admin account) and see the IPv4 address is saved.

BEHAVIOR THAT I EXPECTED

If an IPv6 address is available at user registration this should be saved at user details Registration IP. In the near future IPv6 will be the standard. So IPv6 support should be available anyway.

BEHAVIOR THAT I OBSERVED

Only IPv4 address is saved although IPv6 is available at user registration. idevaffiliate integration not possible if IPv6 addresses are used.

romualdlesage commented 7 years ago

I think I have the same problem with WebinarJam. The IPv6 is not tracked and no commissions too. There is 20% of my Trafic log in IPv6 instead of 80% in IPv4. So this is a big matter...

romualdlesage commented 7 years ago

THE SOLUTION !!!

You have to send this message to the idevsupport: https://www.idevsupport.com/index.php?/Tickets/Submit/RenderForm

Hello, Our technical team tries to verify the function of the plugin idevaffiliate Woocmerce, and they find that the ip addresses in idevaffiliate dashboared are stored (IPV4 and IPV6) # Otherwise in our Wordpress log, we got only the IPV4 listed (cause too our host WPSERVEUR), so we can’t find the match of the IPV6 listed on idevaffiliate. We loose commissions !!

is it possible to force idevaffiliate to use IPV4 ?

And now I have only Ipv4 and it's working ;)