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) »
  • Discussion (deprecated) »
  • Alpha and Beta Release Testing »
  • 2.1 Release Testing »
  • civicrm.settings.php is not loaded with civicrm_admin_menu( )
Pages: [1]

Author Topic: civicrm.settings.php is not loaded with civicrm_admin_menu( )  (Read 2765 times)

arlind

  • Guest
civicrm.settings.php is not loaded with civicrm_admin_menu( )
August 08, 2008, 10:25:44 am
Hi,

It seems like civicrm_admin_menu( ) does not load the civicrm.settings.php.

After installing civicrm module I get this error:

Quote
Fatal error: require_once(): Failed opening required 'CRM/Core/Menu.php' (include_path='.:/apache/libexec/php5ext/php/') in /###/sites/all/modules/civicrm/drupal/civicrm.module on line 736

Then I added all the set_include_path code from civicrm.settings.php to the civicrm_admin_menu( ) function, and I got this error:

Quote
You need to define CIVICRM_UF in civicrm.settings.php

Code: [Select]
$civicrm_root = '/###/sites/all/modules/civicrm';
$include_path = '.' . PATH_SEPARATOR .
                $civicrm_root . PATH_SEPARATOR .
                $civicrm_root . DIRECTORY_SEPARATOR . 'packages' . PATH_SEPARATOR .
                get_include_path( );
set_include_path( $include_path );

Then I added "if ( ! civicrm_initialize( ) )" to load civicrm.settings.php, and I got this error:

Quote
Sorry. A non-recoverable error has occurred.

We experienced an unexpected error. Please file an issue with the backtrace

Return to home page.

Code: [Select]
    if ( ! civicrm_initialize( ) ) {
        return;
    }

I run on a shared server:
http://ws23.surf-town.net/phpinfo.php

I have attached my civicrm.settings.php.

:-) Bo
« Last Edit: August 08, 2008, 10:39:09 am by arlind »

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: civicrm.settings.php is not loaded with civicrm_admin_menu( )
August 08, 2008, 01:15:51 pm

do u want to get 2.1 working without admin menu module and then enable admin menu

i've updated the code to add the intialize function for the admin menu hook also

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

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Discussion (deprecated) »
  • Alpha and Beta Release Testing »
  • 2.1 Release Testing »
  • civicrm.settings.php is not loaded with civicrm_admin_menu( )

This forum was archived on 2017-11-26.