I get an error when i deleting the activity in new tab but its working fine when delete from activity page.

error is : (Delete comment activity )

Fatal error: Call to undefined function ctools_modal_form_wrapper() in /var/www/html/PROJECTS/VERSIONED/FeedTheBull/trunk/HalosysCopy/sites/all/modules/contrib/heartbeat/modules/heartbeat_comments/heartbeat_comments.module on line 921
and
When delete normal activiy
Recoverable fatal error: Argument 2 passed to heartbeat_activity_modal_delete() must be an instance of HeartbeatActivity, string given in heartbeat_activity_modal_delete() (line 139 of /var/www/html/PROJECTS/VERSIONED/FeedTheBull/trunk/HalosysCopy/sites/all/modules/contrib/heartbeat/heartbeat.pages.inc).

Please solve this problem ASAP.

Thanks,
Vernit

Comments

Stalski’s picture

Status: Active » Closed (fixed)

Please use the dev version for now. This is already fixed.

Vernit’s picture

Status: Closed (fixed) » Needs review

Hello Stalski

Still in problem in DEV version in heartbeat comment module. when delete heartbeat comments on new page page say access denied after deleting.

i found it problem in code in heartbeat_comments.module
after submiting

function heartbeat_comments_delete_confirm_submit () {
 No redirection you have mention but have in heartbeat.pages.inc i.e
  //I use this and problem has been solved.
   // Make sure there is a redirect instead of delivering a page not found.
    if (!isset($form_state['redirect'])) {
      $form_state['redirect'] = '<front>';
    }
  
}
Stalski’s picture

Status: Needs review » Fixed

Hi,

It was a little more complicated than that. I forgot I once started this but never finished it completely. I pushed the solution to git. As soon as javascript does not work or is disabled, the redirect paths work. (but ofcourse this is only when no javascript)

Status: Fixed » Closed (fixed)

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