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 »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • Quick Search problem - dojo js not loading for some users
Pages: [1]

Author Topic: Quick Search problem - dojo js not loading for some users  (Read 1367 times)

Peter Chauncy

  • I’m new here
  • *
  • Posts: 17
  • Karma: 2
Quick Search problem - dojo js not loading for some users
November 11, 2008, 06:29:06 am
After recently upgrading from 2.03 to 2.1 I have a problem with the quick search. 

The quick search works as it should for two groups of users with high permissions: Admin and Editors. For ordinary authenticated users, when they do the search, the field is filled, but they are taken to the Contact search page and an error no user found with name or email like and a number that is the contact id of the user they searched for.

I am only using the drupal based permissions and I have gone through them seeing where they differ for the different user categories. Having gone through all of them so that the authenticated users now have the same permissions as the admin users, I have not been able to identify a specific one that is impacting the situation.

I have also checked file permissions and ownership and set it to 755 and the web user (www-data in my case)

Looking at the page source I notice that the dojo javascript doesn't seem to be loading for the users with less permissions.  Looking at the code in the template civicrm/templates/CRM/Block/Search.tpl I note that the line before the script says

{if $config->includeDojo}

I'm not sure where $config comes from and how I might make sure that it says the right thing.

Any suggestions ?
Thanks
Peter


emilyf

  • Ask me questions
  • ****
  • Posts: 696
  • Karma: 54
  • CiviCRM version: 2.x - 4.x
  • CMS version: Drupal 5, 6, 7
Re: Quick Search problem - dojo js not loading for some users
November 11, 2008, 09:09:05 am
In drupal access, under civicrm area, check to make sure the role has 'edit all contacts' and 'view all contacts' permissions. if that doesn't work, check off ALL civicrm-related privs for that role and check again. if it starts working, remove privs one by one until you figure out where your problem is.

Peter Chauncy

  • I’m new here
  • *
  • Posts: 17
  • Karma: 2
Re: Quick Search problem - dojo js not loading for some users - SOLVED
November 11, 2008, 10:04:47 am
Thanks for the suggestion.

After spending the afternoon trying lots of things and learning a tiny bit about how much goes on just to get a page made up  :) I seem to have solved the problem.

It may have been to do with localization; we are UK based so we prefer en_GB, but nobody complains that much (or notices) if we are running en_US.  So we used to have en_GB installed before the upgrade, but I had forgotten to re-install it.  I installed en_GB, cleared out the templates_c folder and restarted the browser.

In Drupal /admin/build/blocks I actively gave permission to the specified users to see the CiviCRM search block rather than leaving blank to allow all users.

After that it worked. I have a hunch that localization had something to do with it, otherwise the problem might be more common.

Peter


Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • Quick Search problem - dojo js not loading for some users

This forum was archived on 2017-11-26.