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) »
  • Moved host now front end doesn't work
Pages: [1]

Author Topic: Moved host now front end doesn't work  (Read 1133 times)

no1tmorrow

  • Guest
Moved host now front end doesn't work
May 07, 2009, 04:49:05 am
I changed host and have been struggling with getting things to work. I finally got the backend to function now the front end is crashing. I am pretty confident that it is because I moved from a Unix host to a Windows Host and thus the DIRECTORY_SEPARATOR is causing a majority of the problem. If I go in and replace DIRECTORY_SEPARATOR with '/' in civicrm.settings.php I get farther but then I fail on:
 
Warning: require_once(CRM/Core/DAO.php) [function.require-once]: failed to open stream: No error in D:\www\AutismAllianceKC.org\Public\administrator\components\com_civicrm\civicrm\CRM\Core\Config.php on line 42

Fatal error: require_once() [function.require]: Failed opening required 'CRM/Core/DAO.php' (include_path='.;/www/AutismAllianceKC.org/Public/administrator/components/com_civicrm/civicrm;D:\www\AutismAllianceKC.org\Public\administrator\components\com_civicrm\civicrm\packages;D:\www\AutismAllianceKC.org\Public\administrator\components\com_civicrm\civicrm\CRM\Core;/www/AutismAllianceKC.org/Public/administrator/components/com_civicrm/civicrm/packages;.;C:\php5\pear') in D:\www\AutismAllianceKC.org\Public\administrator\components\com_civicrm\civicrm\CRM\Core\Config.php on line 42


When I tried to manually fix this for the Administrator section I found a way to a repair (I know the wrong word for what I did) with a url command as well as change the Administrator Base url in CIVICRM admin.

Please help........

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Moved host now front end doesn't work
May 07, 2009, 07:30:56 am
Actually I think it might be the missing Drive letter in the first include rather than the backslash vs forward slash. I believe that civiCRM can deal with you using forward slashes in windows paths but if you use backslashes you need to use double slashes.
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

no1tmorrow

  • Guest
Re: Moved host now front end doesn't work
May 07, 2009, 07:32:08 am
A Double Slash??? Where does that need to go?

Thanks
Thom

no1tmorrow

  • Guest
Re: Moved host now front end doesn't work
May 07, 2009, 07:45:30 am
Here is a copy of my path in civicrm.session.php.

$include_path = '.'        . PATH_SEPARATOR .
                $civicrm_root . PATH_SEPARATOR . 'D:\www\AutismAllianceKC.org\Public\administrator\components\com_civicrm\civicrm\packages' . PATH_SEPARATOR .
             'D:\www\AutismAllianceKC.org\Public\administrator\components\com_civicrm\civicrm\CRM\Core' . PATH_SEPARATOR .
                $civicrm_root . '/' . 'packages' . PATH_SEPARATOR .
                get_include_path( );
            

What do you think is wrong?

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Moved host now front end doesn't work
May 10, 2009, 06:35:03 pm
These are the settings I change to copy my nix install to my local install

 civicrm.settings.php file on XP


$civicrm_root = 'c:/xampp/htdocs/classes2.2/sites/all/modules/civicrm/';
define( 'CIVICRM_TEMPLATE_COMPILEDIR', 'C:/xampp/htdocs/classes2.2/files/civicrm/templates_c/' );
define( 'CIVICRM_MYSQL_PATH', 'C:/xampp/mysql/bin' );

From memory
$civicrm_root = 'c:\\xampp\\htdocs\\classes2.2\\sites\\all\\modules\\civicrm/';
also works.

I have never needed to touch the include path or path separator

I'm not sure about Joomla settings but you may also need to change settings in 

CiviCRM › Administer CiviCRM › Global Settings Settings - Upload Directories Administer CiviCRM › Global Settings

CiviCRM › Administer CiviCRM › Settings - Update Directory Path and URL

CiviCRM › Administer CiviCRM › Global Settings >Settings - Resource URLs

Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

no1tmorrow

  • Guest
Re: Moved host now front end doesn't work
May 15, 2009, 05:45:10 pm
I know this sounds bad but I had the host move it to a Linux box because I needed it up, like now. Thanks for all of your help. If you wish to continue to help that would be great. I have just started a new thread....

Thanks
Thom

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Moved host now front end doesn't work

This forum was archived on 2017-11-26.