Even with this patch in place, I am still getting the same error message related to using 'guess' as the method name.
@mingsong I am not sure I entirely agree with this.
The 'send' button is only rendered if email is setup as otp anyway (even with application code as well), so surely there's a way to trigger the automatic email if 'only' email otp is enabled. This is not only a user experience improvement but also a pretty standard practice.
At the very minimum, adding in some messaging on the page to indicate the user must first click 'send' to receive the code should be considered as receiving the code automatically via email is a pretty standard practice in TFA, and without some messaging indicating users need to click it to even receive the first code isn't very use friendly.
Would a better solution be to just send the verification code when the TFA activation form is first displayed?
Seems counter-intuitive to have to click 'Send' first when you typically get the code sent automatically.
@ja09 That's correct. I can send the sendgrid test email, and all of the default system emails (password resets, etc) all go through, but any other emails not generated by Drupal core (like from other modules, or from custom modules), all throw the same error.
I did some debugging, and I temporarily added a print statement where the Assertion happens at (in vendor/fastglass/sendgrid/src/Mail/emailAddress.php), and it's printing the email address field twice, with no space and no commas between them. (e.g. test@example.comtest@example.com) on the PHP error page.
jfurnas β created an issue.
jfurnas β created an issue.
jfurnas β created an issue.
Uploading a new version of the patch.
Our team has been working on this for our own project and are sharing what we did.
I for some reason did not get notifications of this new issue. I will look at this. Thank you for reporting.
BUMP. Checking in on the status of this. Aside from having to increase the number of remembered devices to a really high number (and therefore making remember device limit pointless), there is no way to forget remembered devices for users. When the limit is reached, they are no longer asked to remember any more devices.
jfurnas β created an issue.
jfurnas β made their first commit to this issueβs fork.
All set. The licensing and *.info.yml information has been removed.
Hi! I had sort of bypassed the queue since there are already two issues in there that the maintainer/owner has not addressed in over a year. Felt it was pointless to post in the queue when it's not monitored.
jfurnas β created an issue.
Can I get a bump on this please? This has become an extreme burden as we are doing active development and keep getting our emails rerouted numerous times a day because config_ignore is not ignoring the settings and is instead changing them.
I can confirm that today, running Drupal Core 9.5.9 that I start seeing this issue immediately after a cache clear whenever I view a page that loads or uses entities. This is the error I am receiving as of today:
Warning: Undefined array key 1 in Drupal\Core\Entity\EntityDisplayRepository->getAllDisplayModesByEntityType()
Check your settings.php file. It looks like setup didn't write the settings.php file correctly or you have a module somewhere that's changing the database.
This has been pushed into the main release so I am going to mark this resolved.
jfurnas β created an issue.
jfurnas β created an issue.
Uploading the patch to remove the unneeded lines.
I am running PHP 8.1 and using the latest version of sendgrid_integration (with the above patch included in it), and I am receiving the same error message, except it's not returning the 'to' address. I can replicate it across all emails being sent in the system (both custom emails and system emails)
Thanks for the reply JayPan. Do you have an example of this? I have custom JavaScript in place via an attached library, but the JavaScript file runs only once so once I submit and the Ajax runs (which is when the validation happens), it doesn't re-attach/run the JavaScript.
jfurnas β created an issue.
@shrishail-hiremath,
Thanks for the response. I can confirm that I am running the most up to date version of the module. Weirdly enough though, it seems to be working now.
jfurnas β created an issue.