?
avatar BjornvanSchie
BjornvanSchie
13 Oct 2017

Steps to reproduce the issue

  • Install Usergroup Selector (http://function90.com/products/usergroup-selector.html)
  • Enable Usergroup Selector and select some groups at the "Allowed User Groups" field.
  • Enable Joomla User - Profiles and require TOS and select TOS article
  • Register a user from frontend with a group

Expected result

User will be created with the selected group/groups.

Actual result

User created, but without groups. This is because the JUser->save() is returning false. While further investigating the problem. its telling me the error using the following:
$juser->getError();
This is the result i got: Please read the Terms of Service. You will not be able to register if you do not agree with them.

(these snippets are found in the onUserAfterSave function within the plugin)

My guess is that there is a issue with the User-Profile plugin from joomla. since everything is going fine when i haven't got a TOS Article selected.

System information (as much as possible)

Problem accours on the the following platforms:

  • Windows 10 running latest version of Xampp
  • MacOS running latest version of Mamp pro
  • Ubuntu running webmin with apache2 server

All the instances are running a clean setup of joomla 3.8.1

Additional comments

Teamviewer is possible if needed, also remote joomla login is do-able.

avatar BjornvanSchie BjornvanSchie - open - 13 Oct 2017
avatar joomla-cms-bot joomla-cms-bot - labeled - 13 Oct 2017
avatar brianteeman
brianteeman - comment - 13 Oct 2017

I dont have any problem using the TOS option with the core of joomla so the issue must be with the extension. Checking the extension web site i can see that they have problems when you have custom fields enabled as well. Please contact them directly for support.

Closed as not a core issue

avatar brianteeman brianteeman - change - 13 Oct 2017
Status New Closed
Closed_Date 0000-00-00 00:00:00 2017-10-13 21:04:45
Closed_By brianteeman
avatar brianteeman brianteeman - close - 13 Oct 2017
avatar brianteeman
brianteeman - comment - 13 Oct 2017

Also check their site for the other people reporting issues with that plugin and tos
http://function90.com/support/usergroup-selector/343-it-is-not-working-on-my-joomla-3-6-site.html

avatar coolcat-creations
coolcat-creations - comment - 14 Nov 2017

I confirm that there is a bug executing user plugins if a tos article is selected. If no article is selected everything works fine. Can we reopen this issue @brianteeman ?

EDIT: A quick workaround is to leave the Tos Article empty and to include the link to the TOS in the language .ini file into the label of the TOS PLG_USER_PROFILE_FIELD_TOS_LABEL. Not beautiful but it works.

avatar franz-wohlkoenig franz-wohlkoenig - change - 14 Nov 2017
Status Closed Discussion
Closed_Date 2017-10-13 21:04:45
Closed_By brianteeman
avatar joomla-cms-bot joomla-cms-bot - change - 14 Nov 2017
Status Discussion New
Closed_Date 0000-00-00 00:00:00
avatar joomla-cms-bot joomla-cms-bot - reopen - 14 Nov 2017
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 14 Nov 2017

reopened as stated above.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/18333.

avatar joomla-cms-bot
joomla-cms-bot - comment - 14 Nov 2017
avatar franz-wohlkoenig franz-wohlkoenig - change - 14 Nov 2017
Status New Discussion
avatar Quy
Quy - comment - 11 Feb 2018

@coolcat-creations Please confirm that PR #19633 fixes this issue. Thanks.

avatar Quy
Quy - comment - 11 Feb 2018

@BjornvanSchie You marked #19633 tested successfully. If this is fixed, please close this issue. Thanks.

avatar joomla-cms-bot joomla-cms-bot - change - 13 Feb 2018
Status Discussion Closed
Closed_Date 0000-00-00 00:00:00 2018-02-13 16:10:11
Closed_By joomla-cms-bot
avatar joomla-cms-bot joomla-cms-bot - close - 13 Feb 2018
avatar Quy Quy - change - 13 Feb 2018
Closed_Date 2018-02-13 16:10:11 2018-02-13 16:10:12
Closed_By joomla-cms-bot Quy
avatar joomla-cms-bot
joomla-cms-bot - comment - 13 Feb 2018

Set to "closed" on behalf of @Quy by The JTracker Application at issues.joomla.org/joomla-cms/18333

avatar Quy
Quy - comment - 13 Feb 2018

Closing as #19633 has merged. This can be reopened if still an issue.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/18333.

Add a Comment

Login with GitHub to post a comment