Get warnings when activate the BuddyPress Profile Data Control plugin and then make changes to data at the user profile.
Version 1.2.2Before I deactivated all other plugins except buddypress, xprofile custom fields and this plugin.
Screenshot with error message:
https://postimg.cc/6yhJCLSDThanks for fixing in advance!
Hi Alex,
I am sorry for the trouble.
The error log does not directly link to profile data control. It is showing issue with activity(probably a side effect).Can you please tell me the step by step process to reproduce it(e.g log as xyz, visit profile->edit etc..).
Thank you
Brajesh1. Plugin is deactivated.
2. login as User/subscriber
3. Go to profile / settings / user data and change some of this users data like gender, age or whatever
4. Click save
Succesfully saved5. Now activate the plugin and do the same.
When clicking save data, white screen with the warnings appear doesn’t matter which xprofile field you have changed.- This reply was modified 3 weeks ago by Alex.
Thank you Alex.
I have tested it with latest BuddyPress 14.1 and I don’t see the issue.It is probably the profile data control settings/custom field types which is causing it. Do you have a staging site where I can take a look at the profile fields and their configuration(which is using data control)?
Regards
BrajeshHello Brajesh,
ok, I switched off everything except this plugin adn buddypress 14.1.0 and bp classic. I also switched theme from Astra to twenty twenty four.As an admin no errors. But again, logged in as a subscriper I have the issue.
So as you said, I suppose it has to do with the settings.I will make further checks and come back to you afterwards.
This is what I found out.
The warning did not occur on my staging site. So I switched on/off different parameters.Then when I changed the username xfield in the backend at “who can edit” from all members to administrator the warning occurs on my staging site as well.
The worst is, that making this change undo didn’t solve the problem. Nor a reinstall of the plugin or cache delete.
The only way at the moment to prevent this error message from occuring is to leave the plugin deactivated. So this setting must have saved values which are not beeing cleaned after plugin deletion.Strange behaviour also, when using query monitor to see more details of the problem the warning message doesn’t appear.
- This reply was modified 2 weeks, 6 days ago by Alex.
Hello Brajesh,
could you give a short report that you are able to reproduce the warning and are working on a fix?
Otherwise I need to look after other solutions like this one f.e.
https://buddypress.org/support/topic/dont-allow-users-to-change-some-fields-after-sign-up-hide-those-fields/
because I dont want, that subscripers can edit their username after registration.Thanks for giving a short update on this!
Hi Alex,
Thank you.From your descriptions, what I understand is that when a profile is updated and incomplete activity is saved by BuddyPress if the profile data control is enabled for Full name(BuddyPress does not have a username field). The error does not go because the incomplete activity remains in the database(You can delete it from Dashboard->Activity).
Which version of BuddyPress are you using. Are you using BP classic plugin with it. Which theme and template pack are you using.
Please let me know and I will re-create it and debug.
Thank you
BrajeshHello Brajesh,
I made another test to reproduce the error. On localhost I didn’t have this error yet.
Its the same procedure what I wrote above.
Plugins activated: Your data control plugin (current version), bp classic and buddypress (both current version).
Themes tested with: Astra and twenty twenty four.The name field is the only field on xfields section which you cannot delete. Make the changes at your plugin which I made the screenshot from (switch “who can edit” from Adminstrator to Subscriber).
Then you get the warning. This time with debug on I got a more detailled warning. I also attach these image here. Hope this helps.This is all what I can do to help to fix that issue.
Meanwhile I programmed my own plugin for my needs with the advantage that I know whats going on.
So I don’t need this plugin anymore. If you want you can mark this thread as solved.
Error message
https://postimg.cc/JDVF3Q8D
You must be logged in to reply to this topic.