I've installed civicrm 1.2 on Drupal 4.6. When I try to administer civicrm, I am given the error Access Denied, and I have to login again. I've tried it logged in as user 1 and another user wiht civicrm admin permissions. When I try to do a function, and get the Access Denied, if I login again then the function will be applied or I'll get access to the menu, etc. Any idea what this could be?

Also, when I try to synch users I get the error:

user warning: Smarty error: unable to read resource: "CRM/Admin/Form/Drupaluser.tpl" in /home/.../modules/civicrm/packages/Smarty/Smarty.class.php on line 1088.

The "..." is the compete path to the modules directory.

Any ideas? I think I installed everything correctly.

Comments

dgeilhufe@yahoo.com’s picture

This generally means an error in the path settings in the configuration file. The CRM-dev list can help you at http://www.openngo.org/mailinglists.html

Alternatively, you might want to consider the CivicSpace distribution which includes an automated installer. (CivicSpace includes a number of drupal modules, including CiviCRM and does the basic configuration for you)
http://www.civicspacelabs.org/home/download

David Geilhufe
Social Source Foundation
Try CiviCRM http://www.openngo.org/

kdmarks’s picture

I'm having the exact same problem with CiviCRM 1.3 with Drupal 4.6.5. Did you find which path was wrong in the configuration file? I can't seem to locate it. Maybe been staring at it too long.

kdmarks’s picture

I couldn't figure out what the correct paths were on my own, so I installed CivicSpace and ran the automated installer to see what paths it gave me. This is the configuration I got--it should work for anyone with a ROOT DIRECTORY installation of Drupal. In civicrm.settings.php--

Under "File system paths for this install" change:

global $civicrm_root;
$civicrm_root = '/var/www/htdocs/civicspace/modules/civicrm';
define( 'CIVICRM_TEMPLATE_COMPILEDIR', '/var/www/htdocs/civicspace/files/civicrm/templates_c');
define( 'CIVICRM_UPLOADDIR', '/var/www/htdocs/civicspace/files/civicrm/upload/');

to:

global $civicrm_root;
$civicrm_root = './modules/civicrm';
define( 'CIVICRM_TEMPLATE_COMPILEDIR', './files/civicrm/templates_c');
define( 'CIVICRM_UPLOADDIR', './files/civicrm/upload/');

Under "Site URLs" change:

define( 'CIVICRM_UF_BASEURL', 'http://www.example.com/civicspace/');
define( 'CIVICRM_HTTPBASE', '/civicspace/');
define( 'CIVICRM_RESOURCEBASE', '/civicspace/modules/civicrm/');
define( 'CIVICRM_MAINMENU', '/civicspace/civicrm');

to:

define( 'CIVICRM_UF_BASEURL', '/');
define( 'CIVICRM_HTTPBASE', '/');
define( 'CIVICRM_RESOURCEBASE', '/modules/civicrm/');
define( 'CIVICRM_MAINMENU', '/civicrm/');

CiviCRM is working fine now for me.

Also made clearer to me through the CivicSpace install were some CiviCRM and Drupal permission settings. After (re)uploading civicrm.settings.php and making sure the new paths work, chmod the directory 'files' and all its directories to 755 (drwxr-xr-x). Also chmod the 'sites' directory and all its directories and files to 755 (drwxr-xr-x) if you can (on Dreamhost I had to chmod them to 555 (dr-xr-xr-x)).

akeimou’s picture

same solution for Access Denied problem on mac clients Safari, Firefox, and Netscape (had no problem on IE)

jochenh’s picture

i am running civicrm 1.3 on top of drupal 4.66 and it installed as follows:

http://www.example.com --> contains 1 drupal site which is not related
http://www.example.com/database --> contains drupal 4.66 installation with civicrm

i keep getting the 'access denied' error when i try to do anything and it forces me to re-login continually...

please advise
thanks
- jochen

-------
http://quilted.org
http://jochenhartmann.com