Error message appears while signing up an account

5 replies [Last post]
dennis
Offline
Joined: 09/12/2009
Status: 
Answered

Hi,

I try to pick a PLAN and create a new account, then I got the below message:

If I sign up FREE plan, then I am able to create a new account but with the error message below:

user warning: Duplicate entry '13-3' for key 1 query: INSERT INTO drpl_drupalusers_roles (uid, rid) VALUES (13, 3) in /home/www/xyz.com/modules/Paypal_Subscriptions_6.x-4.8/paypal/paypal_subscriptions/paypal_subscriptions.module on line 588.

 

If I sign up PAID PLAN, then I am not able to create new account with the below message:

warning: fsockopen() [function.fsockopen]: unable to connect to www.moneyscripts.net:80 (Permission denied) in /home/www/xyz.com/modules/Paypal_Subscriptions_6.x-4.8/paypal/includes/paypal_api_class.php(1) : eval()'d code(1) : eval()'d code on line 1.

What would cause that to happen? Furthermore, am I linking to www.moneyscripts.net80 ? What is it? It is a port or something else? What permission do I need from moneyscript?

 

Thanks. I am a bit confuse.

Leighton Whiting
Offline
Joined: 06/02/2009
Dennis, The first error is

Dennis,
The first error is likely caused because the user already has the role that the PLAN was trying to give him. Are you using any other module which grants the role to the user? If so, it is probably trying to add the role to the user after Paypal Subscriptions has already added it.

As for the second error, it must be caused by the license file not being able to connect to the server correctly. It looks strange, and it's the first time I've seen this one. I have changed some thing in the paypal_api_class.php file that I think should fix this error, and will release it in 4.9 tonight.

Sincerely,
Leighton Whiting

dennis
Offline
Joined: 09/12/2009
Hi Leighton,Greetings,As I

Hi Leighton,

Greetings,

As I have mentioned in the seperate forum topic ,"Some questions arise while configuring the setting", I have used "user_types-6.x-1.x-dev" module and created 2 different set of sign up forms so that different users will provide different set of information during sign up. For instance, users will choose to sign up as JOB SEEKER or EMPLOYER. If they sign up as job seeker then JOB SEEKER ROLE will be granted, while EMPLOYER will be granted EMPLOYER ROLE automatically.

All the above is handled by "user_types-6.x-1.x-dev".

On top of that, if they want to upgrade their (PAID) plan, other ROLE will be given through PAYPAL SUBSCRIPTION module.

So, is it because the current module only support 1 role at a time, therefore I can't grant more than 1 role for a person at a time or all the time?

Thanks.

Best Regards,

Dennis

dennis
Offline
Joined: 09/12/2009
Hi Leighton, May I know how

Hi Leighton,

May I know how soon you will release 4.9? This is because I can't start the business before getting it fixed first.

Thank you.

Best Regards,

Dennis 

Leighton Whiting
Offline
Joined: 06/02/2009
Update

Dennis,
4.9 has just been released, so please download it and let me know if it solves your problems. Don't forget to run update.php! If there is still a problem with your license file, please contact me and I will send you a custom license file that will work for you.

As for the other error, I think this is being caused by user_types trying to add the role before paypal_subscriptions has added it. What I would do to fix this is to disable the 'add role' feature of the user_types module.

Sincerely,
Leighton Whiting

RikiKiki
Offline
Joined: 10/29/2009
Hello!

Thank you! Very useful!

Twitter Feed