Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-16615

Can't access event location tab

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.7
    • Fix Version/s: 4.7
    • Component/s: None
    • Labels:
      None
    • Documentation Required?:
      None

      Description

      Tim, can you eyeball this in the first instance - I think it could have arising from your addField changes? If you don't think so then just click unassign.

      <p><b>Exception: "Cannot determine default context. The form class should implement getDefaultContext
      ()."</b></p><pre>#0 /home/vagrant/civicrm-buildkit/build/drupal-demo/sites/all/modules/civicrm/CRM/Core
      /Form.php(1177): CRM_Core_Form->getDefaultContext()
      #1 /home/vagrant/civicrm-buildkit/build/drupal-demo/sites/all/modules/civicrm/CRM/Contact/Form/Edit/Address
      .php(75): CRM_Core_Form->addField("address[1][location_type_id]", (Array:4), FALSE)
      #2 /home/vagrant/civicrm-buildkit/build/drupal-demo/sites/all/modules/civicrm/CRM/Contact/Form/Location
      .php(114): CRM_Contact_Form_Edit_Address::buildQuickForm(Object(CRM_Event_Form_ManageEvent_Location)
      )
      #3 /home/vagrant/civicrm-buildkit/build/drupal-demo/sites/all/modules/civicrm/CRM/Event/Form/ManageEvent
      /Location.php(168): CRM_Contact_Form_Location::buildQuickForm(Object(CRM_Event_Form_ManageEvent_Location
      ))
      #4 /home/vagrant/civicrm-buildkit/build/drupal-demo/sites/all/modules/civicrm/CRM/Core/Form.php(481)
      : CRM_Event_Form_ManageEvent_Location->buildQuickForm()
      #5 /home/vagrant/civicrm-buildkit/build/drupal-demo/sites/all/modules/civicrm/CRM/Core/QuickForm/Action
      /Display.php(94): CRM_Core_Form->buildForm()
      #6 /home/vagrant/civicrm-buildkit/build/drupal-demo/sites/all/modules/civicrm/packages/HTML/QuickForm
      /Controller.php(203): CRM_Core_QuickForm_Action_Display->perform(Object(CRM_Event_Form_ManageEvent_Location
      ), "display")
      #7 /home/vagrant/civicrm-buildkit/build/drupal-demo/sites/all/modules/civicrm/packages/HTML/QuickForm
      /Page.php(103): HTML_QuickForm_Controller->handle(Object(CRM_Event_Form_ManageEvent_Location), &quot
      ;display")
      #8 /home/vagrant/civicrm-buildkit/build/drupal-demo/sites/all/modules/civicrm/CRM/Core/Controller.php
      (353): HTML_QuickForm_Page->handle("display")
      #9 /home/vagrant/civicrm-buildkit/build/drupal-demo/sites/all/modules/civicrm/CRM/Utils/Wrapper.php(115
      ): CRM_Core_Controller->run()
      #10 /home/vagrant/civicrm-buildkit/build/drupal-demo/sites/all/modules/civicrm/CRM/Core/Invoke.php(286
      ): CRM_Utils_Wrapper->run("CRM_Event_Form_ManageEvent_Location", "Event Location&quot
      ;, NULL)
      #11 /home/vagrant/civicrm-buildkit/build/drupal-demo/sites/all/modules/civicrm/CRM/Core/Invoke.php(86
      ): CRM_Core_Invoke::runItem((Array:14))
      #12 /home/vagrant/civicrm-buildkit/build/drupal-demo/sites/all/modules/civicrm/CRM/Core/Invoke.php(54
      ): CRM_Core_Invoke::_invoke((Array:4))
      #13 /home/vagrant/civicrm-buildkit/build/drupal-demo/sites/all/modules/civicrm/drupal/civicrm.module
      (489): CRM_Core_Invoke::invoke((Array:4))
      #14 [internal function](): civicrm_invoke("event", "manage", "location&quot

      #15 /home/vagrant/civicrm-buildkit/build/drupal-demo/includes/menu.inc(519): call_user_func_array(&quot
      ;civicrm_invoke", (Array:3))
      #16 /home/vagrant/civicrm-buildkit/build/drupal-demo/index.php(21): menu_execute_active_handler()
      #17

      {main}

      </pre><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict
      .dtd">
      <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">

      <head>
      <title></title>
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
      <base href="/sites/all/modules/civicrm/" />
      <style type="text/css" media="screen">
      @import url(/sites/all/modules/civicrm/css/civicrm.css);
      @import url(/sites/all/modules/civicrm/bower_components/jquery-ui/themes/smoothness/jquery-ui.min
      .css);
      </style>
      </head>
      <body>
      <div id="crm-container" class="crm-container" lang="en" xml:lang="en">
      <div class="messages status no-popup"> <div class="icon red-icon ui-icon-alert"></div>
      <span class="status-fatal">Sorry but we are not able to provide this at the moment.</span>
      <div class="crm-section crm-error-message">Cannot determine default context. The form class should
      implement getDefaultContext().</div>
      <p><a href="http://civi45/" title="Main Menu">Return to home page.</a></p>
      </div>
      </div>
      <script language="JavaScript">
      function toggle( element ) {
      var className = element.className;
      if ( className == 'crm-accordion-wrapper collapsed crm-fatal-error-details-block')

      { element.className = 'crm-accordion-wrapper crm-fatal-error-details-block'; }

      else

      { element.className = 'crm-accordion-wrapper collapsed crm-fatal-error-details-block'; }

      }
      </script>

      </body>
      </html>

        Attachments

          Activity

            People

            • Assignee:
              mallezie Tim Mallezie
              Reporter:
              eileen Eileen McNaughton
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: