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) »
  • The path for including CiviCRM code files is not set properly
Pages: [1]

Author Topic: The path for including CiviCRM code files is not set properly  (Read 4803 times)

ciccio

  • Guest
The path for including CiviCRM code files is not set properly
May 21, 2008, 08:50:45 pm
Hello,
I exported a drupal 5 from one server and imported on another.

So far so good, I am able to have the home page but I have the following message:

Oops! - The path for including CiviCRM code files is not set properly. Most likely there is an error in the civicrm_root setting in your CiviCRM settings file (sites/default/civicrm.settings.php).

ยป civicrm_root is currently set to: /home/ispsocie/public_html/sites/all/modules/civicrm.

ispsocie is the old user of the old database.

I am not able to set the right path with the new user and database. Any suggestion ?

Thank you so much!

emilyf

  • Ask me questions
  • ****
  • Posts: 696
  • Karma: 54
  • CiviCRM version: 2.x - 4.x
  • CMS version: Drupal 5, 6, 7
Re: The path for including CiviCRM code files is not set properly
May 22, 2008, 09:10:31 am
Via shell or FTP, did you edit the file civicrm.settings.php in <drupal_root>/sites/default ? It seems like this is what you need to do.

In the file, search for '$civicrm_root', and change it to reflect your new server. Also change the line under it to reflect the new server.

Then search for 'Content Management System (CMS) Datasource' and change the drupal db settings. Then search for 'CiviCRM Database Settings' and change that db to reflect your civicrm db (if these changes need to be made).




ciccio

  • Guest
Re: The path for including CiviCRM code files is not set properly
May 22, 2008, 04:44:05 pm
Thank you very much for your answer. But i did it and it did not work.

the problem is that:
1) which use should i use ? The new database user name or the unix/ftp user that i use to log on ?
2) I do not know the absolute path of my unix user....

I changed the CiviCRM Database Settings with no problem, thanks!

Thank you so much!

ps
unfortunately i have only ftp access no shell

emilyf

  • Ask me questions
  • ****
  • Posts: 696
  • Karma: 54
  • CiviCRM version: 2.x - 4.x
  • CMS version: Drupal 5, 6, 7
Re: The path for including CiviCRM code files is not set properly
May 23, 2008, 08:42:18 am
Code: [Select]
unfortunately i have only ftp access no shellCiviCRM can be tough to manage without shell access, but hopefully we can get this worked out. What webhost are you on?

Code: [Select]
1) which use should i use ? The new database user name or the unix/ftp user that i use to log on ?In civicrm.settings.php, for both the CMS datasource and CiviCRM database Settings you need to use your MYSQL username/password database.

For the CMS (drupal) datasource, you need to follow this protocol (as mentioned in the file):
define( 'CIVICRM_DSN'         , 'mysql://drupal:YOUR_PASSWORD@localhost/drupal?new_link=true' );
So if your mysql drupal database is called "drupaldb", your username is called "user" and your password is "12345", this is what you would put:

define( 'CIVICRM_DSN'         , 'mysql://user:12345@localhost/drupaldb?new_link=true' );

Then for the CiviCRM database Settings you will put the same thing IF your CiviCRM and Drupal databases are the SAME. If CIviCRM is in its own database, you will need to put that database info in the CiviCRM database settings line.

Quote
2) I do not know the absolute path of my unix user....

OK, then in your FTP client, browse to the folder that CiviCRM is in (sites/all/modules). Then look at the path you took to get there. I don't know what FTP client you use, so I can't give you the information exactly. It is probably going to be somewhat similar to the old path (depending on who your webhost is). So probably something like:
/home/$yourUser/public_html/sites/all/modules/civicrm/

So when looking at the path you took to get to the folder in your FTP client, you should see folders that mimic that. Does this make sense to you?

Or, if you can only get as far back as your webroot folder (for example, you only see as far back as the "public_html" or "htdocs" folder), you can try using this path(assuming your drupal install is directly in the public_html folder):
~/public_html/sites/all/modules/civicrm/

If none of these work, email your webhost and ask them what the server path is to your web directory.

Let me know how it goes.

emilyf

  • Ask me questions
  • ****
  • Posts: 696
  • Karma: 54
  • CiviCRM version: 2.x - 4.x
  • CMS version: Drupal 5, 6, 7
Re: The path for including CiviCRM code files is not set properly
May 27, 2008, 06:15:01 am
hey ciccio

i just was informed that you can go to this URL on your new site:
http://yourdrupalroot/index.php?q=civicrm/admin/setting/updateConfigBackend&reset=1

Then you can set your new base path for CiviCRM and this will adjust the settings file, etc.

This still doesn't resolve the fact that you need to manually change the db settings in civicrm.settings.php. But try the above and tell me if it fixes the absolute path for you.

polestar

  • I post frequently
  • ***
  • Posts: 162
  • Karma: 11
    • Target Integration
Re: The path for including CiviCRM code files is not set properly
August 31, 2008, 03:31:56 am
Hi Guys,

Just got my Joomla & CiviCRM migrated from one host to another using the given instructions. Here is what I did:
  • Migrate all files from one host to another.
  • Change configuration.php to reflect new database/host/user settings
  • Change civicrm.settings.php to reflect new database and new path information
  • Go to the URL http://yourjoomlaroot/admin/index.php?q=civicrm/admin/setting/updateConfigBackend&reset=1
That's it done. I don't know what changes were done by the above URL but my installation did work.

Thanks Emily.
CiviCRM - Installation & Support | Virtual Private Servers (VPS) with Joomla/Drupal and CiviCRM | SugarCRM & vTiger CRM Installation and Support
Target Integration | www.targetintegration.com
Subscribe to Knowledgement - Your guide to effective business | http://www.knowledgement.ie

joomler

  • Guest
Re: The path for including CiviCRM code files is not set properly
October 18, 2008, 03:22:29 am
I got the same errors as specified in this topic (and many joomla forums)

First civicrm couldnot find DB.php.  When i upload db.php manually to server from distributive  the second problen arises:


mysql://joomla:YOUR_PASSWORD@localhost/joomla?new_link=true' Error: DB not found

The problem was with the civicrm installer i think, BECAUSE when i check civicrm component installed in my joomla 1.0.15  i saw that there is no some files and folders!!!  For example folder civicrm/packages/   was without all php files  and with 3 empty folders only!!!  :o

I solved this by manually uploading all packages folder to server and thats work!  now all admin interface works



Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • The path for including CiviCRM code files is not set properly

This forum was archived on 2017-11-26.