1

I'm having an intermitent issue with custom fields on a profile. Sometimes they are displaying fully and correctly, sometimes not (though name and email continues to be visible). It seems if I go into the profile and change a setting (any setting for any field) it then starts to display properly again on the public profile. Does anyone know why this is happening? We are on Drupal, on CiviCRM 5.58.1.

TIA

4
  • 1
    Are there any errors logged?
    – Lars SG
    Aug 11, 2023 at 15:47
  • 1
    Also, does this happen in every context (previewing the profile, using the profile in create mode, using the profile in a contribution or even page)?
    – Lars SG
    Aug 11, 2023 at 16:45
  • 1
    are you testing with different users? does Anonymous have the permission for 'access all custom fields' (or similarly named permission)
    – petednz - fuzion
    Aug 11, 2023 at 19:39
  • 2
    I think this may be lab.civicrm.org/dev/core/-/issues/2920. Take a look at the replication steps there. Do you have a role without the "CiviCRM: access all custom data" permission? Try clearing cache and visit the profile immediately with an admin. Then clear cache and visit immediately with a user without "access all custom data". If that controls whether the fields show up, it's the same issue. Aug 11, 2023 at 21:09

1 Answer 1

2

Thanks for the replies. That "custom data" permission wasn't set (but it did work sometimes without that being tagged, for non-logged-in users, so I'm not sure if that itself was the problem?) But I've ticked that now, and I've refreshed the caches, and that made it work for administrators and anonymous users. I'll keep an eye on it to see if it continues to work. Thanks!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.