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) »
  • Support »
  • Using CiviCRM »
  • Using Profiles (Moderator: Dave Greenberg) »
  • Problem with editing profiles via checksum
Pages: [1]

Author Topic: Problem with editing profiles via checksum  (Read 1154 times)

mpeirano

  • I’m new here
  • *
  • Posts: 19
  • Karma: 0
  • CiviCRM version: 4.2
  • CMS version: Joomla 2.5
  • MySQL version: 5.0.95-community
  • PHP version: 5.2.17
Problem with editing profiles via checksum
January 21, 2013, 09:09:03 pm
Sending a contact profile edit via checksum or editing a contact profile via Joomla menu returns this error (CiviCRM 4.2.7):

Sorry but we are not able to provide this at the moment.
is not of the type Positive

Any suggestions?

Thanks
Miguel Peirano

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: Problem with editing profiles via checksum
January 22, 2013, 07:15:35 am

can you check your CiviCRM.MD5 Hash.log file in the media directory and see if you can get a more detailed and specific error message

thanx

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

mpeirano

  • I’m new here
  • *
  • Posts: 19
  • Karma: 0
  • CiviCRM version: 4.2
  • CMS version: Joomla 2.5
  • MySQL version: 5.0.95-community
  • PHP version: 5.2.17
Re: Problem with editing profiles via checksum
January 22, 2013, 11:33:20 am
Thanks Lobo, here it goes:

Jan 22 17:24:08  [info] $Fatal Error Details = Array
(
    [message] =>  is not of the type Positive
   
Code: [Select]
=>
)


Jan 22 17:24:08  [info] $backTrace = #0 /home/iamcr/public_html/administrator/components/com_civicrm/civicrm/CRM/Core/Error.php(314): CRM_Core_Error::backtrace("backTrace", TRUE)
#1 /home/iamcr/public_html/administrator/components/com_civicrm/civicrm/CRM/Utils/Type.php(227): CRM_Core_Error::fatal(" is not of the type Positive")
#2 /home/iamcr/public_html/administrator/components/com_civicrm/civicrm/CRM/Core/BAO/UFGroup.php(269): CRM_Utils_Type::escape(NULL, "Positive")
#3 /home/iamcr/public_html/administrator/components/com_civicrm/civicrm/CRM/Profile/Form.php(242): CRM_Core_BAO_UFGroup::getFields(NULL, FALSE, NULL, NULL, NULL, FALSE, NULL, FALSE, NULL, 1)
#4 /home/iamcr/public_html/administrator/components/com_civicrm/civicrm/CRM/Profile/Form/Edit.php(109): CRM_Profile_Form->preProcess()
#5 /home/iamcr/public_html/administrator/components/com_civicrm/civicrm/CRM/Core/Form.php(338): CRM_Profile_Form_Edit->preProcess()
#6 /home/iamcr/public_html/administrator/components/com_civicrm/civicrm/CRM/Core/StateMachine.php(135): CRM_Core_Form->buildForm()
#7 /home/iamcr/public_html/administrator/components/com_civicrm/civicrm/CRM/Core/QuickForm/Action/Next.php(60): CRM_Core_StateMachine->perform(Object(CRM_Profile_Form_Edit), "next", "Next")
#8 /home/iamcr/public_html/administrator/components/com_civicrm/civicrm/packages/HTML/QuickForm/Controller.php(203): CRM_Core_QuickForm_Action_Next->perform(Object(CRM_Profile_Form_Edit), "next")
#9 /home/iamcr/public_html/administrator/components/com_civicrm/civicrm/packages/HTML/QuickForm/Page.php(103): HTML_QuickForm_Controller->handle(Object(CRM_Profile_Form_Edit), "next")
#10 /home/iamcr/public_html/administrator/components/com_civicrm/civicrm/CRM/Core/Controller.php(289): HTML_QuickForm_Page->handle("next")
#11 /home/iamcr/public_html/administrator/components/com_civicrm/civicrm/CRM/Core/Invoke.php(348): CRM_Core_Controller->run()
#12 [internal function](): CRM_Core_Invoke::profile((Array:3))
#13 /home/iamcr/public_html/administrator/components/com_civicrm/civicrm/CRM/Core/Invoke.php(187): call_user_func((Array:2), (Array:3))
#14 /home/iamcr/public_html/administrator/components/com_civicrm/civicrm/CRM/Core/Invoke.php(51): CRM_Core_Invoke::_invoke((Array:3))
#15 /home/iamcr/public_html/components/com_civicrm/civicrm.php(78): CRM_Core_Invoke::invoke((Array:3))
#16 /home/iamcr/public_html/components/com_civicrm/civicrm.php(18): civicrm_invoke()
#17 /home/iamcr/public_html/libraries/joomla/application/component/helper.php(383): require_once("/home/iamcr/public_html/components/com_civicrm/civicrm.php")
#18 /home/iamcr/public_html/libraries/joomla/application/component/helper.php(351): JComponentHelper::executeComponent("/home/iamcr/public_html/components/com_civicrm/civicrm.php")
#19 /home/iamcr/public_html/includes/application.php(197): JComponentHelper::renderComponent("com_civicrm")
#20 /home/iamcr/public_html/index.php(42): JSite->dispatch()
#21 {main}


andrewhunt

  • I post occasionally
  • **
  • Posts: 80
  • Karma: 13
    • AGH Strategies
  • CiviCRM version: all of 'em
  • CMS version: Drupal, Joomla, and WordPress
Re: Problem with editing profiles via checksum
January 22, 2013, 12:15:49 pm
Miguel,

What's the URL that you're going to?  (Feel free to replace the domain name with "whatever.org".)  Somehow the ID number of the profile isn't getting passed through to the function that gets the fields that belong to it.   I wonder whether it might have gotten deleted while you were putting together the URL with the contact ID and checksum.

For reference, the URL ought to look like:
http://whatever.org/?option=com_civicrm&task=civicrm/profile/edit&gid=XXX&reset=1&id={contact.contact_id}&{contact.checksum}
where XXX is the profile ID
You can find me at AGH Strategies.
Need help now?  Civi911 is your go-to for CiviCRM support.

mpeirano

  • I’m new here
  • *
  • Posts: 19
  • Karma: 0
  • CiviCRM version: 4.2
  • CMS version: Joomla 2.5
  • MySQL version: 5.0.95-community
  • PHP version: 5.2.17
Re: Problem with editing profiles via checksum
January 22, 2013, 12:33:39 pm
But I do get to the correct profile, the problem arises when I attempt to save any changes. It also happens when I retrieve the profile from a Joomla menu, exactly the same thing. It picks up the right data, but it returns the same error if I try to save it. The checksum URL is below.

thanks
Miguel

http://whatever.org/index.php?option=com_civicrm&task=civicrm/profile/edit&reset=1&gid=29&id=2084&cs=58a3ac372a7f59b049ba7bb536de29cf_1358827162_168

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: Problem with editing profiles via checksum
January 22, 2013, 06:57:04 pm

whats the url when you get the error message?

is it still http://whatever.org/.... or something different

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

mpeirano

  • I’m new here
  • *
  • Posts: 19
  • Karma: 0
  • CiviCRM version: 4.2
  • CMS version: Joomla 2.5
  • MySQL version: 5.0.95-community
  • PHP version: 5.2.17
Re: Problem with editing profiles via checksum
January 22, 2013, 07:05:11 pm
Error appears in

http://whatever.org/index.php?option=com_civicrm&task=civicrm/profile/edit

Page title:

CiviCRM-001 - Error: CiviCRM-001

Thanks
Miguel

mpeirano

  • I’m new here
  • *
  • Posts: 19
  • Karma: 0
  • CiviCRM version: 4.2
  • CMS version: Joomla 2.5
  • MySQL version: 5.0.95-community
  • PHP version: 5.2.17
Re: Problem with editing profiles via checksum
January 23, 2013, 04:50:01 pm
I sorted out the problem thanks to this post: http://forum.civicrm.org/index.php?topic=21881.0 by Kurud Jalmi.

The checksum link didn't have the www prefix. Attempting to save the profile sent via checksum, somehow also broke the profile shown via the Joomla menu, but only temporarily (till cache was flushed, I think). I still find this inexplicable, but it fixed it. Thanks for your help.

cheers
Miguel

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Profiles (Moderator: Dave Greenberg) »
  • Problem with editing profiles via checksum

This forum was archived on 2017-11-26.