After upgrading to CiviCRM 4.7, several CiviCRM related pages/functions on my site are not working and reporting errors related to CRM.$ not being defined as a function, but I can't find where it should be originally defined. Jquery appears to be loading and working okay. Also, when I access the 'CiviCRM » Administer CiviCRM » System Settings » Directories' page, only the core menu is displayed without any css formatting. None of the directories options are displayed so I can't verify/change them. Three, ReferenceError: CRM is not defined errors are reported for the page.

  • Found a work-around for the Directories page not displaying. Hack the administrator/components/com_civicrm/civicrm/templates/CRM/Admin/Form/Setting/Pa‌​th.hlp to replace crmResPath with crmResURL.
    – CSDweb
    Apr 6, 2016 at 14:35

1 Answer 1


Try enclosing your jquery code in:

CRM.$(function($) {
$(document).ready(function () {


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.