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 »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • Drupal 6.22 + CiviCRM 3.4.4 - Access Denied
Pages: [1]

Author Topic: Drupal 6.22 + CiviCRM 3.4.4 - Access Denied  (Read 3716 times)

Russell Mann

  • I’m new here
  • *
  • Posts: 5
  • Karma: 0
  • CiviCRM version: 3.4.4
  • CMS version: Drupal 6.22
  • MySQL version: 5.1.57
  • PHP version: 5.3.3
Drupal 6.22 + CiviCRM 3.4.4 - Access Denied
June 30, 2011, 10:02:54 pm
Hello,

I've been scouring forums and threads all day trying to get a very clean install of Drupal 6.22 + CiviCRM 3.4.4 to play nice.

My environment is a CentOS dedicated server with Apache 2.2.3, PHP 5.3.6, MySQL 5.1.57, Plesk 10.  Also running ASL 2.2 on this server.  I'm installing on a subdomain.  Drupal has no problem installing.  CiviCRM has no problem installing at this point.  I had to tweak my apache environment to get an install though:

php_admin_value include_path ".:/usr/share/pear:/<siteroot>/sites/all/modules/civicrm:/<siteroot>/sites/all/modules/civicrm/packages"

What is happening is when accessing CiviCRM at domain.com/civicrm?reset=1 or without cleanurls at domain.com/?civicrm&reset=1 - I get an Access Denied message.  Of course I'm logged in.  I am assigned to the administrator role, and admin role has permissions for everything.  Here's something funny.  On the left sidebar, I get a "Create New" button and form for creating new Contacts.  Dropdown reveals "Individual|Household|Organization..." etc.  Also see "Recent items" heading and my email address listed which links to view/edit /civicrm/contact/view?reset=1&cid=1

Right now it's not kicking any PHP errors, it's not kicking any error_log errors.  When I run trace I see it's kicking 403 Access denied after doing a bunch of SQL queries that never include any tables from the CiviCRM install, *only* from the Drupal install.  This may be related to how the Drupal "trace" module works, or maybe not.

I've tried putting CiviCRM data and Drupal data in separate databases, and in the same DB.  I've tried cleaning out templates_c (about 1 million times), I've flushed caches.   ASL isn't throwing any errors.  I've read a lifetime of threads on the Access Denied error, and something must just be escaping me.  What am I missing?

youngjin

  • I’m new here
  • *
  • Posts: 3
  • Karma: 1
  • CiviCRM version: 3.4+, 4.+
  • CMS version: Drupal 6, 7
Re: Drupal 6.22 + CiviCRM 3.4.4 - Access Denied
July 01, 2011, 04:17:07 pm
See this topic for the resolution:  http://forum.civicrm.org/index.php/topic,20262.0.html

CiviCRM 3.4.4. with Drupal 6.22 won't install correctly. Try using Drupal 6.20 as the base system, install CiviCRM 3.4.4. as per normal directions, then upgrade Drupal core using "drush upc" to get to Drupal 6.22.

Hope this helps,

Young-Jin
- YJK

Russell Mann

  • I’m new here
  • *
  • Posts: 5
  • Karma: 0
  • CiviCRM version: 3.4.4
  • CMS version: Drupal 6.22
  • MySQL version: 5.1.57
  • PHP version: 5.3.3
Re: Drupal 6.22 + CiviCRM 3.4.4 - Access Denied
July 02, 2011, 01:58:33 pm
Burned it down and brought it back up in 6.20 / 3.4.4 still having the issue.  Haven't run the drush up yet, figured I'd check the perms and still getting Access Denied on the /civicrm?reset=1 URL.

This time I'm not seeing anything in the left sidebar!

Russell Mann

  • I’m new here
  • *
  • Posts: 5
  • Karma: 0
  • CiviCRM version: 3.4.4
  • CMS version: Drupal 6.22
  • MySQL version: 5.1.57
  • PHP version: 5.3.3
Re: Drupal 6.22 + CiviCRM 3.4.4 - Access Denied
July 05, 2011, 07:57:20 pm
System Requirements as stated here are clearly not sufficiently documented.

http://wiki.civicrm.org/confluence/display/CRMDOC40/Drupal+Installation+Guide+for+CiviCRM+3.4#DrupalInstallationGuideforCiviCRM3.4-1.ServerRequirements

I can build an install on my WAMP stack and make it work on this server, but when I go to update civicrm/admin/setting/path or civicrm/admin/setting/updateConfigBackend or try to rebuild the menu with civicrm/admin/menu/rebuild I'm back to the "Access Denied" error.

Anyone ever deal with this on install/moving?

Russell Mann

  • I’m new here
  • *
  • Posts: 5
  • Karma: 0
  • CiviCRM version: 3.4.4
  • CMS version: Drupal 6.22
  • MySQL version: 5.1.57
  • PHP version: 5.3.3
Re: Drupal 6.22 + CiviCRM 3.4.4 - Access Denied
August 01, 2011, 05:04:21 pm
Any ideas?  I'm also experiencing the same thing with Drupal 7 + CiviCRM 4.04.

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Drupal 6.22 + CiviCRM 3.4.4 - Access Denied
August 02, 2011, 05:02:14 am
You are installing on a subdomain? Can you confirm that the settings in civicrm.settings.php are all correct?
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

clarkac

  • Administrator
  • Ask me questions
  • *****
  • Posts: 399
  • Karma: 11
  • CiviCRM version: 4.4.11 & 4.5.5
  • CMS version: Drupal 7
  • MySQL version: 5.1.61-cll
  • PHP version: 5.3.27
Re: Drupal 6.22 + CiviCRM 3.4.4 - Access Denied
April 19, 2012, 01:34:32 am
I have this problem on a new Drupal 7 and Civi 4.1.1 install.  I'm running on a subdomain and I've checked the settings file and it looks OK.  Oddly enough the problem comes & goes - last evening it was broken, then working OK and this morning broken again.  A user can browse the civi screen but cannot edit anything.  I'm at a loss as to what to do next...
Andy Clark

clarkac

  • Administrator
  • Ask me questions
  • *****
  • Posts: 399
  • Karma: 11
  • CiviCRM version: 4.4.11 & 4.5.5
  • CMS version: Drupal 7
  • MySQL version: 5.1.61-cll
  • PHP version: 5.3.27
Re: Drupal 6.22 + CiviCRM 3.4.4 - Access Denied
April 19, 2012, 01:37:47 am
More on this... I have set up a role in Drupal of 'Civicrm user' and given the role all the civi permissions, then given the role to  a couple of users (one of which is the Drupal admin).  But still I get access denied....
Andy Clark

clarkac

  • Administrator
  • Ask me questions
  • *****
  • Posts: 399
  • Karma: 11
  • CiviCRM version: 4.4.11 & 4.5.5
  • CMS version: Drupal 7
  • MySQL version: 5.1.61-cll
  • PHP version: 5.3.27
Re: Drupal 6.22 + CiviCRM 3.4.4 - Access Denied
April 19, 2012, 02:09:18 am
Even more on this... from looking at other similar problems, one suggestion was that a change of domain name could be the problem.  What works with my website is when the user is looking at pages with www.test.mysite.org.uk...  What doesn't work (access denied) is when it switches to pages that are 'test.mysite.org.uk'  (without the www)

But how can I fix this?
Andy Clark

clarkac

  • Administrator
  • Ask me questions
  • *****
  • Posts: 399
  • Karma: 11
  • CiviCRM version: 4.4.11 & 4.5.5
  • CMS version: Drupal 7
  • MySQL version: 5.1.61-cll
  • PHP version: 5.3.27
Re: Drupal 6.22 + CiviCRM 3.4.4 - Access Denied
April 19, 2012, 02:18:56 am
OK, have figured this out.  The Civi settings file was in fact incorrect - something to do with installing on a sub domain I guess.

It had:
define( 'CIVICRM_UF_BASEURL'      , 'http://test.mysite.org.uk/' );
I changed it to:
define( 'CIVICRM_UF_BASEURL'      , 'http://www.test.mysite.org.uk/' );

And the problem is fixed.
Andy Clark

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • Drupal 6.22 + CiviCRM 3.4.4 - Access Denied

This forum was archived on 2017-11-26.