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 (Moderator: Dave Greenberg) »
  • Autocomplete tags is not loading
Pages: [1] 2

Author Topic: Autocomplete tags is not loading  (Read 2569 times)

calbasi

  • I post occasionally
  • **
  • Posts: 36
  • Karma: 0
    • calbasi.net
  • CiviCRM version: 4.5
  • CMS version: Drupal 7
  • MySQL version: 5.1
  • PHP version: 5.3
Autocomplete tags is not loading
November 26, 2014, 03:26:42 am
With 4.5.3 update my editor users are not able to use autocomplete tag feature (in a freetagging field).

User with drupal "admin CiviCRM2 permission CAN do it, but obviously I don't want editors have "CiviCRM admin" permission ;-)

Any ideas? Is it a bug?

Joan

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: Autocomplete tags is not loading
November 26, 2014, 07:21:15 am
4.5.3 specifically? So it worked in 4.5.2?

Can you describe the bug more completely? What error message are they seeing in their browser console?
Try asking your question on the new CiviCRM help site.

francescbassas

  • I’m new here
  • *
  • Posts: 26
  • Karma: 2
  • CiviCRM version: 4.4.6
  • CMS version: Drupal 7.28
  • MySQL version: 5.3
  • PHP version: 5.1
Re: Autocomplete tags is not loading
January 09, 2015, 03:21:19 pm
I think the same is happening to us.

We have recently upgraded from version 4.4.6 to 4.5.5 and users who do not have permissions to administer CiviCRM no longer able to use the autocomplete select fields.

The autocomplete select field calls:

civicrm/ajax/rest?entity=option_value&action=getlist&json=%7B"params"%3A%7B"option_group_id"%3A"139"%7D%2C"input"%3A"bc"%2C"page_num"%3A1%7D&_=1420839440357

And if the user not have permissions to administer CiviCRM the response is:

{"error_code":"unauthorized","entity":"option_value","action":"getlist","is_error":1,"error_message":"API permission check failed for option_value\/getlist call; insufficient permission: require administer CiviCRM"}

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: Autocomplete tags is not loading
January 09, 2015, 04:52:35 pm
Agreed. I've filed https://issues.civicrm.org/jira/browse/CRM-15805 to fix this.
Try asking your question on the new CiviCRM help site.

calbasi

  • I post occasionally
  • **
  • Posts: 36
  • Karma: 0
    • calbasi.net
  • CiviCRM version: 4.5
  • CMS version: Drupal 7
  • MySQL version: 5.1
  • PHP version: 5.3
Re: Autocomplete tags is not loading
March 26, 2015, 04:29:27 am
Hi Coleman,

The issue/bug is still here. I'm using CiviCRM 4.5.8 (latest) and an user without admin CiviCRM permission can not add a tag in a tag set (free tagging).

calbasi

  • I post occasionally
  • **
  • Posts: 36
  • Karma: 0
    • calbasi.net
  • CiviCRM version: 4.5
  • CMS version: Drupal 7
  • MySQL version: 5.1
  • PHP version: 5.3
Re: Autocomplete tags is not loading
March 26, 2015, 04:47:06 am
I get this depurations output:

Quote
$IDS Detector Details = Array (
  • => Array ( [name] => json [value] => {"name":"ProvaJoan3","parent_id":"42"} [page] => /ca/civicrm/ajax/rest [userid] => 67 [session] => Xomr0rNL21zQD4kzz9ejJXkeKSnmF4RJqqTNNpaJv9M [ip] => myipserverhere;-) [reaction] => 0 [impact] => 41 )
Quote
$IDS Detector Details = Array (
  • => Array ( [name] => json [value] => {"params":{"parent_id":"42"},"input":"ProvaJoan3","page_num":1} [page] => /ca/civicrm/ajax/rest?entity=tag&action=getlist&json=%7B%22params%22%3A%7B%22parent_id%22%3A%2242%22%7D%2C%22input%22%3A%22ProvaJoan3%22%2C%22page_num%22%3A1%7D&_=1427370198998 [userid] => 67 [session] => Xomr0rNL21zQD4kzz9ejJXkeKSnmF4RJqqTNNpaJv9M [ip] => myipserverhere;-)  [reaction] => 0 [impact] => 32 ) )
and:

Quote
http://my.url/ca/civicrm/ajax/rest?entity=tag&action=getlist&json=%7B%22params%22%3A%7B%22parent_id%22%3A%2242%22%7D%2C%22input%22%3A%22ProvaJoan3%22%2C%22page_num%22%3A1%7D&_=1427370198998
Quote
Warning: fopen(/var/www/mydomain.tld/private/civicrm_fitxers/ConfigAndLog/CiviCRM.e27a2ff5addc3fbd65457ae5032eb2f4.log): failed to open stream: Permission denied a Log_file->open() (línia 216 de /var/www/clients/client1/web1/web/sites/all/modules/civicrm/packages/Log/file.php).


Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: Autocomplete tags is not loading
March 26, 2015, 05:30:06 am
I suggest you give your Civi users "Skip IDS Check" permission.
I also suggest you fix the permission problem on your server so the log files are writable.
Try asking your question on the new CiviCRM help site.

calbasi

  • I post occasionally
  • **
  • Posts: 36
  • Karma: 0
    • calbasi.net
  • CiviCRM version: 4.5
  • CMS version: Drupal 7
  • MySQL version: 5.1
  • PHP version: 5.3
Re: Autocomplete tags is not loading
March 26, 2015, 06:04:00 am
Quote from: Coleman Watts on March 26, 2015, 05:30:06 am
I suggest you give your Civi users "Skip IDS Check" permission.

Why? What's the object of this permission? (ps I've done it, but users still can NOT tag in a tag set field)
Edited: I've search about it and I have the answer ;-) To avoid undesired warnings, etc. Thank you very much for the suggestion.

Quote
I also suggest you fix the permission problem on your server so the log files are writable.

I'm going to work on it...
« Last Edit: March 26, 2015, 06:14:49 am by calbasi »

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: Autocomplete tags is not loading
March 26, 2015, 06:27:20 am
PHPIds seems like a good idea in theory; in practice it doesn't work well for complex forms and is best to bypass for trusted users.
Are you still getting an IDS-related error now?
Try asking your question on the new CiviCRM help site.

calbasi

  • I post occasionally
  • **
  • Posts: 36
  • Karma: 0
    • calbasi.net
  • CiviCRM version: 4.5
  • CMS version: Drupal 7
  • MySQL version: 5.1
  • PHP version: 5.3
Re: Autocomplete tags is not loading
March 26, 2015, 06:40:09 am
Hi Coleman,

I have no ID related warnings nor file permissions, but main issue is still present... (without any line at drupal database log).

Please, review top messages... You told issue was related with an issue you opened at issues.civicrm.org, closed at 4.5.6 but problem persists just now at my install.

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: Autocomplete tags is not loading
March 26, 2015, 06:45:48 am
Can you please clarify exactly what error message you are seeing, and where.
You asked me to review the above messages, which say "$IDS Detector Details = Array...". IDS stands for "Intrusion Detection System" and the message suggests that it was triggered. No? Please explain.
Try asking your question on the new CiviCRM help site.

calbasi

  • I post occasionally
  • **
  • Posts: 36
  • Karma: 0
    • calbasi.net
  • CiviCRM version: 4.5
  • CMS version: Drupal 7
  • MySQL version: 5.1
  • PHP version: 5.3
Re: Autocomplete tags is not loading
March 26, 2015, 07:14:59 am
Hi Coleman,

I'm sorry, my English is not the best... I mean the top article:

http://forum.civicrm.org/index.php/topic,34971.msg148664.html#msg148664

In this message I try to describe a bug where any non civicrm admin user can NOT add a tag of "set tags" type (free tagging)

francescbassas give us more information and you opened a issue to solve it: http://forum.civicrm.org/index.php/topic,34971.msg150328.html#msg150328

But some days ago I've updated my CiviCRM to the latest version and this issue is still present. I have not errors displayed, just:

- non CiviCRM admin users have not suggestions at tag set input box (admin user has)
- newly created tags are not saved

all this happens silently, without warnings...

jason-vivid

  • I’m new here
  • *
  • Posts: 1
  • Karma: 0
  • CiviCRM version: 4.5.6
  • CMS version: Drupal 7.34
  • MySQL version: 14.4
  • PHP version: PHP 5.3.10
Re: Autocomplete tags is not loading
April 01, 2015, 10:59:10 am
We are having this same issue on 4.5.6. 

We have two user types.  Contact Editors and Limited Users.

Contact editors are configured to be able to edit records. However tags are not appearing when the % wildcard is entered or autocomplete when you start typing a tag.

It works as expected for Administrators.

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: Autocomplete tags is not loading
April 01, 2015, 11:49:10 am
It would be very helpful if one of you could identify exactly which permission is at issue. Try adding permissions one-at-a-time to your Contact Editors until the problem resolves. Confirm by turning the most recent permission on and off to make sure that is the right one.
Try asking your question on the new CiviCRM help site.

calbasi

  • I post occasionally
  • **
  • Posts: 36
  • Karma: 0
    • calbasi.net
  • CiviCRM version: 4.5
  • CMS version: Drupal 7
  • MySQL version: 5.1
  • PHP version: 5.3
Re: Autocomplete tags is not loading
April 02, 2015, 05:27:24 am
Hi Coleman:
"CiviCRM: administer CiviCRM" solves issue.

Pages: [1] 2
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM (Moderator: Dave Greenberg) »
  • Autocomplete tags is not loading

This forum was archived on 2017-11-26.