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 CiviContribute (Moderator: Donald Lobo) »
  • PCP error: One of parameters (value: ) is not of the type Integer
Pages: [1]

Author Topic: PCP error: One of parameters (value: ) is not of the type Integer  (Read 1381 times)

bcobin

  • I post frequently
  • ***
  • Posts: 337
  • Karma: 9
    • InterCreative Media
  • CiviCRM version: 4.3.3
  • CMS version: Drupal 7.22
  • MySQL version: 5.5.9
  • PHP version: 5.3
PCP error: One of parameters (value: ) is not of the type Integer
February 15, 2011, 06:22:22 pm
I'm unable to get Personal Campaign Pages to work on this site - I get the following error message when I go to http://[site]/civicrm/contribute/campaign?reset=1&id=1:

Sorry. A non-recoverable error has occurred.
One of parameters (value: ) is not of the type Integer

I'm on 3.3.3, using Authorize.net and secure pages are enabled, as are recurring contributions. I've tried everything I can think of and there's no change. I'm using the Supporter Profile for PCP and two other profiles in the main contribution workflow; one of the profiles is first name, last name and email and the other profile holds employer information. I get the same error even when logged in as superadmin, so it's not a permissions issue.

Unfortunately, I'm not able to reproduce this on the demo site.

This is a little embarrassing as the client just jumped from Qgiv to Civi, at least partially on account of the ability to set up Personal Campaign Pages. Eep!

Otherwise, Contribute seems to work OK.

Below is the backtrace - any suggestions greatly appreciated... thank you!

Backtrace:

/home/[site]/public_html/sites/all/modules/civicrm/CRM/Core/Error.php, backtrace, 270
/home/[site]/public_html/sites/all/modules/civicrm/CRM/Utils/Type.php, fatal, 268
/home/[site]/public_html/sites/all/modules/civicrm/CRM/Core/DAO.php, validate, 922
/home/[site]/public_html/sites/all/modules/civicrm/CRM/Core/DAO.php, composeQuery, 893
/home/[site]/public_html/sites/all/modules/civicrm/CRM/Contribute/BAO/PCP.php, singleValueQuery, 665
/home/[site]/public_html/sites/all/modules/civicrm/CRM/Contribute/Form/PCP/PCPAccount.php, getSupporterProfileId, 144
/home/[site]/public_html/sites/all/modules/civicrm/CRM/Core/Form.php, buildQuickForm, 326
/home/[site]/public_html/sites/all/modules/civicrm/CRM/Core/QuickForm/Action/Display.php, buildForm, 99
/home/[site]/public_html/sites/all/modules/civicrm/packages/HTML/QuickForm/Controller.php, perform, 203
/home/[site]/public_html/sites/all/modules/civicrm/packages/HTML/QuickForm/Page.php, handle, 103
/home/[site]/public_html/sites/all/modules/civicrm/CRM/Core/Controller.php, handle, 284
/home/[site]/public_html/sites/all/modules/civicrm/CRM/Core/Invoke.php, run, 219
/home/[site]/public_html/sites/all/modules/civicrm/drupal/civicrm.module, invoke, 355
, civicrm_invoke,
/home/[site]/public_html/includes/menu.inc, call_user_func_array, 348
/home/[site]/public_html/index.php, menu_execute_active_handler, 18

« Last Edit: February 15, 2011, 06:26:25 pm by bcobin »

Kiran Jagtap

  • Ask me questions
  • ****
  • Posts: 533
  • Karma: 51
Re: PCP error: One of parameters (value: ) is not of the type Integer
February 16, 2011, 12:15:24 am
Hello,

I suspect id parameter is wrong in url  http://[site]/civicrm/contribute/campaign?reset=1&id=1

could please confirm your database should consists of pcp record with id = 1
(data base table name = civicrm_pcp )

Or if you want to create new pcp from contribution page, you need to change url
instead of 'id' parameter, url should consist of 'pageId=1' ( here 1 = contribution page id )

so you url would looks like :
 
http://[site]/civicrm/contribute/campaign?action=add&reset=1&pageId=1

also I added one more 'action' parameter. ( hope u r adding/creating new pcp )

Could you please give me some light on functional flow by which u came across this bug.

hope this help

thanks

kiran
« Last Edit: February 16, 2011, 02:54:23 am by Kiran Jagtap »
You Are Designed To Choose... Defined By Choice.

bcobin

  • I post frequently
  • ***
  • Posts: 337
  • Karma: 9
    • InterCreative Media
  • CiviCRM version: 4.3.3
  • CMS version: Drupal 7.22
  • MySQL version: 5.5.9
  • PHP version: 5.3
Re: PCP error: One of parameters (value: ) is not of the type Integer
February 16, 2011, 06:13:38 am
Thank you, Kiran - you're correct. With the URL you suggested, it seems to work OK! Looks like the only problem was the incorrect URL I was using to check adding PCP pages to an existing contribution page.

What's odd is that the URL I originally used seems to work fine in the Civi development sandbox, which made me think something was wrong.

Thank you so much for your help - not to mention the quick response! Perhaps this will help somebody else who runs into the same thing.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • PCP error: One of parameters (value: ) is not of the type Integer

This forum was archived on 2017-11-26.