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.
After add message, the page is not reloaded. The message is displayed neither the recipient nor the sender. In the debug mode turns out an error.
Comment | File | Size | Author |
---|---|---|---|
2017-07-22_12-34-34.png | 120.29 KB | Mmitekk |
Comments
Comment #2
svendecabooterI was having the same issues.
I think this is theme related. Can you check if the same happens when using the Bartik theme?
I noticed the private_message js uses some CSS classes to find elements (such as ".field__items") that only get added to themes that use the "classy" base theme.
The JS code probably needs to be adapted to also work on themes that do not use the classy base theme.
Comment #3
Bala.addweb CreditAttribution: Bala.addweb at AddWeb Solution Pvt. Ltd. commentedMaybe following links will help to solve your problems:
1) Cannot read property 'getComputedStyle' of undefined ckeditor.
2) Uncaught TypeError: Cannot read property 'getAttribute' after that try it.
Comment #4
Mmitekk CreditAttribution: Mmitekk commentedIndeed, Ajax is working with the Bartik theme active. Sent messages are added without refreshing the page. But there are no changes on the recipient's side. Messages are visible only after the page is refreshed. By the way, "getComputedStyle" and other errors disappeared after I changed the field to a textarea.
Comment #5
idiaz.ronceroHi,
This might be related to this issue.
I had many problems like this because this module relies on a specific set of classes and containers to do the Ajax updates.
Comment #6
idiaz.ronceroAlso, there's another issue, this time with access checks, that prevents the thread page from serl-updating with the new messages.
I made an issue and a quick workaround here
Comment #7
Jaypan CreditAttribution: Jaypan commentedDuplicate of #2939723: Don't assume Drupal's default markup and classes.