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 »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • the famous Failed opening required 'CRM/Utils/Menu.php'
Pages: [1]

Author Topic: the famous Failed opening required 'CRM/Utils/Menu.php'  (Read 2154 times)

mikerouse

  • I’m new here
  • *
  • Posts: 3
  • Karma: 0
the famous Failed opening required 'CRM/Utils/Menu.php'
February 14, 2009, 04:46:22 pm
I installed Drupal and set up two sites to run off the same installation (only the first time I have done this btw).

I then went and installed CiviCRM and installed it to its own database with the intention of being to run the two sites off the same CiviCRM installation so the two sites could have their own content, shared contacts and a single Drupal installation. I followed the steps here at CiviCRM and enabled the module, but I did this from the secondary site not the primary (www.) one. I got this error when I looked in the error.log file for the secondary site:

PHP Fatal error: require_once() [function.require]: Failed opening required 'CRM/Utils/System.php' (include_path='.:') in /var/www/vhosts/mydomain.tld/httpdocs/sites/all/modules/civicrm/drupal/civicrm.module on line 239

I went back to the primary site and went in to modules (not getting this error on the primary site) and enabled the module in the primary site and it seems to be working just fine on that primary site. However, when I go back to the secondary site it gives me a blank page for every page and the above line appears in my error.log file for the secondary site only.

This is with CiviCRM 2.2 beta and Drupal 6.9. Running on PHP5.x and MySQL5.x on Apache on CentOS.

Any suggestions welcome, though I might try going back and repeating the installations, but using different versions of the software.

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: the famous Failed opening required 'CRM/Utils/Menu.php'
February 15, 2009, 06:06:40 am

can you check your civicrm.settings.php for the secondary site. it might be empty and hence the include_path is not set

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

mikerouse

  • I’m new here
  • *
  • Posts: 3
  • Karma: 0
Re: the famous Failed opening required 'CRM/Utils/Menu.php'
February 15, 2009, 07:41:14 am
Thanks lobo,

I can't seem to find a civicrm.settings.php under my 'sites' directory. (I wasn't searching properly at the command line d'oh)

I found the file and am now copying it to the 2 sub-sites.

I did go back to the documentation and found this line interesting:

Quote
"The third alternative is for a shared contact database, but multiple, separate content interfaces. This may be used when an organization launches different sites for specific campaigns, or when organizations in a tight coalition are sharing contacts. Later versions of 1.x and all versions of 2.x do not support this configuration."
http://wiki.civicrm.org/confluence/display/CRMUPCOMING/CiviCRM+for+Drupal+-+Configure+Multi-site+Installations
That's what I was trying to achieve; multiple sites for different associations within a single organisation but all sharing the same CiviCRM database for shared contacts.  Is this possibly why I am getting the above problem?

Is there any way I can share CiviCRM amongst multiple Drupal sites?
« Last Edit: February 15, 2009, 07:51:35 am by mikerouse »

mikerouse

  • I’m new here
  • *
  • Posts: 3
  • Karma: 0
Re: the famous Failed opening required 'CRM/Utils/Menu.php'
February 15, 2009, 07:55:01 am
Lobo - you are a genius. Copying the civicrm.settings.php from the 'default' folder to the folders for the sub-sites has let me enable the module on the sub-site without getting the error message. All seems to be working OK. Thanks!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • the famous Failed opening required 'CRM/Utils/Menu.php'

This forum was archived on 2017-11-26.