Uploaded image for project: 'CiviVolunteer'
  1. CiviVolunteer
  2. VOL-242

CiviVolunteer does not honor $civicrm_setting['Directory Preferences']['extensionsDir']

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Minor
    • Resolution: Cannot Reproduce
    • Affects Version/s: 2.1.2
    • Fix Version/s: None
    • Labels:
      None
    • Documentation Required?:
      None

      Description

      Setup

      1. In civicrm.settings.php, set
        $civicrm_setting['Directory Preferences']['extensionsDir']

        to the correct directory.

      2. Set System Settings | Resource URLs | Extension Resource URL to a non-existent directory.

      Result

      Hard to describe, because the results were inconsistent. I have observed:

      1. Clicking Volunteer | Manage Volunteer Projects may:
        • Return a mostly empty white screen.
        • Go to the Civi home page
        • Work as expected.
      2. On an Event management page, clicking the Volunteer tab may:
        • Produce 4 buttons that do nothing.
        • Produce gibberish on the screen.
        • Work as expected.
      3. The following Angular error was noted:
        Error: $injector:modulerr
        Module Error
        
        Failed to instantiate module crmApp due to:
        [$injector:nomod] http://errors.angularjs.org/1.3.20/$injector/nomod?p0=crmApp
        S/<@http://my_site.com/drupal/sites/all/modules/civicrm/b... line 2 > eval:6:417
        Od/</</<@http://my_site.com/drupal/sites/all/modules/civicrm/b... line 2 > eval:21:412
        a@http://my_site.com/drupal/sites/all/modules/civicrm... line 2 > eval:21:53
        Od/</<@http://my_site.com/drupal/sites/all/modules/civicrm/b... line 2 > eval:21:296
        g/<@http://my_site.com/drupal/sites/all/modules/civicrm/b... line 2 > eval:35:46
        r@http://my_site.com/drupal/sites/all/modules/civicrm... line 2 > eval:7:320
        g@http://my_site.com/drupal/sites/all/modules/civicrm... line 2 > eval:34:399
        cb@http://my_site.com/drupal/sites/all/modules/civicr... line 2 > eval:38:135
        tc/d@http://my_site.com/drupal/sites/all/modules/civicrm... line 2 > eval:17:381
        tc@http://my_site.com/drupal/sites/all/modules/civicr... line 2 > eval:18:179
        Jd@http://my_site.com/drupal/sites/all/modules/civicr... line 2 > eval:17:1
        @http://my_site.com/drupal/sites/all/modules/civicrm/b... line 2 > eval:252:171
        m.Callbacks/j@http://my_site.com/drupal/sites/all/modules/civicrm/bower_components/jquery/dist/jquery.min.js?r=gtmky:2:27304
        m.Callbacks/k.add@http://my_site.com/drupal/sites/all/modules/civicrm/bower_components/jquery/dist/jquery.min.js?r=gtmky:2:27618
        m.fn.ready@http://my_site.com/drupal/sites/all/modules/civicrm/bower_components/jquery/dist/jquery.min.js?r=gtmky:2:29706
        @http://my_site.com/drupal/sites/all/modules/civicrm/b... line 2 > eval:252:149
        @http://my_site.com/drupal/sites/all/modules/civicrm/b... line 2 > eval:6:2
        .globalEval/<@http://my_site.com/drupal/sites/all/modules/civicrm/bower_components/jquery/dist/jquery.min.js?r=gtmky:2:2615
        .globalEval@http://my_site.com/drupal/sites/all/modules/civicrm/bower_components/jquery/dist/jquery.min.js?r=gtmky:2:2589
        .converters["text script"]@http://my_site.com/drupal/sites/all/modules/civicrm/bower_components/jquery/dist/jquery.min.js?r=gtmky:5:26518
        Pb@http://my_site.com/drupal/sites/all/modules/civicrm/bower_components/jquery/dist/jquery.min.js?r=gtmky:5:18363
        x@http://my_site.com/drupal/sites/all/modules/civicrm/bower_components/jquery/dist/jquery.min.js?r=gtmky:5:21793
        .send/b@http://my_site.com/drupal/sites/all/modules/civicrm/bower_components/jquery/dist/jquery.min.js?r=gtmky:5:26030
        .send@http://my_site.com/drupal/sites/all/modules/civicrm/bower_components/jquery/dist/jquery.min.js?r=gtmky:5:26134
        .ajax@http://my_site.com/drupal/sites/all/modules/civicrm/bower_components/jquery/dist/jquery.min.js?r=gtmky:5:21568
        m._evalUrl@http://my_site.com/drupal/sites/all/modules/civicrm/bower_components/jquery/dist/jquery.min.js?r=gtmky:5:22647
        .domManip@http://my_site.com/drupal/sites/all/modules/civicrm/bower_components/jquery/dist/jquery.min.js?r=gtmky:4:23087
        .append@http://my_site.com/drupal/sites/all/modules/civicrm/bower_components/jquery/dist/jquery.min.js?r=gtmky:4:20615
        .html/<@http://my_site.com/drupal/sites/all/modules/civicrm/bower_components/jquery/dist/jquery.min.js?r=gtmky:4:22138
        m.access@http://my_site.com/drupal/sites/all/modules/civicrm/bower_components/jquery/dist/jquery.min.js?r=gtmky:4:3397
        .html@http://my_site.com/drupal/sites/all/modules/civicrm/bower_components/jquery/dist/jquery.min.js?r=gtmky:4:21736
        .refresh/<@http://my_site.com/drupal/sites/all/modules/civicrm/js/crm.ajax.js?r=gtmky:259:9
        m.Callbacks/j@http://my_site.com/drupal/sites/all/modules/civicrm/bower_components/jquery/dist/jquery.min.js?r=gtmky:2:27304
        m.Callbacks/k.fireWith@http://my_site.com/drupal/sites/all/modules/civicrm/bower_components/jquery/dist/jquery.min.js?r=gtmky:2:28122
        x@http://my_site.com/drupal/sites/all/modules/civicrm/bower_components/jquery/dist/jquery.min.js?r=gtmky:5:22109
        .send/b@http://my_site.com/drupal/sites/all/modules/civicrm/bower_components/jquery/dist/jquery.min.js?r=gtmky:5:26030
        http://my_site.com/drupal/sites/all/modules/civicrm/b...
        

      After setting System Settings | Resource URLs | Extension Resource URL to the same value as specified in civicrm.settings.php, everything worked as expected.

        Attachments

          Activity

            People

            • Assignee:
              pittstains Frank J. Gómez
              Reporter:
              bobs0 Bob Silvern
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: