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 »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • Javascript not executing on + Additional Address
Pages: [1]

Author Topic: Javascript not executing on + Additional Address  (Read 1590 times)

FatherShawn

  • Ask me questions
  • ****
  • Posts: 372
  • Karma: 25
    • C3 Design
  • CiviCRM version: 4.2.11
  • CMS version: Drupal 7.23
  • MySQL version: 5.5.32
  • PHP version: 5.3.10
Javascript not executing on + Additional Address
June 28, 2013, 11:48:36 am
Having a weird issue with javascript - clicking the "+ Additional Address" button in contact edit results in a pause, the button disappears but no additional form is loaded.  Other JS working fine - site on 4.2.9. Not seeing the same behavior on the version on my laptop, which makes me think about path configuration, but the script paths look fine in source and are properly overridden in civicrm.settings.php
Code: [Select]
global $civicrm_setting;
$civicrm_setting['Directory Preferences']['uploadDir'] ='/var/www/sites/default/files/civicrm/upload/';
$civicrm_setting['Directory Preferences']['imageUploadDir'] ='/var/www/sites/default/files/civicrm/persist/contribute/';
$civicrm_setting['Directory Preferences']['customFileUploadDir'] = '/var/www/sites/default/files/civicrm/custom/';
$civicrm_setting['URL Preferences']['userFrameworkResourceURL'] = 'http://civicrm.dioceseli.org/sites/all/modules/civicrm';
$civicrm_setting['URL Preferences']['imageUploadURL'] = 'http://civicrm.dioceseli.org/sites/default/files/civicrm/persist/contribute/';


Anyone have an idea?
« Last Edit: June 28, 2013, 11:57:26 am by FatherShawn »
Lead Developer, C3 Design.
Twitter: @FatherShawn

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Javascript not executing on + Additional Address
June 30, 2013, 08:48:11 am
Can you use Firebug for Firefox and in the Net tab, see what is being loaded on the Ajax call when you click that icon?
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

FatherShawn

  • Ask me questions
  • ****
  • Posts: 372
  • Karma: 25
    • C3 Design
  • CiviCRM version: 4.2.11
  • CMS version: Drupal 7.23
  • MySQL version: 5.5.32
  • PHP version: 5.3.10
Re: Javascript not executing on + Additional Address
July 01, 2013, 07:09:51 am
Oh, of course!  Clearly too tired on Friday!! Thanks Hershel!

I get a html error 500 so I'll see what my apache logs say...
Lead Developer, C3 Design.
Twitter: @FatherShawn

FatherShawn

  • Ask me questions
  • ****
  • Posts: 372
  • Karma: 25
    • C3 Design
  • CiviCRM version: 4.2.11
  • CMS version: Drupal 7.23
  • MySQL version: 5.5.32
  • PHP version: 5.3.10
Re: Javascript not executing on + Additional Address
July 01, 2013, 07:21:12 am
Even more weird:
Code: [Select]
PHP Fatal error:  Call to undefined method stdClass::getName() in /var/www/sites/all/modules/civicrm/packages/HTML/QuickForm.php on line 1700, referer: http://civicrm.dioceseli.org/civicrm/contact/add?reset=1&context=search&action=update&cid=2

How is there an undefined method in one copy of the codebase but same version(4.2.9) on another machine not?
Lead Developer, C3 Design.
Twitter: @FatherShawn

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Javascript not executing on + Additional Address
July 01, 2013, 07:39:53 am
Maybe one codebase is not complete? Try replacing it.
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

FatherShawn

  • Ask me questions
  • ****
  • Posts: 372
  • Karma: 25
    • C3 Design
  • CiviCRM version: 4.2.11
  • CMS version: Drupal 7.23
  • MySQL version: 5.5.32
  • PHP version: 5.3.10
Re: Javascript not executing on + Additional Address
July 03, 2013, 06:45:18 am
 :-[ The error was in my own buildForm hook implementation. Public confession in case it helps someone else!  CRM_Contact_Form_Contact is built not only for the entire edit form but again for the additional address. 
Lead Developer, C3 Design.
Twitter: @FatherShawn

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • Javascript not executing on + Additional Address

This forum was archived on 2017-11-26.