Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
When I try to add a comment to a task I often get redirected to comment/reply/# and the comment isn't saved. I've stepped through several validation functions, but I can't seem to find anything causing it. Nothing in watchdog or php log.
Steps to reproduce
- Click on a task in the issue tracker.
- Add some text to the body.
- Save the comment.
- Page redirects to comment/reply/# and nothing is saved.
Comment | File | Size | Author |
---|---|---|---|
comment_redirect.mp4 | 3.57 MB | Tim Bozeman |
Comments
Comment #2
Tim Bozeman CreditAttribution: Tim Bozeman commentedComment #3
Tim Bozeman CreditAttribution: Tim Bozeman commented.
Comment #4
Tim Bozeman CreditAttribution: Tim Bozeman commentedUpdated issue summary. I don't think it's wysiwyg any more. Creating a task also gets redirected to the node/add page with no save.
Clicking the browser back button and resaving eventually works, but usually messes up the images.
Comment #5
dpoletto CreditAttribution: dpoletto commentedOn a OA 2.43 stock site (I'm using for testing) I'm not able to reproduce although, with respect to your steps, I did:
If, while updating the Task, I also add - as you did - an image file through the WYSIWYG toolbar's "Add media" mini button, Submit and Save it all looks good -> the comment shows up with the image file uploaded with the size/style chosen. Adding an image file through the WYSIWYG toolbar during task's first creation doesn't change the final expected result: Task is correctly created.
So...could it be something specific to (your) OA 2.44? Was it updated from a pre-2.40 or was it a new fresh install of OA 2.44?
Comment #6
Tim Bozeman CreditAttribution: Tim Bozeman commentedThank you very much for your time trying to reproduce this @dpoletto! I'm sorry. This was a case of operator error. I think my varnish configuration was the culprit.