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.

CommentFileSizeAuthor
2017-07-22_12-34-34.png120.29 KBMmitekk
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Mmitekk created an issue. See original summary.

svendecabooter’s picture

I 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.

Bala.addweb’s picture

Assigned: Mmitekk » Unassigned

Maybe 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.

Mmitekk’s picture

Indeed, 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.

idiaz.roncero’s picture

Hi,

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.

idiaz.roncero’s picture

Also, 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

Jaypan’s picture

Status: Active » Closed (duplicate)