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 »
  • Using Drupal Modules (Moderator: Donald Lobo) »
  • RESOLVED: Drupal View 3 / CiviCRM integration-block update depends on user auth
Pages: [1]

Author Topic: RESOLVED: Drupal View 3 / CiviCRM integration-block update depends on user auth  (Read 423 times)

groston

  • I post occasionally
  • **
  • Posts: 61
  • Karma: 0
  • CiviCRM version: 4.5.5
  • CMS version: Drupal 7.34
  • MySQL version: 5.5.34
  • PHP version: 5.3.27
RESOLVED: Drupal View 3 / CiviCRM integration-block update depends on user auth
June 16, 2014, 08:14:51 pm
All,

In my CiviCRM installation, I support both Individual Contacts and Organization Contacts. For the Drupal site, there is a block based on a view that exposes some information about Organization Contacts. This view is configured with a Global: Random sort criteria in order to expose three different Organization on each page visit.

When I am logged into the site (as an Authenticated User or Administrator), the block works properly. When I am not logged into the site, the block does not update. Just to be clear: When logged in, each time the same page is reloaded, in three different Organization Contacts are displayed. When not logged in, the same three Organization Contacts are displayed with each page load.

The issue seems to be tied to the cache. When I cleared the Drupal caches, the Organization Contacts for the non-logged in user changed (but then remained the same as described above).

Would you please suggest a fix for this problem. Thank you!
« Last Edit: June 25, 2014, 07:32:47 pm by groston »

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: Drupal View 3 / CiviCRM integration - block update depends on user authorization
June 16, 2014, 08:23:08 pm
hey gerry

have you ruled out everything on the drupal side by making a block to do the same as above but with drupal content not civi contacts?
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

groston

  • I post occasionally
  • **
  • Posts: 61
  • Karma: 0
  • CiviCRM version: 4.5.5
  • CMS version: Drupal 7.34
  • MySQL version: 5.5.34
  • PHP version: 5.3.27
Re: Drupal View 3 / CiviCRM integration - block update depends on user authorization
June 16, 2014, 08:45:31 pm
Pete,

Thanks for the reply. You are correct - I had not dug in deeply enough. The problem does seem to be a pure Drupal issue - will keep looking for an answer.

groston

  • I post occasionally
  • **
  • Posts: 61
  • Karma: 0
  • CiviCRM version: 4.5.5
  • CMS version: Drupal 7.34
  • MySQL version: 5.5.34
  • PHP version: 5.3.27
Re: Drupal View 3 / CiviCRM integration - block update depends on user authorization
June 25, 2014, 07:32:02 pm
This problem had nothing to do with CiviCRM. The problem was caused by my having the box Home » Administration » Configuration » Development » Cache pages for anonymous users. Why this had not been spotted earlier, I do not know...

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Drupal Modules (Moderator: Donald Lobo) »
  • RESOLVED: Drupal View 3 / CiviCRM integration-block update depends on user auth

This forum was archived on 2017-11-26.