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) »
  • Error On Contact Edit
Pages: [1]

Author Topic: Error On Contact Edit  (Read 500 times)

stuartdrennan

  • I’m new here
  • *
  • Posts: 12
  • Karma: 0
Error On Contact Edit
October 06, 2012, 12:58:45 pm
Hi All

Getting some strange error text on a contact edit (view is fine).

On the screen, just below the menu strip:

'); cj('#lastname_msg a').click(function(){global_formNavigate =true; return true;});// No confirmation dialog on click }); }); });

In place of the contact edit box:

"; if (data.length ==1) { msg = msg + "There is a contact with a similar last name. If the person you were trying to add is listed below, click on their name to view or edit their record"; } else { // ideally, should use a merge with data.length msg = msg + "There are contacts with a similar last name. If the person you were trying to add is listed below, click on their name to view or edit their record"; } msg = msg+ ''; cj.each(data, function(i,contact){ if ( contact.contact_id ) { if ( !(contact.email) ) { contact.email = ''; } msg = msg + ''; } }); msg = msg+ '
'+ contact.display_name +'   '+contact.email+'   ViewEdit
'; cj('#last_name').parent().parent().after(msg+'

I've upgraded, removed the /components and administrator/components folder and reinstalled, no help.

Checking my Chrome console, it looks the </script> is getting inserted in the wrong place:

Uncaught SyntaxError: Unexpected end of input index2.php:989

Looking at line 989

     var msg="<tr id='lastname_msg'><td colspan='5'><div class='messages status'><div class='icon inform-icon'></script>
</div>";

Can't think of a way to fix it, would anyone out there have any thoughts?

Thanks

Stuart

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: Error On Contact Edit
October 07, 2012, 12:03:55 am
Can you please give more info about your version of civicrm and your CMS?
Can you reproduce this on demo.civicrm.org?
Can you tell us anything unique about your setup? For example, localization settings, etc?
Try asking your question on the new CiviCRM help site.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Error On Contact Edit

This forum was archived on 2017-11-26.