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) »
  • [Solved]Moving from localhost to production server errors in paths
Pages: [1]

Author Topic: [Solved]Moving from localhost to production server errors in paths  (Read 3829 times)

ConradM

  • I post occasionally
  • **
  • Posts: 34
  • Karma: 1
[Solved]Moving from localhost to production server errors in paths
June 05, 2009, 10:45:08 am
hi ,

I've been searching all day long how to make the copy of my joomla based civicrm installation work on our production server, using all tricks and hints that I can find in this forum.
I have the -classic- IDS syndrom , so I commented out the 74 line of the invoke file, then I can access to civicrm on front and backend but the layout of the pages is incorrect (because many js and css files are not found).
Looking at html sources and comparing developper version and production ones I've found out that some paths are wrong since I find things like this :
Code: [Select]
<link rel="stylesheet" href="/subdomain/css/joomla_frontend.css" type="text/css" />when this should be :
Code: [Select]
<link rel="stylesheet" href="/subdomain/administrator/components/com_civicrm/civicrm/css/joomla_frontend.css" type="text/css" />
But I can't find which setting files I have to modify, since i've already edited civicrm.settings.php in administrator/component folder and in the component folder, Config.IDS.ini wherever i find them, civicrm.config.php , but also tried to change domain table to null, followed the method given in the wiki, but nothing helps...


« Last Edit: June 06, 2009, 09:20:12 am by ConradM »

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Moving from localhost to production server errors in paths
June 05, 2009, 10:56:50 am
Is the Resource URL setting correct in the production site (Administer CiviCRM >> Global Settings >> Resource URLs)? Example from our public demo is:

http://joomla.demo.civicrm.org/administrator/components/com_civicrm/civicrm/
Protect your investment in CiviCRM by  becoming a Member!

ConradM

  • I post occasionally
  • **
  • Posts: 34
  • Karma: 1
Re: Moving from localhost to production server errors in paths
June 05, 2009, 11:14:01 am
here what I find in ressource url :
Code: [Select]
http://subdomain.domain.com/subdomain/administrator/components/com_civicrm/civicrm/and that seems correct.

Well beside this, I have this message at top of this page :
Code: [Select]
Warning: Invalid argument supplied for foreach() in /home/users/subdomain/htdocs/subdomain/administrator/components/com_civicrm/civicrm/CRM/Core/Config/Defaults.php on line 224


lcdweb

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1620
  • Karma: 116
    • www.lcdservices.biz
  • CiviCRM version: many versions...
  • CMS version: Joomla/Drupal
  • MySQL version: 5.1+
  • PHP version: 5.2+
Re: Moving from localhost to production server errors in paths
June 05, 2009, 01:21:07 pm
Delete: media/civicrm/upload/Config.IDS.ini

Also check: administrator/components/com_civicrm/civicrm/civicrm.config.php
It should have a single line referencing the location of your civi files.
support CiviCRM through 'make it happen' initiatives!
http://civicrm.org/mih

ConradM

  • I post occasionally
  • **
  • Posts: 34
  • Karma: 1
Re: Moving from localhost to production server errors in paths
June 05, 2009, 01:59:43 pm
I think I've already checked civicrm.config.php, and edited Config.IDS.ini.
I'll try deleting Config.IDS.ini tomorow.
Thank you for your answer.

ConradM

  • I post occasionally
  • **
  • Posts: 34
  • Karma: 1
Re: Moving from localhost to production server errors in paths
June 06, 2009, 04:58:44 am
So I deleted Config.IDS.ini, and checked civicrm.config.php (which was correct already), and nothing changed.
Do someone have another idea ?  ???

ConradM

  • I post occasionally
  • **
  • Posts: 34
  • Karma: 1
Re: Moving from localhost to production server errors in paths
June 06, 2009, 05:06:26 am
In fact one thing changed : after deleting Config.IDS.ini I uncommented line 74 in invoke.php and could still access front and backend.
« Last Edit: June 06, 2009, 05:08:33 am by ConradM »

ConradM

  • I post occasionally
  • **
  • Posts: 34
  • Karma: 1
Re: Moving from localhost to production server errors in paths
June 06, 2009, 09:17:54 am
Yes !!!! I can finally enjoy my week end ;D
My girlfriend who is developper found the trick !

Looking at source codes she found out that the lacking variable was userFrameworkResourceURL.
I remembered at this point that some variables were in a table of the db (civicrm_domain).
So we took a look at the table civicrm_domain which displayed instead of NULL (which I had entered previously as hinted in the forums) "N;" in config_backend.
So instead of setting NULL in config_backend she just deleted this value and regenerated the configuration by this url :
Code: [Select]
http://<joomla_site>/administrator/index2.php?option=com_civicrm&task=civicrm/admin/setting/updateConfigBackend&reset=1and poof ! it worked ! Magic !

Thank you for your help !
Hope this will help others.
« Last Edit: June 06, 2009, 09:20:45 am by ConradM »

herongrace

  • I’m new here
  • *
  • Posts: 27
  • Karma: 1
Re: [Solved]Moving from localhost to production server errors in paths
July 21, 2010, 02:17:03 pm
Awesome! Give your genius girlfriend a hug. This post solved my problem.
What a pain in the ass this path issue is. CiviCRM (for Joomla and Drupal) ought to be rewritten to make this migration process from server to server easier. Not that I'm not appreciative of the community for building it GPL.

Thanks,
herongrace

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: [Solved]Moving from localhost to production server errors in paths
July 22, 2010, 09:51:58 am
One thing you could do to help others is to review the information here about migrating sites and add / clarify any info that would have helped you:

http://wiki.civicrm.org/confluence/display/CRMUPCOMING/Moving+an+Existing+Installation+to+a+New+Server+or+Location
Protect your investment in CiviCRM by  becoming a Member!

herongrace

  • I’m new here
  • *
  • Posts: 27
  • Karma: 1
Re: [Solved]Moving from localhost to production server errors in paths
July 22, 2010, 11:07:22 am
Quote from: Dave Greenberg on July 22, 2010, 09:51:58 am
One thing you could do to help others is to review the information here about migrating sites and add / clarify any info that would have helped you:

http://wiki.civicrm.org/confluence/display/CRMUPCOMING/Moving+an+Existing+Installation+to+a+New+Server+or+Location

Hi Dave,
Yeah, I logged in but couldn't easily find how to edit a wiki doc. Can't you please give me a tip on how to get started?
Thanks,
herongrace

--------

Forget that, I must have needed some time for the registration to take effect -- I see the big ole "Edit" button now. LoL!
« Last Edit: July 22, 2010, 11:09:04 am by herongrace »

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Joomla! Installations (Moderator: Deepak Srivastava) »
  • [Solved]Moving from localhost to production server errors in paths

This forum was archived on 2017-11-26.