kylebehse → created an issue.
I'm load testing using k6 browser and want to do a simple page.goto(SITE_URL/user/logout). But k6 is erroring out and Drupal is logging:
- Path: /user/logout. Drupal\Core\Http\Exception\CacheableAccessDeniedHttpException: 'csrf_token' URL query argument is missing. in Drupal\Core\Routing\AccessAwareRouter->checkAccess() (line 115 of /code/web/core/lib/Drupal/Core/Routing/AccessAwareRouter.php).
Can I turn this off somewhere, like in my settings.php for a week while I get the results I need?
I'm having the same issue. I have an Account Manager role, and they need to be able to save the profile of a user that has uploaded a private file. But it is throwing access errors.
SOLVED: Drupal, "Oops, something went wrong. Check your browser's developer console for more details."
Yep, same here (line-break on line 1 of custom module).
To fix:
Go to a plain text editor, create new file, hit enter (to create a line-break), select all, copy.
Go to code editor, search entire site for:
Paste the line-break in, then type "<?"
It should find any line-breaks in line 1 of code. Note: I use the copy and paste technique because hitting enter in the search bar of the code editor means that you want it to search, not insert a new line.
This was hard to see, as VSCode had a helper icon blocking line #1.
Thanks, @rpayanm!
OMG, so easy but little documentation at this point. I'm going to add some keywords to the thread to make it easier for other people to find...
Drupal 10 Symfony Mailer not working with Sendgrid API.
Common errors:
- drupal symfony mailer Unable to write bytes on the wire
- drupal Error sending email: Unsupported sendmail command flags "/bin/true"; must be one of "-bs" or "-t" but can include additional flags.
Yeah, got the same issue. Just save it, regardless of the error and then reload the page... the token field will show up after that.
Also running into this issue with Lando on Pantheon recipe. php v8.1.18. If anyone finds a fix, I would love to know what I'm doing wrong. Cheers!