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 (Moderator: Dave Greenberg) »
  • New Pledge screen error notice
Pages: [1]

Author Topic: New Pledge screen error notice  (Read 353 times)

allenthehusband

  • I’m new here
  • *
  • Posts: 27
  • Karma: 2
  • CiviCRM version: 4.5
  • CMS version: Drupal 7
  • PHP version: 5.3
New Pledge screen error notice
May 08, 2014, 12:20:51 pm
With CiviPledge enabled, and I navigate to the New Pledge screen, I get the following error:

  • Notice: Undefined index: 1 in CRM_Pledge_Form_Pledge->buildQuickForm() (line 467 of /sites/all/modules/civicrm/CRM/Pledge/Form/Pledge.php).
  • Notice: Undefined index: 3 in CRM_Pledge_Form_Pledge->buildQuickForm() (line 467 of /sites/all/modules/civicrm/CRM/Pledge/Form/Pledge.php).

Looking at Pledge.php, lines 460-472 are as follows:
Code: [Select]
    $pageIds = array();
    CRM_Core_DAO::commonRetrieveAll('CRM_Pledge_DAO_PledgeBlock', 'entity_table',
      'civicrm_contribution_page', $pageIds, array('entity_id')
    );
    $pages = CRM_Contribute_PseudoConstant::contributionPage();
    $pledgePages = array();
    foreach ($pageIds as $key => $value) {
      $pledgePages[$value['entity_id']] = $pages[$value['entity_id']];
    }
    $element = $this->add('select', 'contribution_page_id', ts('Self-service Payments Page'),
      array(
        '' => ts('- select -')) + $pledgePages
    );

With line 467 being
Code: [Select]
$pledgePages[$value['entity_id']] = $pages[$value['entity_id']];
As I'm newer to CiviCRM development, any ideas on what is causing the error?

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM (Moderator: Dave Greenberg) »
  • New Pledge screen error notice

This forum was archived on 2017-11-26.