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) »
  • Blank page after "Confirm your registration information" using Moneris [SOLVED]
Pages: [1]

Author Topic: Blank page after "Confirm your registration information" using Moneris [SOLVED]  (Read 2458 times)

ronmo

  • Guest
Blank page after "Confirm your registration information" using Moneris [SOLVED]
September 03, 2010, 08:23:41 am
Hi

I use Moneris for online transactions since 2 years in a OSCommerce shopping cart and everything was OK.

I planned to use civiCRM for event registration using Moneris. I've set up a demo event, enter the account information into the Moneris payment Gateway, activated it and selected Moneris for this demo event.

When I do a test-drive and live transaction, a blank page appears after selecting the Continue button in the "Confirm your registration information" page.. The url of this blank page is (for test drive):

https://www.mysite.com/administrator/index2.php?option=com_civicrm&task=civicrm/event/register&

Looks like there is something missing at the end of the URL...

I use version 3.2 of civiCRM, a SSL cert is installed and working properly, php safe_mode is OFF.

Thanks for helping me!

By the way, I tried with paypal payment processor and it works.
« Last Edit: September 24, 2010, 08:58:20 am by ronmo »

ronmo

  • Guest
Re: Blank page after "Confirm your registration information" using Moneris
September 03, 2010, 08:49:41 am
I forced error report and I got this instead of a blank page (I replaced my domain username by xxxxxxxx)

Quote
Notice: Undefined index: is_primary in /home/xxxxxxxx/public_html/administrator/components/com_civicrm/civicrm/CRM/Core/BAO/Address.php on line 109

Warning: include_once() [function.include-once]: Filename cannot be empty in /home/xxxxxxxx/public_html/administrator/components/com_civicrm/civicrm/CRM/Core/Payment/Moneris.php on line 56

Warning: include_once() [function.include]: Failed opening '' for inclusion (include_path='.:/home/xxxxxxxx/public_html/administrator/components/com_civicrm/civicrm:/home/xxxxxxxx/public_html/administrator/components/com_civicrm/civicrm/packages:.:/usr/lib/php:/usr/local/lib/php') in /home/xxxxxxxxpublic_html/administrator/components/com_civicrm/civicrm/CRM/Core/Payment/Moneris.php on line 56

Fatal error: Class 'mpgCustInfo' not found in /home/xxxxxxxx/public_html/administrator/components/com_civicrm/civicrm/CRM/Core/Payment/Moneris.php on line 87
« Last Edit: September 03, 2010, 09:27:09 am by ronmo »

midloman

  • I post occasionally
  • **
  • Posts: 62
  • Karma: 1
Re: Blank page after "Confirm your registration information" using Moneris
September 03, 2010, 11:29:52 am
Offhand, I'd say the Moneris.php isn't working quite right.  I had to do some tweaking on the gateway product we use.
Do you have any PHP skills?  It's going to involve putting in some display statements to see what you are actually getting instead of what you expect to get, then altering the code to send the appropriate values.

ronmo

  • Guest
Re: Blank page after "Confirm your registration information" using Moneris
September 03, 2010, 11:46:13 am
Thanks for your help!

I have limited php skills but I'm able to modify php code with instruction.

midloman

  • I post occasionally
  • **
  • Posts: 62
  • Karma: 1
Re: Blank page after "Confirm your registration information" using Moneris
September 03, 2010, 11:53:58 am
Shoot me an email @ jamesf22@verizon.net, I'll reply privately with a phone number

Mackelito

  • Guest
Re: Blank page after "Confirm your registration information" using Moneris
September 19, 2010, 02:57:21 pm
hmm.. I have the same problem but I use the "Pay Later" option and have all payment prosessors disabled... Any tips?

ronmo

  • Guest
Re: Blank page after "Confirm your registration information" using Moneris
September 24, 2010, 06:44:43 am
OK, we solve the problem (thanks to midloman for his great support!). This work for me, I use Joomla 1.5 on an Apache server with Cpanel.

First you have to download the mpgClasses.php from Moneris API (www.moneris.com and ask for a password). Upload this file in the "administrator/components/com_civicrm/civicrm/packages/Services" folder in your Joomla installation.

Then, open the file Moneris.php in "administrator/components/com_civicrm/civicrm/CRM/Core/Payment" folder.

On line 56, replace the
Code: [Select]
include_once ('/Services/mpgClasses.php');by the full path to the mpgClasses.php file (replace "yoursite" by your domain root).
Code: [Select]
include_once ('/home/yoursite/public_html/administrator/components/com_civicrm/civicrm/packages/Services/mpgClasses.php');
If you don't use Cpanel, you can find the full path of current directory by adding these line somewhere before line 56. Delete the code after you get it.
Code: [Select]
echo getcwd() . "\n";

Finally, disable the lines 57 to 60:
Code: [Select]
/*{
  // require moneris supplied api library
           CRM_Core_Error::fatal( ts( 'Please download and put the Moneris mpgClasses.php file in packages/Services directory to enable Moneris Support.' ) );
}*/

This should work. Test it in test-drive environment first.
« Last Edit: September 24, 2010, 07:47:11 am by ronmo »

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • Blank page after "Confirm your registration information" using Moneris [SOLVED]

This forum was archived on 2017-11-26.