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 »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Paths in CiviCRM and Joomla
Pages: [1]

Author Topic: Paths in CiviCRM and Joomla  (Read 2099 times)

denverdataman

  • I post occasionally
  • **
  • Posts: 93
  • Karma: 2
    • Denver DataMan Website
  • CiviCRM version: Several
  • CMS version: Drupal 6/7
Paths in CiviCRM and Joomla
August 19, 2013, 11:27:14 am
I have tried a bunch of things I have found on the web but I cannot get the paths to update when moving a CiviCRM Joomla site to a different server.  The site works fine in my test server but on the new server I get these errors which are not showing the correct path according to what is both settings files.

Warning: require_once(/home/engagedp/public_html/administrator/components/com_civicrm/civicrm.settings.php) [function.require-once]: failed to open stream: No such file or directory in /home/engagedp/public_html/plugins/user/civicrm/civicrm.php on line 103

Fatal error: require_once() [function.require]: Failed opening required '/home/engagedp/public_html/administrator/components/com_civicrm/civicrm.settings.php' (include_path='.:/opt/php53/lib/php') in /home/engagedp/public_html/plugins/user/civicrm/civicrm.php on line 103

I have tried everything I can think of and I am lost.   ???

Thanks for any help I can get! 

-Steve
Steve Kessler
Owner and Lead Consultant of Denver DataMan

JonGold

  • Ask me questions
  • ****
  • Posts: 638
  • Karma: 81
    • Palante Technology
  • CiviCRM version: 4.1 to the latest
  • CMS version: Drupal 6-7, Wordpress 4.0+
  • PHP version: PHP 5.3-5.5
Re: Paths in CiviCRM and Joomla
August 19, 2013, 11:33:11 am
Hi Steve,

It's hard to know what to suggest, since you didn't specify what you've already tried!
The obvious things:
* What are the values you have in civicrm.settings.php for:
$civicrm_root
define( 'CIVICRM_TEMPLATE_COMPILEDIR'
define( 'CIVICRM_UF_BASEURL'

Did you update your paths at: <yoursite>/civicrm/admin/setting/updateConfigBackend?reset=1

My installs are all Drupal, not sure if that URL is correct for you - but it's Administer menu, System Settings, Cleanup Caches and Update Paths.
Sign up to StackExchange and get free expert CiviCRM advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

denverdataman

  • I post occasionally
  • **
  • Posts: 93
  • Karma: 2
    • Denver DataMan Website
  • CiviCRM version: Several
  • CMS version: Drupal 6/7
Re: Paths in CiviCRM and Joomla
August 19, 2013, 10:06:49 pm
I can not get to the path reset link.  Whenever I load anything in the administrator area I get the areas that I shared earlier. 

The values I have set are.

$civicrm_root = '/public_html/administrator/components/com_civicrm/civicrm';
define( 'CIVICRM_TEMPLATE_COMPILEDIR', '/public_html/media/civicrm/templates_c');

This is on Host Gator using PHP 5.3.27

I am not sure what else to do.

Thanks,
Steve
Steve Kessler
Owner and Lead Consultant of Denver DataMan

JonGold

  • Ask me questions
  • ****
  • Posts: 638
  • Karma: 81
    • Palante Technology
  • CiviCRM version: 4.1 to the latest
  • CMS version: Drupal 6-7, Wordpress 4.0+
  • PHP version: PHP 5.3-5.5
Re: Paths in CiviCRM and Joomla
August 20, 2013, 09:07:43 am
Hi Steve,

Those values don't look right.  If your civicrm_root is '/public_html/administrator/components/com_civicrm/civicrm' but you got a warning that:
Warning: require_once(/home/engagedp/public_html/administrator/components/com_civicrm/civicrm.settings.php)

Those paths don't match up.  Which is correct?  I'm guessing your civicrm_root and CIVICRM_TEMPLATE_COMPILEDIR path are incorrect, if you didn't update those after moving to a new server that has a different path to your files.

I'd check to see the actual path, then update settings accordingly.

Also, have you used Civi on shared hosting before?  I wouldn't expect very good performance out of Hostgator - and depending on how much RAM they allow you per Apache process, you may not get it to run at all.
Sign up to StackExchange and get free expert CiviCRM advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

denverdataman

  • I post occasionally
  • **
  • Posts: 93
  • Karma: 2
    • Denver DataMan Website
  • CiviCRM version: Several
  • CMS version: Drupal 6/7
Re: Paths in CiviCRM and Joomla
August 20, 2013, 11:23:46 am
Thank you for your help.  I had tried both paths . When I change the paths to have the full path listed in the errors I get

Fatal error: Class 'CRM_Core_Config_Variables' not found in /home/engagedp/public_html/administrator/components/com_civicrm/civicrm/CRM/Core/Config.php on line 43

In terms of the virtual hosting it is not my favorite way to do things but the client feels it works for them.

-Steve
Steve Kessler
Owner and Lead Consultant of Denver DataMan

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Paths in CiviCRM and Joomla

This forum was archived on 2017-11-26.