VOL-193 Cannot Create New Volunteer Project in CiviCRM 4.7.6: Undefined index: check_permissions

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.0.2
    • Fix Version/s: None
    • Labels:
      None
    • Versioning Impact:
      Patch (backwards-compatible bug fixes)
    • Documentation Required?:
      None

      Description

      Drupal 7.43
      CiviCRM 4.7.6 (also occurred on 4.7.5)
      CiviVolunteer 2.0.2 (also occured on 2.0.1)

      Unable to create a new volunteer project. The project creation page comes up, but the continue or save buttons do not work.

      Steps to Reproduce:
      1 CiviCRM > Volunteers > New Volunteer Project
      2 Enter a Project Title
      3 Click either Continue or Save and Done.
      4 Nothing Happens: No error

      Cancel clears the screen going back to the management page.

      Error in Drupal error log:
      Notice: Undefined index: check_permissions in civicrm_api3_volunteer_project_contact_create() (line 49 of <root>/sites/default/files/civicrm/ext/org.civicrm.volunteer-4.6-2.0.2/api/v3/VolunteerProjectContact.php).

        Attachments

          Activity

          [VOL-193] Cannot Create New Volunteer Project in CiviCRM 4.7.6: Undefined index: check_permissions
          Walt Daniels added a comment -

          I should have added, I get the following message when I save.

          A technical problem has occurred

          Your submission was not saved. Resubmitting the form is unlikely to resolve this problem. Please contact a system administrator.
           
          I am the admin and there are no clues about what to do. There are no useful Drupal error messages. Some php warnings on filling in the contact fields.

          Walt Daniels added a comment -

          Some additional info. My install of volunteer was on a quite new, Drupal and Civi and volunteer  has not been upgraded from its install. Civi has had one minor upgrade done and needs one more.

          Frank J. Gómez added a comment -

          Walt Daniels: I think most cases I've seen of this result from choices made in the "Default Project Settings" configuration (CiviCRM path civicrm/admin/volunteer/settings), relating to the project relationships settings (e.g., Owner, Manager, Beneficiary).

          In any case, you'll need to provide more information before someone can help you. When the "resubmitting the form is unlikely to resolve this problem" message appears, you should have a log message (probably a failed API request) in your JavaScript console. (In Firefox and Chrome you can view this by pressing F12 and selecting the "console" tab.) There might also be useful information in the "network" tab (e.g., an API request with a 500 status code).

          Walt Daniels added a comment -

          Not sure what fixed the problem as I just applied the latest updated version of Volunteer. I also set a bunch of default values for most of the fields. So I entered a test campaign and it appeared but also the "failed" campaign also appeared.

          Walt Daniels added a comment -

          Still having problems. I now have a campaign but it does not appear on new project page so I can't select it. Furthermore the values I set on the setting page did not save so they are blank. The save button gets this error:

          • Warning: Invalid argument supplied for foreach() in CRM_Volunteer_Form_Settings->setDefaultValues() (line 255 of /home/yktdan/2020.danielsweb.info/sites/default/files/civicrm/ext/org.civicrm.volunteer/CRM/Volunteer/Form/Settings.php).
          • also get these
          • Notice: Undefined index: type in CRM_Core_BAO_Setting::validateSetting() (line 294 of /home/yktdan/2020.danielsweb.info/sites/all/modules/civicrm/CRM/Core/BAO/Setting.php).

          It does say that it saved it.

           

          On http://2020.danielsweb.info/civicrm/vol#/volunteer/manage/0

          the setting page - it has a bogus profile listed and there is no way to delete it and it does not have a dropdown to select an existing one.

            People

            • Assignee:
              Frank J. Gómez
              Reporter:
              Stephen Silvera

              Dates

              • Created:
                Updated: