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) »
  • Fatal Error when recreating Drupal/CiviCRM site on a MAMP local installation.
Pages: [1]

Author Topic: Fatal Error when recreating Drupal/CiviCRM site on a MAMP local installation.  (Read 1489 times)

kaysea

  • Guest
Fatal Error when recreating Drupal/CiviCRM site on a MAMP local installation.
January 16, 2010, 03:02:12 pm
Hi,

Let me just start off by saying I'm very new to dealing with these kinds of backend issues, so please be patient. I'm preparing myself to tackle an upgrade of a Drupal5/CiviCRM2 site(s) to the latest stable versions of D6/C3. So I've got MAMP installed on my personal laptop and am trying to get a working copy of my website going. I have copied my Drupal and CiviCRM files to my local install, copied over both my Drupal and CiviCRM databases (we keep ours separate) and changed all necessary settings in my settings.php and civicrm.settings.php files.

When going to my copied localhost site, I get the following error:

Fatal error: require_once() [function.require]: Failed opening required 'CRM/Core/I18n.php' (include_path='.:/Sites/serverwwwroot/wcfiawww/sites/all/modules/civicrm/:/Sites/serverwwwroot/wcfiawww/sites/all/modules/civicrm//packages:.:/Applications/MAMP/bin/php5/lib/php') in /Users/kcaulfield/Sites/serverwwwroot/wcfiawww/sites/all/modules/civicrm/api/utils.php on line 36

I've been through the forums here and on drupal.org as well as just plain ol' Googling and am not having much luck figuring out the solution. The answers either don't seem to quite apply to my problem, or I just plain don't understand what I'm reading.

This CiviCRM documentation page has been most helpful so far: http://wiki.civicrm.org/confluence/display/CRMDOC/Moving+an+Existing+Installation+to+a+New+Server+or+Location

I have done everything up to step 5 and then I get stuck. As a result, I haven't tried the rest of the steps in the documentation either. Below is a copy of step 5:

Delete files with cached settings
    * Drupal:
          o <drupal-root>/sites/default/files/civicrm/upload/Config.IDS.ini (contains URL values and will be rebuilt with correct settings if deleted)
          o <drupal-root>/sites/default/files/civicrm/templates_c/* (cached versions of Smarty templates that will be rebuilt)


The path above doesn't match the path to what I have currently in my site which is like so: wwwroot/files/civicrm/upload/ and wwwroot/files/civicrm/templates_c/

Any help would be greatly appreciated. And if you need any further details on what I've done, I'd be happy to oblige.

Thanks
Kay



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: Fatal Error when recreating Drupal/CiviCRM site on a MAMP local installation.
January 16, 2010, 03:15:19 pm

can you fix your civicrm_root in civicrm.settings.php to be:

/Users/kcaulfield/Sites/serverwwwroot/wcfiawww/sites/all/modules/civicrm

from its current value (most likely: /Sites/serverwwwroot/wcfiawww/sites/all/modules/civicrm)

for the second issue, u can delete the files where they currently are just to make sure :)

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

kaysea

  • Guest
Re: Fatal Error when recreating Drupal/CiviCRM site on a MAMP local installation.
January 16, 2010, 03:36:43 pm
Progress!  :) I now get this error:

Error: Could not create directory: /Users/kcaulfield/Sites/serverwwwroot/wcfiawww/sites/all/modules/civicrm/templates_c.

If you have moved your database from a development install to a production install and the direcotory paths are different, please set the column config_backend in the civicrm_domain table to NULL. You will need to reinitialize your settings in the production install.


I'm going the reverse direction as described (creating a dev install), but still...I checked the civicrm_domain table and the config_backend column is set to null.

I haven't deleted those files yet, but I will.

Kay

P.S. I'm assuming you are the same lobo doing the training this coming Thurs and Fri...if so...I'm looking forward to it.

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: Fatal Error when recreating Drupal/CiviCRM site on a MAMP local installation.
January 16, 2010, 03:40:58 pm
seems like you also need to fix:

define( 'CIVICRM_TEMPLATE_COMPILEDIR', '/Users/kcaulfield/Sites/serverwwwroot/wcfiawww/sites/all/modules/files/templates_c' );

you need to create the 'files' directory and make sure it is readable/writable by the web server

% chmod a+rwx /Users/kcaulfield/Sites/serverwwwroot/wcfiawww/sites/all/modules/files

will do the trick

lobo

p.s> yes, same lobo, cu on thursday :)



A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

kaysea

  • Guest
Re: Fatal Error when recreating Drupal/CiviCRM site on a MAMP local installation.
January 17, 2010, 04:36:08 am
Lobo,

It's working!!!

I had the path to CIVICRM_TEMPLATE_COMPILEDIR slightly wrong and I set files and all directories under it to 777...and it worked. A couple of my Drupal menus are acting funny, but so far that's all I see.

Thank you so much!!!! If you're responsiveness and helpfulness are any indication of what the training will be like, then I will definitely be getting a lot out of it.

Cheers,
Kay

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • Fatal Error when recreating Drupal/CiviCRM site on a MAMP local installation.

This forum was archived on 2017-11-26.