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) »
  • Discussion »
  • Extensions »
  • CiviVolunteer (Moderators: GinkgoFJG, Michael Z Daryabeygi) »
  • Fatal Error when using CiviVolunteer after upgrading
Pages: [1]

Author Topic: Fatal Error when using CiviVolunteer after upgrading  (Read 1037 times)

developmentvista

  • I’m new here
  • *
  • Posts: 5
  • Karma: 0
  • The "development" is in reference to grants...
  • CiviCRM version: 4.5.2
  • CMS version: Wordpress 4.0
  • MySQL version: 5.5.37
  • PHP version: 5.4.24
Fatal Error when using CiviVolunteer after upgrading
October 21, 2014, 11:12:14 am
Hello,

We just upgraded our CiviCRM to 4.5.2, and now when we try to use CiviVolunteer we get a fatal error. This happens whenever we try to do anything that involves CiviVolunteer, though we can access events, etc. We are running version 1.3.2, but in the extensions administration page it is saying that we can upgrade to 1.3.2. I am not really sure what's going on.

Any help would be appreciated, thanks.


Here's what in the error message: Warning: require_once(CRM/Contact/Form/NewContact.php) [function.require-once]: failed to open stream: No such file or directory in /home/assemble/www/www/wp-content/plugins/civicrm/civicrm/CRM/Core/ClassLoader.php on line 166

Fatal error: require_once() [function.require]: Failed opening required 'CRM/Contact/Form/NewContact.php' (include_path='/home/assemble/www/www/wp-content/plugins/files/civicrm/custom_ext/uk.co.vedaconsulting.mailchimp/:/home/assemble/www/www/wp-content/plugins/files/civicrm/custom_ext/org.civicrm.volunteer/:/home/assemble/www/www/wp-content/plugins/files/civicrm/custom_php:.:/home/assemble/www/www/wp-content/plugins/civicrm/civicrm:/home/assemble/www/www/wp-content/plugins/civicrm/civicrm/packages:.:/home/assemble/www/www/wp-content/plugins/civicrm/civicrm/:/home/assemble/www/www/wp-content/plugins/civicrm/civicrm//packages:.:/usr/local/php53/lib/php') in /home/assemble/www/www/wp-content/plugins/civicrm/civicrm/CRM/Core/ClassLoader.php on line 166

GinkgoFJG

  • Moderator
  • I post frequently
  • *****
  • Posts: 135
  • Karma: 4
    • Ginkgo Street Labs
Re: Fatal Error when using CiviVolunteer after upgrading
October 21, 2014, 12:02:01 pm
The naming conventions are a little wacky:
  • CiviVolunteer 1.3.2 is for CiviCRM 4.4.
  • CiviVolunteer 4.5-1.3.2 is for CiviCRM 4.5.
There were a lot of changes in CiviCRM at the JavaScript level that required us to release parallel versions for 4.4 and 4.5.

Going forward, releases will be prefixed by the oldest version of CiviCRM that they work with. CiviVolunteer 1.4 will be released as 4.5-1.4. If 1.4 is compatible with 4.6, minor releases will continue to use the 4.5 prefix (e.g., 4.5-1.4.2, etc.).

That may be more information that you wanted... if you open up CiviVolunteer's info.xml file, lines 12 and 15 should be of interest. If you have the correct version for 4.5, you'll see version 4.5-1.3.2 and compatible version 4.5; otherwise these values will be 1.3.2 and 1.4, respectively.

Upgrading through the extensions administration page should be safe, but I'd try it on a dev site first.
Are you a CiviVolunteer user? Join the CiviVolunteer 2.0 Matching Grant effort to help the project win $15,000 in grant funding.

developmentvista

  • I’m new here
  • *
  • Posts: 5
  • Karma: 0
  • The "development" is in reference to grants...
  • CiviCRM version: 4.5.2
  • CMS version: Wordpress 4.0
  • MySQL version: 5.5.37
  • PHP version: 5.4.24
Re: Fatal Error when using CiviVolunteer after upgrading
October 21, 2014, 12:07:54 pm
Thanks, that makes a lot more sense! It is prompting us to upgrade to 4.5-1.3.2

I attempted to upgrade, and got the message "The downloader may be unable to download files which require HTTP redirection. This may be a configuration issue with PHP's open_basedir or safe_mode."

It is then unable to extract the extension and perform the upgrade.

To be honest, neither myself nor anyone I work with has any level of professional database experience. We're piecing it together as we go. Does this seem like a problem with its roots in our upgrade to the newest version of Civi, with CiviVolunteer alone, or something else entirely? We have installed and upgraded extensions before without ever running into this issue.

Thanks again

GinkgoFJG

  • Moderator
  • I post frequently
  • *****
  • Posts: 135
  • Karma: 4
    • Ginkgo Street Labs
Re: Fatal Error when using CiviVolunteer after upgrading
October 21, 2014, 01:15:21 pm
It looks like it might be a PHP configuration issue, as the error message suggests. I haven't seen this message before, and I wasn't able to reproduce it just now. I assume PHP is not in safe mode, so you may want to look at open_basedir.

If you don't have access to configure the server, or just don't want to, you can work around this by manually downloading the CiviVolunteer extension and unzipping it in your extensions directory, replacing the 4.4-compatible version. After that, revisit the manage extensions page -- you shouldn't see any notices that about un-executed upgrade scripts, but if you do you should run them.
Are you a CiviVolunteer user? Join the CiviVolunteer 2.0 Matching Grant effort to help the project win $15,000 in grant funding.

developmentvista

  • I’m new here
  • *
  • Posts: 5
  • Karma: 0
  • The "development" is in reference to grants...
  • CiviCRM version: 4.5.2
  • CMS version: Wordpress 4.0
  • MySQL version: 5.5.37
  • PHP version: 5.4.24
Re: Fatal Error when using CiviVolunteer after upgrading
October 21, 2014, 03:21:38 pm
Thank you. Sorry to keep making this problem deeper, but we noticed that the file /www/www/wp-content/plugins/civicrm/civicrm/CRM/Contact/Form/NewContact.php no longer existed in our file system.. We restored one from back-up files, and now the error that appears when we tried to use CiviVolunteer is specifically an error with the contents of our NewContact.php file. It reads as follows: "Fatal error: Call to undefined method CRM_Core_BAO_UFGroup::getReservedProfiles() in /home/assemble/www/www/wp-content/plugins/civicrm/civicrm/CRM/Contact/Form/NewContact.php on line 72"

We haven't tried anything with the upgrade. I'll be honest, I don't really understand where open_basedir is.

Thanks for all the help so far!

dshabra

  • I’m new here
  • *
  • Posts: 2
  • Karma: 0
  • CiviCRM version: Not sure
  • CMS version: Not sure
  • MySQL version: not sure
  • PHP version: not sure
Re: Fatal Error when using CiviVolunteer after upgrading
November 11, 2014, 09:46:26 am
We just upgraded to the current release and now on volunteers we are not able to open the define volunteer needs or assign volunteers.  The box opens but nothing displays.

Any ideas

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: Fatal Error when using CiviVolunteer after upgrading
November 13, 2014, 10:35:40 am
This solves the above: https://github.com/civicrm/org.civicrm.volunteer/pull/232
Try asking your question on the new CiviCRM help site.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Discussion »
  • Extensions »
  • CiviVolunteer (Moderators: GinkgoFJG, Michael Z Daryabeygi) »
  • Fatal Error when using CiviVolunteer after upgrading

This forum was archived on 2017-11-26.