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) »
  • Fatal error; can't edit profiles
Pages: [1]

Author Topic: Fatal error; can't edit profiles  (Read 3493 times)

Rebecca

  • Guest
Fatal error; can't edit profiles
April 24, 2007, 02:08:43 pm
I am unable to edit CiviCRM profiles. I'm getting the following errors:


Quote
Warning: main(/home/firstlut/public_html/sites/all/modules/civicrm/../../sites/default/civicrm.settings.php) [function.main]: failed to open stream: No such file or directory in /home/firstlut/public_html/sites/all/modules/civicrm/civicrm.config.php on line 77

Warning: main() [function.include]: Failed opening '/home/firstlut/public_html/sites/all/modules/civicrm/../../sites/default/civicrm.settings.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/firstlut/public_html/sites/all/modules/civicrm/civicrm.config.php on line 77

Now, that file path is wrong, wrong, wrong, but I don't know where it's coming from. The resource URL in Global Settings is fine.

I had recently moved my install from a test directory to a live one, and one of the lines in my civicrm.settings.php file had the old test directory still in it (I'd kept the 1.5 version when I upgraded). So I re-did the file from the 1.6 template and rechecked everything, then went through the Drupal upgrade procedures as if it were a new version, thinking that would clear out any cached info. I didn't trash the template_c directory, though. Should I do that?

I added the 'settings_location.php' file suggested here (http://www.nabble.com/Two-problems-with-the-calendar-%28drupal-translation%29-tf3334905s15986.html#a9300216), but to no avail.



Quote
Warning: main(CRM/Core/Config.php) [function.main]: failed to open stream: No such file or directory in /home/firstlut/public_html/sites/all/modules/civicrm/extern/ajax.php on line 7

Fatal error: main() [function.require]: Failed opening required 'CRM/Core/Config.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/firstlut/public_html/sites/all/modules/civicrm/extern/ajax.php on line 7



When I opened up ajax.php, I saw this:

require_once '../civicrm.config.php';
require_once 'CRM/Core/Config.php';


If those are both paths relative to ajax.php, shouldn't the second one be '../CRM/Core/Config.php'? Because that's where that file is.

Thanks,
Rebecca

ETA: I'm using Drupal 5.1, CiviCRM 1.6, PHP4, MySQL 4.1, and a partridge in a pear tree.
« Last Edit: April 24, 2007, 02:10:53 pm by Rebecca »

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Fatal error; can't edit profiles
April 24, 2007, 02:20:20 pm

1. where did u keep the settings_location.php file and what are the contents?

It should be at: /home/firstlut/public_html/sites/all/modules/civicrm/settings_location.php

and should be:

<?php

define( 'CIVICRM_CONFDIR', '/home/firstlut/public_html/sites' );

?>

If i had to guess, your settings_location.php file is not in the right directory

ajax.php has the right values, the first require sets up the include path and the second require works with a valid include path

lobo

A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Rebecca

  • Guest
Re: Fatal error; can't edit profiles
April 24, 2007, 04:26:33 pm
You were right about the location of the settings_location file. I had it in "sites/default."

So I'm not getting the php errors now, but I still can't get to profiles or groups.

I thought it might have to do with roles/permissions, so I tried logging in as admin, but no go.

Thanks.

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Fatal error; can't edit profiles
April 24, 2007, 05:02:07 pm

1. what url are u trying to access

2. can u check your apache error logs and the drupal watchdog entries (available under administer in drupal)

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Rebecca

  • Guest
Re: Fatal error; can't edit profiles
April 24, 2007, 05:30:47 pm
1. http://example.org/civicrm/admin/uf/group/field?reset=1&action=browse&gid=3

2. It's not generating any errors now, since I moved the settings_location file. It just doesn't do anything when you click on the link.

OK, I'm figuring it out now: It's looking like a browser thing. I've been using Safari, and when I pasted the URL in the address bar, it worked just dandy. Then I tried the whole business in Firefox, and the links work normally.

I've never had that problem before, so Safari might work just fine if I quit and re-launch.

Never mind.  ::) </Emily Litella>

Rebecca

  • Guest
Re: Fatal error; can't edit profiles
April 24, 2007, 06:41:20 pm
Sure was the browser, and restarting didn't help, either. Safari will go to the link if you hold down the Control key and open it in a new tab or window, but it won't do the normal linky behavior. I even emptied the cache.

Most odd.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Fatal error; can't edit profiles

This forum was archived on 2017-11-26.