Hello,

when I use the user activity block and I comment something I have a problem to delete the comment. If I do that, the website only shows a white site. Delete the whole activity works fine.
This issue only took place when I use the block.

Best regards
Frank

Comments

Stalski’s picture

Status: Active » Postponed (maintainer needs more info)

I just tried that and it works fine on my end. Can you elaborate on this or point me in the direction to reproduce the problem?

Stalski’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

I tried this again from scratch and it all works fine when configuring the templates and then permissions. I attached some screenshots for the permissions.
I don't have a clue what's going wrong for you. I can say that I heard about some weird behavior when another module or custom code throws a javascript error. Then the non-js approach should be triggered and that might be the case?

I will check the other issue as well but I was happy to see it all worked for a normal registered user here from scratch. (sidenote: I did not enable the comments module for this test, only the heartbeat comments).

Stalski’s picture

Status: Closed (cannot reproduce) » Active

When I disable the javascript, I do get the white page. I'll fix that.
But as I said above, when this error occurs, this means your javascript is disabed OR a javascrapt fatal happened so other javascripts can not run. You can check this in chrome debugger or in firefox with firebug (console tab).

I'll check the white page now (error = Fatal error: Call to undefined function ctools_modal_form_wrapper()"

Stalski’s picture

Status: Active » Fixed

I fixed this and pushed it to git.
Thanks for the report.

fraweg’s picture

StatusFileSize
new74.64 KB
new10.15 KB
new394.96 KB

Hello Stalski,

thanks for your work. With this patch I can not delete comments (with older versions from you this works) but there is no white site.
I don't know what the problem is. At the moment I only have this problem with javascript with your module. For example Gallery Formatter and Drupalchat works fine (see Bildschirmfoto.png and Bildschirmfoto-1.png).
I have start the konsole on firefox an there are errors. I am not a developer, so I can not figure out what the problem is. You can see it on Bildschirmfoto-3.png. Is there anything else that I can test or do to solve the problem?

Best regards
Frank

fraweg’s picture

Hello,

But as I said above, when this error occurs, this means your javascript is disabed OR a javascrapt fatal happened so other javascripts can not run. You can check this in chrome debugger or in firefox with firebug (console tab).

I think I should open a new issue (http://drupal.org/node/1606302) for that.

Best regards
Frank

Stalski’s picture

Status: Fixed » Closed (cannot reproduce)

1) The javascript error says: "Drupal.shoutbox.afterSubmit" is undefined.
So check if heartbeat.js is loaded AND if the function beneath is present.

      Drupal.shoutbox = Drupal.shoutbox || {afterSubmit: function(){}};
	Drupal.shoutbox.afterSubmit.heartbeatPoller = {
	  execute: function (response) {
	    // Render new messages.
	    Drupal.heartbeat.pollMessages();
	  }
	}

So if the function is not there, then you know you have a very weird module of heartbeat somehow. If it is, then this means that the heartbeat.js is not included in the javascrpt of drupal OR that the javascript files are loaded incorrect. "Drupal.shoutbox = Drupal.shoutbox || {afterSubmit: function(){}};" should make sure the function is declared.

2) Drupal.theme.prototype => Same thing, the theme function for the CTools modal window is not included OR it is needed before the include was done. Neither should happen!

3) Same thing with that function not found.

So conclusion: this is very weird and it is not a heartbeat bug as this should not happen on normal sites.
The only thing I could think of is to enable javascript compression to see if the problems could be reproduced somehow, but I can't.

I will close this issue as this apparently only happens with the shoutbox module, which is no longer supported by heartbeat since the patches are not getting , no commits since long time and so on ...
So I can only say that this one is up to you and not a heartbeat bug.

Heartbeat now does the same thing with the ActivityStatus plugin. It would be nice if you could tell if you have problems then.

fraweg’s picture

Thanks for your support!

fraweg’s picture

This issue depends on shoutbox ans is not an heartbeat issue. After deactivating shoutbox everything is fine. so I will der it to fixed . Best regards Frank

fraweg’s picture

Status: Closed (cannot reproduce) » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.