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: "Failed to Open Stream" error
Pages: [1]

Author Topic: Moneris: "Failed to Open Stream" error  (Read 1485 times)

cognoscento

  • I post occasionally
  • **
  • Posts: 44
  • Karma: 1
  • CiviCRM version: 4.2
  • CMS version: Drupal 7.17
  • MySQL version: 5.1.65
  • PHP version: 5.3.17
Moneris: "Failed to Open Stream" error
November 16, 2011, 02:08:40 pm
I'm trying to set up Moneris payment processor but I've run into the following error:

Code: [Select]
    Warning: include_once(/home/interpca/public_html) [function.include-once]: failed to open stream: No such file or directory in CRM_Core_Payment_Moneris::__construct() (line 65 of /home/interpca/public_html/sites/all/modules/civicrm/CRM/Core/Payment/Moneris.php).
    Warning: include_once() [function.include]: Failed opening '' for inclusion (include_path='.:/home/interpca/public_html/sites/all/modules/civicrm:/home/interpca/public_html/sites/all/modules/civicrm/packages:.:/usr/lib/php:/usr/local/lib/php') in CRM_Core_Payment_Moneris::__construct() (line 65 of /home/interpca/public_html/sites/all/modules/civicrm/CRM/Core/Payment/Moneris.php).

The Moneris.php file is where it's supposed to be, as is the mpgClasses.txt (renamed to php) file. I double-checked the backet problem mentioned in http://wiki.civicrm.org/confluence/display/CRMDOC40/Moneris+Configuration+Guide. Also, all the paths look fine, but maybe I'm missing something...?

Can someone help, or point me in the right direction? :)
« Last Edit: November 16, 2011, 02:13:36 pm by cognoscento »

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Moneris: "Failed to Open Stream" error
November 17, 2011, 04:57:58 am
Are the permissions correct on those files?
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

cognoscento

  • I post occasionally
  • **
  • Posts: 44
  • Karma: 1
  • CiviCRM version: 4.2
  • CMS version: Drupal 7.17
  • MySQL version: 5.1.65
  • PHP version: 5.3.17
Re: Moneris: "Failed to Open Stream" error
November 17, 2011, 10:41:52 am
The moneris.php file is set to 644,  and it's parent directories are all 755. Same with the mpgClasses.php file: 644 and 755.

cognoscento

  • I post occasionally
  • **
  • Posts: 44
  • Karma: 1
  • CiviCRM version: 4.2
  • CMS version: Drupal 7.17
  • MySQL version: 5.1.65
  • PHP version: 5.3.17
Re: Moneris: "Failed to Open Stream" error
November 21, 2011, 10:09:17 am
Any other suggestions?

herb

  • I’m new here
  • *
  • Posts: 27
  • Karma: 2
Re: Moneris: "Failed to Open Stream" error
December 16, 2011, 03:16:42 pm
Try this patch: http://issues.civicrm.org/jira/secure/attachment/13871/patch.txt - note that the second open bracket should be before the include_once and not after. This got fixed in 3.4.6 / 4.0.5
Web Developer
Freeform Solutions

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute »
  • Community Contributed Payment Processors »
  • Moneris: "Failed to Open Stream" error

This forum was archived on 2017-11-26.