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/Core/ClassLoader.php'
Pages: [1]

Author Topic: Failed opening required '/CRM/Core/ClassLoader.php'  (Read 1477 times)

bpmccain

  • I post frequently
  • ***
  • Posts: 255
  • Karma: 5
  • CiviCRM version: 4.1
  • CMS version: Drupal 7.12
  • MySQL version: 5.2
  • PHP version: 5.2
Failed opening required '/CRM/Core/ClassLoader.php'
October 14, 2012, 05:54:00 am
Just completed an upgrade from 4.1.1 to 4.2.2 on my sandbox site. No errors during upgrade process, but when I move to step 2 on CiviMail (Track and Respond), I get an HTTP Error 500 (Internal Server Error): An unexpected condition was encountered while the server was attempting to fulfil the request.

When I check my sll_error_log, I see the following error:

[Sun Oct 14 12:41:37 2012] [error] [client 99.251.194.67] PHP Fatal error:  require_once(): Failed opening required '/CRM/Core/ClassLoader.php' (include_path='/persistent/html/customphp:.:/persistent/html/sites/all/modules/civicrm:/persistent/html/sites/all/modules/civicrm/packages:.:/usr/share/pear:/usr/share/php') in /persistent/html/sites/all/modules/civicrm/civicrm.config.php on line 113, referer: https://107.22.222.168/civicrm/mailing/send?reset=1

I know that ClassLoader.php appears to be new to 4.2. I added the lines to civicrm.settings.php. I see they are also at the bottom of the new civicrm.config.php file.

Any ideas what might be causing this?

Brian

bpmccain

  • I post frequently
  • ***
  • Posts: 255
  • Karma: 5
  • CiviCRM version: 4.1
  • CMS version: Drupal 7.12
  • MySQL version: 5.2
  • PHP version: 5.2
Re: Failed opening required '/CRM/Core/ClassLoader.php'
October 14, 2012, 01:03:56 pm
I'm getting the following error in my drupal log.

Notice: Undefined variable: civicrm_root in require_once() (line 113 of /persistent/html/sites/all/modules/civicrm/civicrm.config.php).

bpmccain

  • I post frequently
  • ***
  • Posts: 255
  • Karma: 5
  • CiviCRM version: 4.1
  • CMS version: Drupal 7.12
  • MySQL version: 5.2
  • PHP version: 5.2
Re: Failed opening required '/CRM/Core/ClassLoader.php'
October 14, 2012, 01:06:35 pm
I had to put global $civicrm_root above line 113 in civicrm.config.php.

Now everything works. Any idea why?

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/Core/ClassLoader.php'
October 14, 2012, 03:18:42 pm

1. Can you put a CRM_Core_Error::backtrace( ); above the global statement. Curious as to why that file is even called

2. Seems like we do need to declare civicrm_root as a global in that file. Can you please file an issue and point to this forum post

thanx

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/Core/ClassLoader.php'

This forum was archived on 2017-11-26.