civicrm / org.civicrm.volunteer

CiviVolunteer extension.
40 stars 64 forks source link

Cannot add new Volunteer roles to Volunteer project not associated with an Event #597

Closed BOTKevinS closed 11 months ago

BOTKevinS commented 11 months ago

Steps to reproduce: Create a New Volunteer Project - enter the project title, description, assign relationships, etc. and click Continue On the very next page (Define Volunteer Opportunities), I am unable to add any new Volunteer roles to associate with the Project.

Using chrome dev tools, I see the following error in the console:

jquery.min.js?v=3.6.3:2 Uncaught Error: Syntax error, unrecognized expression: #/volunteer/manage at se.error (jquery.min.js?v=3.6.3:2:13911) at se.tokenize (jquery.min.js?v=3.6.3:2:21922) at se.select (jquery.min.js?v=3.6.3:2:22749) at Function.se [as find] (jquery.min.js?v=3.6.3:2:7196) at E.fn.init.find (jquery.min.js?v=3.6.3:2:25319) at new E.fn.init (jquery.min.js?v=3.6.3:2:25808) at E (jquery.min.js?v=3.6.3:2:1051) at handleFragmentLinkClickOrHashChange (form.js?v=9.5.11:122:21) at debounce.js?v=9.5.11:25:21 at dispatch (jquery.min.js?v=3.6.3:2:43336)

We are using the latest CiviCRM Volunteer extension 2.4.4, CiviCRM 5.63.4, Drupal 9.5.11

princessang417 commented 11 months ago

Validating that I can reproduce this issue.

As well, /civicrm/vol#/volunteer/manage and trying to assign a volunteer is not functioning. The search box does not respond to any clicks.

ginkgomzd commented 11 months ago

This doesn't "smell" like a civivolunteer issue. There have been no recent changes, for one.

The error in the description points to a malformed URL, or some other underlying issue... maybe path configs.

Maybe someone on the core-team knows of changes in core that could effect Angular or other javascript utilities.

princessang417 commented 11 months ago

Thanks for chiming in @ginkgomzd We did see an Angular error before updating to 2.4.4, but updating resolved it. It was balking at an inconsistency between Angular's requirements for CiviVolunteer and Civi Core. Any ideas on next steps to check? @colemanw ?

BOTKevinS commented 11 months ago

Thanks to both of you - it does appear that this is not a bug. I was able to add Volunteer roles to a Volunteer project without issue on another, simpler site.