CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Activity view from dash board
Pages: [1]

Author Topic: Activity view from dash board  (Read 1302 times)

taram

  • I post occasionally
  • **
  • Posts: 35
  • Karma: 2
Activity view from dash board
August 31, 2009, 12:17:17 pm
Hi, we are using civi 2.0.6 and have an issue with viewing activities from the dashboard by clicking on activity subject. The error we get is: "Sorry. A non-recoverable error has occurred.
is not of the type Positive

Return to home page."

When I debug, I found that cid is not set in $_GET so the url is http://localhost:8080/civicrm/contact/view/activity?activity_id=2&action=view&selectedChild=activity&id=8&cid=&history=0&context=Home

http://localhost:8080/index.php (suspended)   
   retrieve() /2.x/sites/all/modules/civicrm/CRM/Utils/Request.php at line 85   
   retrieve() /2.x/sites/all/modules/civicrm/CRM/Utils/Request.php at line 74   
   contact() /2.x/sites/all/modules/civicrm/CRM/Core/Invoke.php at line 286   
   contact() /2.x/sites/all/modules/civicrm/CRM/Core/Invoke.php at line 232   
   invoke() /2.x/sites/all/modules/civicrm/CRM/Core/Invoke.php at line 98   
   menu_execute_active_handler() /2.x/includes/menu.inc at line 386   
   /2.x/index.php at line 15   
   menu_execute_active_handler() /2.x/includes/menu.inc at line 386   
   /2.x/index.php at line 15   
   menu_execute_active_handler() /2.x/includes/menu.inc at line 386   
   /2.x/index.php at line 15   

Has anyone else faced the same issue?
Thanks in advance.


Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Activity view from dash board
August 31, 2009, 01:52:19 pm

hmmmmm

i assume it will work if the proper cid is sent. can you modify the url and check that it does work

any custom changes? I would go in and check the Dashboard.php code, specifically the part where we generate the activity links.

you can add some debug code here: CRM/Activity/Selector/Activity.php, approx line 314

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

taram

  • I post occasionally
  • **
  • Posts: 35
  • Karma: 2
Re: Activity view from dash board
August 31, 2009, 03:19:14 pm
Thanks Lobo.
It works in debug mode if correct cid is sent but fails in run time mode with this error even when correct cid is given: "Sorry. A non-recoverable error has occurred.
Could not find valid value for atype

Return to home page."

I debugged into Activity.php and see that the action links are created there. My action links are working fine but the subject hyperlink is the one that is failing. In Dashboard.php, the rows returned by selector do not have a hyperlink for subject field. I am not sure where this hyper link is being added.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Activity view from dash board

This forum was archived on 2017-11-26.