Error in last step of registration

  • Julian Gapp
  • Topic Author
  • Offline
  • New Member
  • New Member
More
11 years 2 months ago - 11 years 2 months ago #26283 by Julian Gapp
Error in last step of registration was created by Julian Gapp
Hi Tuan,

I have a subscription plan which doesn't cost anything. But if I try to register a user for this subscription plan, the last step of the registration where the user should see the "Thank you message" produces an error. How can I solve this problem?

Thanks.
Attachments:
Last edit: 11 years 2 months ago by Julian Gapp.

Please Log in or Create an account to join the conversation.

  • Julian Gapp
  • Topic Author
  • Offline
  • New Member
  • New Member
More
11 years 2 months ago #26329 by Julian Gapp
Replied by Julian Gapp on topic Re: Error in last step of registration
It seems to be a problem if the price is 0,-
I also tried it to enter a Subscription complete url (optional) - but it ignored this URL...

Please Log in or Create an account to join the conversation.

  • Tuan Pham Ngoc
  • Away
  • Administrator
  • Administrator
More
11 years 2 months ago #26333 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Error in last step of registration
Hi Julian

I am not sure about this issue. Could you please submit a support ticket sending me administrator and FTP account of your site so that I can check it for you?

Tuan

Please Log in or Create an account to join the conversation.

More
11 years 1 month ago #27583 by Bezworks
Replied by Bezworks on topic Re: Error in last step of registration
What this problem ever solved? My Subscription complete url doesn't get redirected to either.

Please Log in or Create an account to join the conversation.

  • Tuan Pham Ngoc
  • Away
  • Administrator
  • Administrator
More
11 years 1 month ago #27651 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Error in last step of registration
Could you let me know the payment method you are using ?

Tuan

Please Log in or Create an account to join the conversation.

More
11 years 1 month ago #28262 by Kevin Campbell
Replied by Kevin Campbell on topic Re: Error in last step of registration
I see what looks to be a major coding issue.

com_osmembership\helper\helper.php is full of static functions and they all use the $this variable and many reference a function "setError"

1. You can't use $this in a static function
2. the function "setError" does not even existing in this call

I see on other lines of code die() being using. I'm going to do the same otherwise this component won't handle some errors and gives a blank white screen

Please Log in or Create an account to join the conversation.

  • Tuan Pham Ngoc
  • Away
  • Administrator
  • Administrator
More
11 years 1 month ago #28263 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Error in last step of registration

Kevin Campbell wrote: I see what looks to be a major coding issue.

com_osmembership\helper\helper.php is full of static functions and they all use the $this variable and many reference a function "setError"

1. You can't use $this in a static function
2. the function "setError" does not even existing in this call

I see on other lines of code die() being using. I'm going to do the same otherwise this component won't handle some errors and gives a blank white screen


Thanks Kevin. I saw that error as well and will address it very soon. Infact, that error should never happens because every validation has been performed before the form is submitted. Usually, the error will only happen if users made wrong settings (for example, unpublish both first name and last name field, or unpublish the email field or users disable user registration).

However, I agree that the extension should have better error handling and I will improve that soon.

Tuan

Please Log in or Create an account to join the conversation.

More
11 years 1 month ago #28268 by Bezworks
Replied by Bezworks on topic Re: Error in last step of registration

Tuan Pham Ngoc wrote: Could you let me know the payment method you are using ?

Tuan

I am using PayPal.

Please Log in or Create an account to join the conversation.

  • Tuan Pham Ngoc
  • Away
  • Administrator
  • Administrator
More
11 years 1 month ago #28343 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Error in last step of registration
@Bezworks: Could you please submit a support ticket so that we can discuss more details about it from there ? I will need to have access to your site to check your setting.

Regards,

Tuan

Please Log in or Create an account to join the conversation.