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 CiviEvent (Moderator: Yashodha Chaku) »
  • Paypal - Event Registration Warning Message
Pages: [1] 2

Author Topic: Paypal - Event Registration Warning Message  (Read 2801 times)

crewman85

  • I’m new here
  • *
  • Posts: 7
  • Karma: 0
  • CiviCRM version: 4.1.4
  • CMS version: Wordpress 3.4.1
  • MySQL version: 5.0
  • PHP version: 5.0.92
Paypal - Event Registration Warning Message
September 06, 2012, 05:19:13 pm
Every since upgrade to latest version of CiviCRM in Wordpress
Warning: Invalid argument supplied for foreach() in /home/content/57/9530657/html/wp-content/plugins/civicrm/civicrm/CRM/Event/Form/Registration/Register.php on line 255

Error message when I choose Paypal as a payment type for event registration payment.



I tested out a regular donation page and my payment prcoessed correctly with paypal.

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: Paypal - Event Registration Warning Message
September 07, 2012, 07:44:39 am

can u reproduce this on the demo server

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

crewman85

  • I’m new here
  • *
  • Posts: 7
  • Karma: 0
  • CiviCRM version: 4.1.4
  • CMS version: Wordpress 3.4.1
  • MySQL version: 5.0
  • PHP version: 5.0.92
Re: Paypal - Event Registration Warning Message
September 07, 2012, 03:27:39 pm
i'm using Paypal standard and your demo is using PayPal Pro - not sure if that's where the difference may lie?


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: Paypal - Event Registration Warning Message
September 07, 2012, 04:36:56 pm

u can add a new payment processor to the demo server

i just tried with paypal std locally and could not reproduce it

however, a few other folks have reported this issue, so would be great if we can reproduce this and fix it for the next release

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

crewman85

  • I’m new here
  • *
  • Posts: 7
  • Karma: 0
  • CiviCRM version: 4.1.4
  • CMS version: Wordpress 3.4.1
  • MySQL version: 5.0
  • PHP version: 5.0.92
Re: Paypal - Event Registration Warning Message
September 07, 2012, 04:51:09 pm
Tested demo site iwith PayPal standard and could not reproduce result ... Odd
The one difference is that the demo is using 3.4.1 and I'm using 3.4.2 on my site.

I'm going to keep testing.....

crewman85

  • I’m new here
  • *
  • Posts: 7
  • Karma: 0
  • CiviCRM version: 4.1.4
  • CMS version: Wordpress 3.4.1
  • MySQL version: 5.0
  • PHP version: 5.0.92
Re: Paypal - Event Registration Warning Message
September 08, 2012, 07:39:21 am
Did some testing on a test event page on my website to see if "Pay by Later" was throwing things off.   If I just have PayPal as payment option, after the confirmation screen it should go to paypal, instead i get this error:

Fatal error: Call to a member function doDirectPayment() on a non-object in /home/content/57/9530657/html/wp-content/plugins/civicrm/civicrm/CRM/Event/Form/Registration/Confirm.php on line 588

crewman85

  • I’m new here
  • *
  • Posts: 7
  • Karma: 0
  • CiviCRM version: 4.1.4
  • CMS version: Wordpress 3.4.1
  • MySQL version: 5.0
  • PHP version: 5.0.92
Re: Paypal - Event Registration Warning Message
September 11, 2012, 05:17:05 am
I'm still stuck on this issue.
Unless a fix is somehow found, I will skip over PayPal and have everyone register but submit payments my check in the meantime for my upcoming event.

DerekL

  • I post frequently
  • ***
  • Posts: 132
  • Karma: 1
  • CiviCRM version: 4.5.5
  • CMS version: Drupal 7.34
  • MySQL version: 5.1.54
  • PHP version: 5.2.17
Re: Paypal - Event Registration Warning Message
September 26, 2012, 10:17:21 am
I'm now experiencing this issue with CiviCRM 4.2.1? Was there any resolution?

sonicthoughts

  • Ask me questions
  • ****
  • Posts: 498
  • Karma: 10
Re: Paypal - Event Registration Warning Message
November 28, 2012, 08:29:07 pm
same issue with 4.2.4

MulderDSM

  • I post occasionally
  • **
  • Posts: 100
  • Karma: 0
  • CiviCRM version: 4.6.0
  • CMS version: Joomla 3.4.1
Re: Paypal - Event Registration Warning Message
December 01, 2012, 03:59:53 pm
I'm hoping someone figured this one out. Spent most of the day trying to get this set up for events and accept paypal for a client and now on Pay Later works. I get the same error, if I just select radio button for: Paypal.

Warning: Invalid argument supplied for foreach() in /home/iyc/public_html/wp-content/plugins/civicrm/civicrm/CRM/Event/Form/Registration/Register.php on line 269

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: Paypal - Event Registration Warning Message
December 01, 2012, 04:15:36 pm

no :(

i tried taking a look at this with jim meehan, but could not reproduce it locally on my machine with the exact same DB

so seems like some combination of php version and code

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

MulderDSM

  • I post occasionally
  • **
  • Posts: 100
  • Karma: 0
  • CiviCRM version: 4.6.0
  • CMS version: Joomla 3.4.1
Re: Paypal - Event Registration Warning Message
December 02, 2012, 08:10:39 am
I'm willing to provide any data/files you need. PHP is not my area of expertise, I can only edit a little in it and that's about it.

My server as: Apache version   2.2.22
PHP version   5.3.10
MySQL version   5.5.22-cll

I also removed PayPal and tried Google Checkout, and got same error, so it's not related to PayPal exclusively.

And this is a fresh install of CivicCRM yesterday with 4.2.6 and 1st event created.

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: Paypal - Event Registration Warning Message
December 02, 2012, 10:42:50 am

can you work with your local developer and/or consultant to help debug and figure out whats happening and why

we can help them get started on irc

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

sonicthoughts

  • Ask me questions
  • ****
  • Posts: 498
  • Karma: 10
Re: Paypal - Event Registration Warning Message
December 11, 2012, 08:17:38 am
PHP 5.3.19
Mysql 5.1.65-cll   
Apache/2.2.2  Centos
CiviCRM 4.2.6
Exact Same error foreach error message.  Note, I also see several "Notice" PHP messages. I know I can supress, but thought I would mention:
Notice: Undefined index: is_recur in CRM_Core_Payment_PayPalImpl->setExpressCheckOut() (line 113 of /home/jicny/public_html/drupal/sites/all/modules/civicrm/CRM/Core/Payment/PayPalImpl.php).

Notice: Undefined index: middlename in CRM_Core_Payment_PayPalImpl->getExpressCheckoutDetails() (line 163 of /home/jicny/public_html/drupal/sites/all/modules/civicrm/CRM/Core/Payment/PayPalImpl.php).

Notice: Undefined index: shiptostreet2 in CRM_Core_Payment_PayPalImpl->getExpressCheckoutDetails() (line 166 of /home/jicny/public_html/drupal/sites/all/modules/civicrm/CRM/Core/Payment/PayPalImpl.php).

Notice: Undefined index: payer in CRM_Contribute_Form_Contribution_Confirm->preProcess() (line 72 of /home/jicny/public_html/drupal/sites/all/modules/civicrm/CRM/Contribute/Form/Contribution/Confirm.php).

Notice: Undefined property: CRM_Event_Form_Registration_Register::$_feeBlock in CRM_Event_Form_Registration_Register->setDefaultValues() (line 269 of /home/jicny/public_html/drupal/sites/all/modules/civicrm/CRM/Event/Form/Registration/Register.php).

Warning: Invalid argument supplied for foreach() in CRM_Event_Form_Registration_Register->setDefaultValues() (line 269 of /home/jicny/public_html/drupal/sites/all/modules/civicrm/CRM/Event/Form/Registration/Register.php).

Notice: Undefined index: is_recur in CRM_Contribute_BAO_Contribution_Utils::processConfirm() (line 179 of /home/jicny/public_html/drupal/sites/all/modules/civicrm/CRM/Contribute/BAO/Contribution/Utils.php).

Notice: Undefined index: returnURL in CRM_Core_Payment_PayPalImpl->doExpressCheckout() (line 194 of /home/jicny/public_html/drupal/sites/all/modules/civicrm/CRM/Core/Payment/PayPalImpl.php).

Notice: Undefined index: cancelURL in CRM_Core_Payment_PayPalImpl->doExpressCheckout() (line 195 of /home/jicny/public_html/drupal/sites/all/modules/civicrm/CRM/Core/Payment/PayPalImpl.php).

Notice: Undefined index: settleamt in CRM_Core_Payment_PayPalImpl->doExpressCheckout() (line 208 of /home/jicny/public_html/drupal/sites/all/modules/civicrm/CRM/Core/Payment/PayPalImpl.php).

Notice: Undefined index: billing_state_province_id-5 in CRM_Contribute_BAO_Contribution::createAddress() (line 1185 of /home/jicny/public_html/drupal/sites/all/modules/civicrm/CRM/Contribute/BAO/Contribution.php).

Notice: Undefined index: billing_country_id-5 in CRM_Contribute_BAO_Contribution::createAddress() (line 1185 of /home/jicny/public_html/drupal/sites/all/modules/civicrm/CRM/Contribute/BAO/Contribution.php).

gozer

  • I’m new here
  • *
  • Posts: 14
  • Karma: 0
  • CiviCRM version: 4.2
  • CMS version: Wordpress 3.5
  • MySQL version: 5.5
  • PHP version: 5.3
Re: Paypal - Event Registration Warning Message
December 13, 2012, 11:17:38 am
I have Moneris setup as a payment system and having the exact same issue.

Seems the _feeBlock is not an array.

Line 269: foreach ($this->_feeBlock as $key => $val) {

..but, if this is anything related to the event fees, those radio boxes are already being display at the top of the registration form.

For the moment, I'd be fine if I could just turn off warnings.  I have warnings already turned off in the php.ini, but is CiviCRM overriding that?  If so, where do I change that?
« Last Edit: December 13, 2012, 11:20:02 am by gozer »

Pages: [1] 2
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • Paypal - Event Registration Warning Message

This forum was archived on 2017-11-26.