Skip to content

Javascript errors prevents CiviVolunteer Volunteers tab settings from working #576

@ChrisHardie

Description

@ChrisHardie

After seeing that #557 was resolved I tried again to install CiviVolunteer. (WordPress 5.7.2, CiviCRM 5.38.0, CiviVolunteer 2.4.3, AngularProfiles 1.2.2). I'm able to install the module and configure volunteer roles, but when I go to set volunteer settings for an event, I start getting lots of Javascript errors in the browser console.

Upon loading an event page:

TypeError: undefined is not an object (evaluating 'CRM.volunteerApp.module')
undefined is not an object (evaluating 'CRM.volunteerApp.trigger')
https://civicrm.test/wp-content/uploads/civicrm/persist/contribute/dyn/angular-modules.52b01978089cf4c9f5f81a96b9700499.js:1813 – "Possibly unhandled rejection: {}"

Upon switching to the Volunteers tab and trying to click on "Define Volunteer Opportunities:

[Error] TypeError: CRM.volunteerPopup is not a function. (In 'CRM.volunteerPopup(ts('Define Volunteer Opportunities'), 'Define', CRM.vars['org.civicrm.volunteer'].projectId)', 'CRM.volunteerPopup' is undefined)

I'm also not sure the links/buttons on that tab are appearing as they should:

Screen Shot 2021-06-17 at 11 04 08

I'm quite excited to use this module for organizing volunteers on the events we have coming up this summer so if there's any additional information I can provide to help troubleshoot, please let me know. Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions