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 »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Custom Field not editable
Pages: [1] 2

Author Topic: Custom Field not editable  (Read 2265 times)

jclmavg

  • I’m new here
  • *
  • Posts: 11
  • Karma: 0
  • CiviCRM version: 4.1.3
  • CMS version: Wordpress 3.3
  • MySQL version: unknown
  • PHP version: unknown
Custom Field not editable
June 24, 2012, 04:09:16 am
We're setting up Civi and so far we thought we were doing good, but here's one thing we've run in to and have been unable to solve.

Perhaps one of you has an idea. When we add acustom field and we assign this to a case type, the custom field shows up properly when you add a new case. So far no problem. When opening the case afterwards, the custom field does show up including the edit button, but clicking the edit button does absolutely nothing.  ???

We've gone through all different kinds of options, but nothing works. We even deleted the case types again, recreating everything, but nothing. The edit button does nothing, the editing window does not pop up.

This is a wordpress installation by the way.

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: Custom Field not editable
June 24, 2012, 07:54:20 am

can you see if you can reproduce this on our drupal and wordpress demoes

http://demo.civicrm.org/

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

jclmavg

  • I’m new here
  • *
  • Posts: 11
  • Karma: 0
  • CiviCRM version: 4.1.3
  • CMS version: Wordpress 3.3
  • MySQL version: unknown
  • PHP version: unknown
Re: Custom Field not editable
June 26, 2012, 11:52:34 am
Hi Lobo,

On the wordpress demo site it works ok. I'm perplexed, it's as if some script is not working properly. The editing button is there, but clicking it does nothing. The pop-up window just does not appear. We even tried a clean install of civi today, still did not solve it. ???

Weird thing is, the pop-up window does show up for example when clicking add new role when on the case summary screen.

Wordpress version we are running on is 3.3.2.

Could the problem be in any way related to using a custom case type?
« Last Edit: June 26, 2012, 12:22:08 pm by jclmavg »

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Custom Field not editable
June 26, 2012, 12:07:44 pm
Did you try enabling Firebug and using the console to see if there are errors reported. I think there will be an ajax call showing up to load the dialog - so you can also right click to open that in a new tab (which might reveal an error msg).
Protect your investment in CiviCRM by  becoming a Member!

jclmavg

  • I’m new here
  • *
  • Posts: 11
  • Karma: 0
  • CiviCRM version: 4.1.3
  • CMS version: Wordpress 3.3
  • MySQL version: unknown
  • PHP version: unknown
Re: Custom Field not editable
June 26, 2012, 12:35:52 pm
I did not find any errors, I checked with Chrome. This is how it looks in the code:

<a href="#" class="button" style="margin-left: 6px;" onclick="updateCaseCustom(1, 1, 2, 3); return false;"><span><div class="icon edit-icon"></div>Edit</span></a>

I still think it might have something to do with using custom case types? I can't test custom case types on the demo site.

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Custom Field not editable
June 26, 2012, 01:53:10 pm
If you use Firebug you should be able to see the ajax call which loads the pop-up form in the Firebug console. For example, on demo - for this case:

http://drupal.demo.civicrm.org/civicrm/contact/view/case?reset=1&id=7&cid=517&action=view&context=case&selectedChild=case&key=938ce219e659bfd4822ea0f7c58ab049_5721

the 'Edit' pop-up URL is this:

http://drupal.demo.civicrm.org/civicrm/case/cd/edit?snippet=4&cgcount=1&action=update&reset=1&type=Case&entityID=7&groupID=6&cid=517&subType=1

Opening that URL in a separate window gives a form snippet (when things are working). I suspect it will throw an error for you or some clue (hopefully).
Protect your investment in CiviCRM by  becoming a Member!

jclmavg

  • I’m new here
  • *
  • Posts: 11
  • Karma: 0
  • CiviCRM version: 4.1.3
  • CMS version: Wordpress 3.3
  • MySQL version: unknown
  • PHP version: unknown
Re: Custom Field not editable
June 26, 2012, 02:10:18 pm
Hi Dave,

Thanks for the suggestion, I installed Firebug (useful!).

The ajax call in the Firebug console: POST /wp-admin/admin.php?page=CiviCRM&q=civicrm/ajax/activity&snippet=4&caseID=2&cid=2&userID=1

Opening the edit pop-up URL gives an unrecoverable error: "is not of the type Integer"

When I click the link firebug reports:

GET /wp-admin/admin.php?page=CiviCRM&q=civicrm/case/cd...t=1&type=Case&entityID=2&groupID=1&cid=2&subType=1
501 Method Not Implemented
1208ms   

jclmavg

  • I’m new here
  • *
  • Posts: 11
  • Karma: 0
  • CiviCRM version: 4.1.3
  • CMS version: Wordpress 3.3
  • MySQL version: unknown
  • PHP version: unknown
Re: Custom Field not editable
June 26, 2012, 02:45:15 pm
Okay, this is weird.  ??? When I click on the full link the console gives me:

/wp-admin/admin.php?page=CiviCRM&q=civicrm/case/cd/edit&snippet=4&cgcount=1&action=update&reset=1&type=Case&entityID=1&groupID=1&cid=2&subType=3

Wordpress gives a "nothing found" error. Am I missing things?

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Custom Field not editable
June 26, 2012, 03:37:42 pm
Hmm - confirmed that this works on the WP demo (edit form pops up, and opening console link in separate tab gives the expected form snippet). Don't know what "nothing found" means  ???

Maybe check your apache / webserver logs to see there are any clues.
Protect your investment in CiviCRM by  becoming a Member!

jclmavg

  • I’m new here
  • *
  • Posts: 11
  • Karma: 0
  • CiviCRM version: 4.1.3
  • CMS version: Wordpress 3.3
  • MySQL version: unknown
  • PHP version: unknown
Re: Custom Field not editable
June 26, 2012, 04:16:14 pm
Apparently Wordpress can't find a specific file, for whatever reason. The link which I got from firebug points to:

"wp-admin/admin.php?page=CiviCRM&q=civicrm/case/cd/edit"

Can't put my finger on where this is going or supposed to go... Anyone know?

jclmavg

  • I’m new here
  • *
  • Posts: 11
  • Karma: 0
  • CiviCRM version: 4.1.3
  • CMS version: Wordpress 3.3
  • MySQL version: unknown
  • PHP version: unknown
Re: Custom Field not editable
June 26, 2012, 05:19:28 pm
Getting the same error when navigating to civimail, email configuration:

/wp-admin/admin.php/?page=CiviCRM&q=civicrm/admin/mail&reset=1

Gives a 404 not found.  ???

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Custom Field not editable
June 26, 2012, 06:03:03 pm
first URL points to CRM/Case/Form/CustomData.php
second URL points to CRM/Admin/Form/Setting/Mail.php

Maybe your install doesn't have the complete codebase for some reason (aborted FTP upload or ???).
Protect your investment in CiviCRM by  becoming a Member!

jclmavg

  • I’m new here
  • *
  • Posts: 11
  • Karma: 0
  • CiviCRM version: 4.1.3
  • CMS version: Wordpress 3.3
  • MySQL version: unknown
  • PHP version: unknown
Re: Custom Field not editable
June 27, 2012, 03:50:29 am
Hi Dave,

Thanks for the suggestion. However, it seems the files are not missing. For example, the first one sits here:

/wp-content/plugins/civicrm/civicrm/CRM/Case/Form/CustomData.php

Could it have something to do with the mod_security?

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Custom Field not editable
June 27, 2012, 06:27:43 am
re mod_security - don't know. can u try disabling it?
Protect your investment in CiviCRM by  becoming a Member!

jclmavg

  • I’m new here
  • *
  • Posts: 11
  • Karma: 0
  • CiviCRM version: 4.1.3
  • CMS version: Wordpress 3.3
  • MySQL version: unknown
  • PHP version: unknown
Re: Custom Field not editable
June 27, 2012, 07:52:37 am
We just had it disabled. It did not work.  :-\ Here's what I see in Firebug when I click the link.

http://jclmavg.home.xs4all.nl/crmerror.png

Pages: [1] 2
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Custom Field not editable

This forum was archived on 2017-11-26.