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 »
  • Joomla! Installations (Moderator: Deepak Srivastava) »
  • Moving CiviCRM error
Pages: [1]

Author Topic: Moving CiviCRM error  (Read 2332 times)

jkmuller

  • Guest
Moving CiviCRM error
June 09, 2009, 10:25:31 am
I'm trying to move CiviCRM and am getting an error message any time I try to open a form or access the CiviCRM administration page. I've tried to follow the instructions at http://wiki.civicrm.org/confluence/display/CRMDOC/Moving+an+Existing+Installation+to+a+New+Server+or+Location, but cannot figure out step 3, to check the settings on CIVICRM_UF_DSN, CIVICRM_DSN, civicrm_root, CIVICRM_TEMPLATE_COMPILEDIR, CIVICRM_UF_BASEURL.

Where are these files?

The error message I get is
Code: [Select]
Warning: mkdir() [function.mkdir]: Permission denied in /home/miramo08/public_html/administrator/components/com_civicrm/civicrm/CRM/Utils/File.php on line 114
Error: Could not create directory: /home/miramo08/public_html/joomla.
If you have moved your database from a development install to a production install and the directory 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.

emilyf

  • Ask me questions
  • ****
  • Posts: 696
  • Karma: 54
  • CiviCRM version: 2.x - 4.x
  • CMS version: Drupal 5, 6, 7
Re: Moving CiviCRM error
June 09, 2009, 10:34:13 am
those variables are all set in civicrm.settings.php which i *think* is here for joomla:
administrator/components/com_civicrm/civicrm.settings.php

you should adjust these vars to the new location and see if it fixes the problem.

beyond this, did you see the last line of that error:
If you have moved your database from a development install to a production install and the directory 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.

thus, did you try manually setting the config_backend column in civicrm_domain table to null and then reinitializing your settings?

jkmuller

  • Guest
Re: Moving CiviCRM error
June 09, 2009, 11:03:22 am
Thanks for your help emily, I've double checked all those settings files and none of them specify the location that CiviCRM is trying to create. It seems like it's trying to recreate the old directory, so I must have missed a spot somewhere. That's why I was wondering about the files CIVICRM_UF_DSN, CIVICRM_DSN, civicrm_root, CIVICRM_TEMPLATE_COMPILEDIR, CIVICRM_UF_BASEURL, because I had not been able to check them since I cannot find them. Any idea about those?

I also made sure that database entry is null, and it didn't seem to affect the error message. I reinitialized the settings, if doing so means trying to run administrator/index2.php?option=com_civicrm&task=civicrm/admin/setting/updateConfigBackend&reset=1 while logged in. That also produces the same error message, however.

What other locations could the old CiviCRM installation directory be stored? Would it be in the database anywhere?

Thanks!

emilyf

  • Ask me questions
  • ****
  • Posts: 696
  • Karma: 54
  • CiviCRM version: 2.x - 4.x
  • CMS version: Drupal 5, 6, 7
Re: Moving CiviCRM error
June 09, 2009, 11:14:32 am
those variables should be defined in civicrm.settings.php.....

i don't use joomla, but according to dave greenberg
Quote
The Joomla install writes civicrm.settings.php with correct (in most cases) settings values to:
<joomla_root>/administrator/components/com_civicrm directory.

It also writes a second copy for the "front end" to:
<joomla_root>/components/com_civicrm

the variables you mention (CIVICRM_UF_DSN, CIVICRM_DSN, civicrm_root, CIVICRM_TEMPLATE_COMPILEDIR, CIVICRM_UF_BASEURL) should be defined in that file (civicrm.settings.php).

ken

  • I live on this forum
  • *****
  • Posts: 916
  • Karma: 53
    • City Bible Forum
  • CiviCRM version: 4.6.3
  • CMS version: Drupal 7.36
  • MySQL version: 5.5.41
  • PHP version: 5.3.10
Re: Moving CiviCRM error
July 12, 2009, 09:59:32 pm
Can I suggest you look at the troubleshooting tip at the bottom of the documentation page you refer to ( http://wiki.civicrm.org/confluence/display/CRMDOC/Moving+an+Existing+Installation+to+a+New+Server+or+Location ). On July 3rd I added a work-around to the problem you describe here.

Ken

andreasr

  • Guest
Re: Moving CiviCRM error
July 30, 2009, 12:01:48 pm
Dear Ken,
I have the same problem and I have looked at the solution you provide. I have sadly no clue though, how to do it. Could you possibly provide some more detailed instructions? Where do I run these commands, etc?

Thank you very much.

Best,
Andreas

ken

  • I live on this forum
  • *****
  • Posts: 916
  • Karma: 53
    • City Bible Forum
  • CiviCRM version: 4.6.3
  • CMS version: Drupal 7.36
  • MySQL version: 5.5.41
  • PHP version: 5.3.10
Re: Moving CiviCRM error
July 30, 2009, 09:52:22 pm
@andreasr,

Can you tell me a bit about your environment?
  • Windows or Linux?
  • Do you have any experience with the shell commands?
  • Can you backout any changes if it goes wrong? If not, hire an expert.
  • Can you run SQL queries? It might be easier if you're not familiar with the shell to set the config_backend field to NULL
  • Directory name where CiviCRM was installed on old server
  • Directory name where CiviCRM will be installed on new server
  • Don't post any information that gives away system secrets or user credentials

Ken

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Joomla! Installations (Moderator: Deepak Srivastava) »
  • Moving CiviCRM error

This forum was archived on 2017-11-26.