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 »
  • Community Contributed Payment Processors »
  • Moneris Undefined constant, properties and variables
Pages: [1]

Author Topic: Moneris Undefined constant, properties and variables  (Read 938 times)

htheriault

  • I’m new here
  • *
  • Posts: 2
  • Karma: 0
  • CiviCRM version: 4.3.5
  • CMS version: Drupal 7.x
  • MySQL version: 5.5.32
  • PHP version: 5.3
Moneris Undefined constant, properties and variables
October 04, 2013, 12:31:49 pm
Hi,

After using the Moneris classes from thread http://forum.civicrm.org/index.php/topic,27328.msg116452.html#msg116452 I am getting a lot of errors of undefined items. I've attached a snip:

I ran a successful test transaction, even with the errors that appear, client side.

Where would I start to look for the source of the problem?

Thanks,

htheriault

  • I’m new here
  • *
  • Posts: 2
  • Karma: 0
  • CiviCRM version: 4.3.5
  • CMS version: Drupal 7.x
  • MySQL version: 5.5.32
  • PHP version: 5.3
Re: Moneris Undefined constant, properties and variables
October 08, 2013, 03:00:59 am
Anybody?

adixon

  • I post frequently
  • ***
  • Posts: 314
  • Karma: 19
    • Blackfly Solutions
Re: Moneris Undefined constant, properties and variables
October 08, 2013, 05:20:32 am
Judging from your errors, it looks to me like the mpgClasses.php that you are using isn't quoting it's associative array keys. I wonder if some copy/paste operation has mangled what you got from that link?

If you want more details: look at your mpgClasses.php file and search for the string "cust_info" - it should be quoted in all places.

If that's not the issue, then I'd suspect it's a php version problem. I do notice that that version of mpgClasses.php is using a pretty old style of php and it might have some bits that aren't compatible with more recent versions of php.

m4olivei

  • I post occasionally
  • **
  • Posts: 39
  • Karma: 2
  • CiviCRM version: 4.3.5
  • CMS version: Drupal 7.23
  • MySQL version: MySQL 5
  • PHP version: PHP 5.3
Re: Moneris Undefined constant, properties and variables
January 16, 2014, 07:01:06 am
Unfortunately, this is an issue even if you use the latest mpgClasses.php file distributed by Moneris in their Developer portal (https://developer.moneris.com/SignIn).  It's just poorly written, or was written a long time ago and never updated for more recent version of PHP.  I have a conference call with Moneris today regarding other issues, but I'll see if I can ask about this, whether or not they'll accept patches, or just fix it themselves.

Thanks,
Matt

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute »
  • Community Contributed Payment Processors »
  • Moneris Undefined constant, properties and variables

This forum was archived on 2017-11-26.