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 Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Cannot change Contact Greeting choices
Pages: [1]

Author Topic: Cannot change Contact Greeting choices  (Read 401 times)

geoadel

  • I’m new here
  • *
  • Posts: 6
  • Karma: 0
  • CiviCRM version: 4.4.3
  • CMS version: Drupal 7
  • MySQL version: 5.5.31-0
  • PHP version: 5.4.4-14
Cannot change Contact Greeting choices
December 12, 2013, 04:19:13 am
Hey there,

after my first steps within civicrm 4.4.3 on a drupal 7 installation, I encountered that I can set the greeting choices while creating a contact person.

I do not have any option of changing the field later by editing the contact person details.

In the demo, there is a drop-down identical to when creating a new person.

In my instance, I only have a non-editable textfield  ???

The same happens when using the contact overview inline editing function for the communication preferences area... in the demo there is an edit button, which when clicked loads the dropdown choice menu. In my instance that button does not show up at all.

Since it might be related, I changed the editor to TinyMCE due to an issue with CKEditor not working for me, see http://forum.civicrm.org/index.php/topic,30992.0.html

Does anyone have any clue or information how to identify the source of this issue?

All the best,
Georg

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Cannot change Contact Greeting choices
December 12, 2013, 09:14:30 am

can you use firebug and see if there are any javascript/ajax errors. You might want to use firebug on your local site and the demo machine and see how the behavior differs

thanx

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

geoadel

  • I’m new here
  • *
  • Posts: 6
  • Karma: 0
  • CiviCRM version: 4.4.3
  • CMS version: Drupal 7
  • MySQL version: 5.5.31-0
  • PHP version: 5.4.4-14
Re: Cannot change Contact Greeting choices
December 12, 2013, 02:27:24 pm
Dear Lobo,

thanks for giving directions :)

These are the two responses on my server after clicking on "edit communication preferences" in the contact person view (I replaced the server address with *HOST* for security reasons, I hope that is acceptable for now):

My server:
Code: [Select]
23:11:13.451 GET http:// *HOST* /modules/civicrm/packages/jquery/jquery-ui-1.9.0/css/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png [HTTP/1.1 304 Not Modified 52ms]
23:11:13.452 GET http:// *HOST* /index.php [HTTP/1.1 200 OK 472ms]

These are the three responses from the demo server for the same action.

Demo server:
Code: [Select]
23:01:44.316 GET http://drupal.demo.civicrm.org/sites/drupal.demo.civicrm.org/modules/civicrm/packages/jquery/jquery-ui-1.9.0/css/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png [HTTP/1.1 304 Not Modified 462ms]
23:01:44.316 GET http://drupal.demo.civicrm.org/civicrm/ajax/inline [HTTP/1.1 200 OK 611ms]
23:01:45.077 GET http://drupal.demo.civicrm.org/sites/drupal.demo.civicrm.org/modules/civicrm/i/edit.png [HTTP/1.1 304 Not Modified 226ms]

From that, I do assume, there may be an issue with loading the ajax parts, as on my server, it does request /ajax/inline - at least on the surface. However, when I compare the connection details, they look very similar and both do return a "200 OK" status, which I find confusing.

Here the details for the ajax connection...

My server:
Code: [Select]
[/color]
Request-URL: http:// *HOST* /index.php?q=civicrm/ajax/inline&cid=10&class_name=CRM_Contact_Form_Inline_CommunicationPreferences&snippet=6&reset=1
Request-Methode: GET
Status-Code: HTTP/1.1 200 OK

Demo server:
Code: [Select]
Request-URL: http://drupal.demo.civicrm.org/civicrm/ajax/inline?cid=209&class_name=CRM_Contact_Form_Inline_CommunicationPreferences&snippet=6&reset=1
Request-Methode: GET
Status-Code: HTTP/1.1 200 OK

So the only real difference seems to be loading the image file, but that of course can only be a symptom, and just to be on the safe side, the image exists at that URL and is displayed when accessed directly from the browser.

How may I continue to debug the possible ajax issues?

I assume that the in-page editing of contact details is relying on ajax, and generally that works. The only exception are the drop-down menus for changing the greetings choices, which are not working.

Thanks a lot,
Georg

geoadel

  • I’m new here
  • *
  • Posts: 6
  • Karma: 0
  • CiviCRM version: 4.4.3
  • CMS version: Drupal 7
  • MySQL version: 5.5.31-0
  • PHP version: 5.4.4-14
Re: Cannot change Contact Greeting choices
December 15, 2013, 04:38:34 am
Found the solution, was indeed related to the other issue I had encountered.

For some reason, during the installation of civicrm, it had set the wrong ressource url (the top level domain name was missing strangely), therefore it could not have worked. Not sure why they were wrong in the first place - I am reasonably sure I did not change them myself before.

Anyway, works now - thanks to this hint regarding a similar issue (though I did not move any files, which is why I had disregarded it at first):
http://forum.civicrm.org/index.php/topic,18035.0.html

Warm regards,
Georg

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Cannot change Contact Greeting choices

This forum was archived on 2017-11-26.