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 »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • Failed opening required 'CRM/Contribute/Pseudoconstant.php
Pages: [1]

Author Topic: Failed opening required 'CRM/Contribute/Pseudoconstant.php  (Read 1138 times)

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
Failed opening required 'CRM/Contribute/Pseudoconstant.php
December 06, 2011, 07:28:36 am
Hi,

Since upgrading to Civi 4.1 I am getting this error every time I try and administer Civimember Component Settings.

Any ideas?


Fatal error: require_once() [function.require]: Failed opening required 'CRM/Contribute/Pseudoconstant.php' (include_path='.:/home/brazil/www/beta/sites/all/modules/civicrm:/home/brazil/www/beta/sites/all/modules/civicrm/packages:.:/usr/local/php53/lib/php') in /home/brazil/www/beta/sites/all/modules/civicrm/CRM/Admin/Form/Preferences/Member.php on line 70

I have upgraded 3 distinct environments from 4.07 to 4.1 and get this now on all 3.

This error also shows itself, currently on my member import screens:

Warning: require_once(CRM/Contribute/Pseudoconstant.php): failed to open stream: No such file or directory in CRM_Admin_Form_Preferences_Member::buildQuickForm()


I can confirm that the file exists : /home/brazil/www/beta/sites/all/modules/civicrm/CRM/Contribute/PseudoConstant.php


Interesting. I am having a strange issue importing memberships using a csv scheme that worked like clockwork in the past so I went to the sandbox to try and replicate it, surprise surprise:

I was also able to replicate this error on sandbox.drupal.civicrm.org.

Fatal error: CRM_Admin_Form_Preferences_Member::require_once() [function.require]: Failed opening required 'CRM/Contribute/Pseudoconstant.php' (include_path='.:/var/www/sandbox.drupal.civicrm.org/public/sites/sandbox.drupal.civicrm.org/modules/civicrm/:/var/www/sandbox.drupal.civicrm.org/public/sites/sandbox.drupal.civicrm.org/modules/civicrm//packages:.:/usr/share/php:/usr/share/pear') in /var/www/d7.demo.civicrm.org/svn/trunk/CRM/Admin/Form/Preferences/Member.php on line 70


« Last Edit: December 06, 2011, 07:55:03 am by DerekL »

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: Failed opening required 'CRM/Contribute/Pseudoconstant.php
December 06, 2011, 07:52:09 am

this is now fixed in svn and will be part of alpha2

the patch will appear here soon:

https://fisheye2.atlassian.com/changelog/CiviCRM?cs=37826

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

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: Failed opening required 'CRM/Contribute/Pseudoconstant.php
December 06, 2011, 08:28:57 am
Great. Thanks!

I'm having an issue applying the patch.

Dry Run tells me that you and I have different ContributionRecur.php files.

Mine is about 250 lines in total and has correct camel casing for PseudoConstant already, while the patch is applying those fixes at line 273...
« Last Edit: December 06, 2011, 08:31:50 am by DerekL »

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: Failed opening required 'CRM/Contribute/Pseudoconstant.php
December 06, 2011, 08:59:49 am

u might just want to wait for alpha2. will be out in a day or two

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

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: Failed opening required 'CRM/Contribute/Pseudoconstant.php
December 06, 2011, 09:04:48 am

i also upgraded the drupal sandbox to use the latest version of the svn codebase. so hopefully no more fatal errors :)

there have been some recurring contrib patches that were applied and hence the difference in number of lines etc

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

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • Failed opening required 'CRM/Contribute/Pseudoconstant.php

This forum was archived on 2017-11-26.