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) »
  • Profile giving non-recoverable error, integer
Pages: [1]

Author Topic: Profile giving non-recoverable error, integer  (Read 1749 times)

JMenn

  • I’m new here
  • *
  • Posts: 12
  • Karma: 1
Profile giving non-recoverable error, integer
June 16, 2009, 12:15:48 pm
I've searched but everything I've seen seems to be Drupal or Windows environments... I'm on Joomla 1.5.11

I updated to 2.2.5 from 2.2.3 and now it seems like when I try to register a contact using either of the two profile forms (different profiles) exposed to the front end of the web site, I get the non-recoverable error, One of parameters (value: ) is not of the type Integer message.  The contact information / data is still getting stored if I go check the contacts through CiviCRM's administration stuff, but the non-recovarable error isn't something I want the site users to be seeing.  Emails are being sent to the administrator (me) letting me know someone has signed up, as expected.

Here's the backtrace:

Quote
/home/.matrika/darque9/agj/RCEA_TestBed/administrator/components/com_civicrm/civicrm/CRM/Core/Error.php, backtrace, 258
/home/.matrika/darque9/agj/RCEA_TestBed/administrator/components/com_civicrm/civicrm/CRM/Utils/Type.php, fatal, 254
/home/.matrika/darque9/agj/RCEA_TestBed/administrator/components/com_civicrm/civicrm/CRM/Core/DAO.php, validate, 905
/home/.matrika/darque9/agj/RCEA_TestBed/administrator/components/com_civicrm/civicrm/CRM/Core/DAO.php, composeQuery, 882
/home/.matrika/darque9/agj/RCEA_TestBed/administrator/components/com_civicrm/civicrm/CRM/Contact/BAO/Contact/Permission.php, singleValueQuery, 69
/home/.matrika/darque9/agj/RCEA_TestBed/administrator/components/com_civicrm/civicrm/CRM/Profile/Page/View.php, allow, 129
/home/.matrika/darque9/agj/RCEA_TestBed/administrator/components/com_civicrm/civicrm/CRM/Profile/Page/View.php, preProcess, 149
/home/.matrika/darque9/agj/RCEA_TestBed/administrator/components/com_civicrm/civicrm/CRM/Core/Invoke.php, run, 205
/home/.matrika/darque9/agj/RCEA_TestBed/components/com_civicrm/civicrm.php, invoke, 76
/home/.matrika/darque9/agj/RCEA_TestBed/components/com_civicrm/civicrm.php, civicrm_invoke, 24
/home/.matrika/darque9/agj/RCEA_TestBed/libraries/joomla/application/component/helper.php, require_once, 162
/home/.matrika/darque9/agj/RCEA_TestBed/includes/application.php, renderComponent, 124
/home/.matrika/darque9/agj/RCEA_TestBed/index.php, dispatch, 68

Any advice?

Edit: I didn't realize until a few minutes after the post, but this might be better posted in the upgrade forum -- if so my apologies.
« Last Edit: June 16, 2009, 12:32:40 pm by JMenn »

Kiran Jagtap

  • Ask me questions
  • ****
  • Posts: 533
  • Karma: 51
Re: Profile giving non-recoverable error, integer
June 16, 2009, 01:10:43 pm
hi,

goto : CRM/Profile/Page/View.php line around 129

change this if condition
Code: [Select]
   
if ( CRM_Core_Permission::check('access CiviCRM') && CRM_Contact_BAO_Contact_Permission::allow( $session->get( 'userID' ), CRM_Core_Permission::VIEW ) ) {

to

Code: [Select]
 
$hasViewPermission = false;
if ( $userID = $session->get( 'userID' ) ) {
      $hasViewPermission = CRM_Contact_BAO_Contact_Permission::allow( $userID, CRM_Core_Permission::VIEW );
}
if ( $hasViewPermission &&  CRM_Core_Permission::check('access CiviCRM') ) {

make sure to get backup of original file before applying this patch.

hope this help

kiran
You Are Designed To Choose... Defined By Choice.

JMenn

  • I’m new here
  • *
  • Posts: 12
  • Karma: 1
Re: Profile giving non-recoverable error, integer
June 16, 2009, 02:18:08 pm
Everything seems to be working brilliantly.  Thank you so much.  CiviCRM has likely saved me a ridiculous amount of time.

Kiran Jagtap

  • Ask me questions
  • ****
  • Posts: 533
  • Karma: 51
Re: Profile giving non-recoverable error, integer
June 16, 2009, 11:00:27 pm
Also here is the issue to handle : http://issues.civicrm.org/jira/browse/CRM-4651

thanks for catching

kiran
You Are Designed To Choose... Defined By Choice.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Profiles (Moderator: Dave Greenberg) »
  • Profile giving non-recoverable error, integer

This forum was archived on 2017-11-26.