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) »
  • problems moving site to production server
Pages: [1]

Author Topic: problems moving site to production server  (Read 4051 times)

Upperholme

  • Administrator
  • Ask me questions
  • *****
  • Posts: 568
  • Karma: 8
    • MC3
  • CiviCRM version: 4.x
  • CMS version: Drupal 6.x/7.x, Wordpress, Joomla
problems moving site to production server
September 10, 2008, 02:52:28 am
Hi
I'm moving a site from my development machine onto a production server. I've changed all the database and path settings in the settings file. I've set config_backend to NULL.

I've navigated to example.com/civicrm/admin/setting/updateConfigBackend

There I see the following:

warning: Invalid argument supplied for foreach() in /home/public_html/example/sites/all/modules/civicrm/CRM/Core/Config/Defaults.php on line 203.

Below this I'm asked to fill in the new Base URL, which I'm guessing is http://example.com/

I'm also asked for the new "Base Dir". I've tried the url for the civicrm module (it doesn't like that). Can anyone tell me what I should put in here? I can't find and have not come across the term "Base Dir" before. Perhaps there is some lack of consistency on terminology here? Will it cure the php warning I'm getting?

The documentation at


Graham Mitchell
http://mc3.coop

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: problems moving site to production server
September 10, 2008, 03:59:23 am
Do check http://wiki.civicrm.org/confluence/display/CRMDOC/Moving+an+Existing+Installation+to+a+New+Server+or+Location

HTH

Kurund
Found this reply helpful? Support CiviCRM

Deepak Srivastava

  • Ask me questions
  • ****
  • Posts: 677
  • Karma: 65
Re: problems moving site to production server
September 10, 2008, 04:23:15 am
Quote
Below this I'm asked to fill in the new Base URL, which I'm guessing is http://example.com/
yep, thats correct.

Quote
I'm also asked for the new "Base Dir". I've tried the url for the civicrm module (it doesn't like that). Can anyone tell me what I should put in here? I can't find and have not come across the term "Base Dir" before. Perhaps there is some lack of consistency on terminology here? Will it cure the php warning I'm getting?
Base-Dir expects the absolute path of "files" directory. In drupal 5.x, it resides just inside the drupal dir e.g drupal/files. So you 'll need to enter sth like -  /var/www/example.org/files/
(adjustment may be required here as per your setup)
« Last Edit: September 10, 2008, 04:38:53 am by Deepak Srivastava »
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

Upperholme

  • Administrator
  • Ask me questions
  • *****
  • Posts: 568
  • Karma: 8
    • MC3
  • CiviCRM version: 4.x
  • CMS version: Drupal 6.x/7.x, Wordpress, Joomla
Re: problems moving site to production server
September 10, 2008, 06:37:07 am
Quote from: Kurund Jalmi on September 10, 2008, 03:59:23 am
Do check http://wiki.civicrm.org/confluence/display/CRMDOC/Moving+an+Existing+Installation+to+a+New+Server+or+Location

I've added Deepak's helpful clarification to the wiki page referred to as a comment. something to this effect on the page itself would be really helpful.
Graham Mitchell
http://mc3.coop

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: problems moving site to production server
September 10, 2008, 02:29:13 pm
I've added explanatory text on both the wiki page and the actual screen.

For Drupal installs, this is the absolute path to the location of the 'files' directory. For Joomla installs this is the absolute path to the location of the 'media' directory.

(Deepak - let me know if this text is inaccurate or misleading...)
Protect your investment in CiviCRM by  becoming a Member!

Upperholme

  • Administrator
  • Ask me questions
  • *****
  • Posts: 568
  • Karma: 8
    • MC3
  • CiviCRM version: 4.x
  • CMS version: Drupal 6.x/7.x, Wordpress, Joomla
Re: problems moving site to production server
September 10, 2008, 03:32:06 pm
Dave

Many thanks. That's what I call great service!

However, I'm still having problems. None of the standard CiviCRM graphics a re showing on screen and the CSS does not appear to be working so I'm guessing it is a problem with paths, but I can't see what more I can do on this. I've double and triple checked the data I've entered into the civicrm.settings.php and I've followed the steps on the wiki page, and set the paths in Global Settings > Resource URLs.

Notably the column config_backend in civicrm_domain only appears to contain "N;" (without the quotes) which seems weird as before I moved everything to the online server thi column had a lot of content. Also th site is working veeery slowly.

Any pointers as to where I'm likely to be going wrong?

Regards
Graham
Graham Mitchell
http://mc3.coop

Upperholme

  • Administrator
  • Ask me questions
  • *****
  • Posts: 568
  • Karma: 8
    • MC3
  • CiviCRM version: 4.x
  • CMS version: Drupal 6.x/7.x, Wordpress, Joomla
Re: problems moving site to production server
September 10, 2008, 03:39:19 pm
Update!
I've fixed my own problem. Delete the "N;" in the config_backend column of the database table civicrm_domain, and all immediately began to work correctly and quickly.

Regards
Graham
Graham Mitchell
http://mc3.coop

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: problems moving site to production server
September 10, 2008, 04:15:56 pm
Hi Graham - any ideas about how that 'N' got there? Is it possible that an attempt was made to manually set the column to NULL - but wound up setting it to N ??
Protect your investment in CiviCRM by  becoming a Member!

yasheshb

  • I post occasionally
  • **
  • Posts: 72
  • Karma: 5
Re: problems moving site to production server
December 30, 2008, 06:47:04 am
i've been stumped once by file permissions too.. here's the comment.

http://wiki.civicrm.org/confluence/display/CRMDOC/Moving+an+Existing+Installation+to+a+New+Server+or+Location?focusedCommentId=10682412#comment-10682412

yashesh

civive

  • I post occasionally
  • **
  • Posts: 33
  • Karma: 2
Re: problems moving site to production server
March 01, 2009, 02:04:40 pm
Quote from: Upperholme on September 10, 2008, 03:39:19 pm
Update!
I've fixed my own problem. Delete the "N;" in the config_backend column of the database table civicrm_domain, and all immediately began to work correctly and quickly.
wow, thank you for posting this.
I upgraded civicrm from 2.0 to 2.1 to 2.2 and had the same problem, the site was very slow and there were a number of things that did not work, like the wysiwyg in civimail, the lay out was all wrong ...
After deleting the "N;" the clouds disappeared. How did you come up with this solution?

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • problems moving site to production server

This forum was archived on 2017-11-26.