cwales95 → created an issue.
Hi, this issue doesn't seem to be fixed.
The issue persists because the code in pet_substitutions
expects $params['language']
to be set but $params['language']
is set directly after pet_substitutions
is called.
Can we reopen this issue?
I've provided a quick patch that fixes the issues I addressed. initSdk() returns NULL if no keys are provided and the button to add an account no longer shows if the SDK cannot be initialised. It shows a message explaining that keys need added before this can happen.
cwales95 → created an issue.
cwales95 → created an issue.
I can confirm this is still an issue. The patch in #8 seemingly works.
Something has changed during the code execution I think. preSave is being called on the Profile before the User entity is saved i.e before a uid is available.
Just came across this myself on Drupal 10.1.0 and profile version 8.x-1.7.