Answers.Body: <p>Based on your updated description, it appears there's a JavaScript error of some sort in play. To begin debugging this, you'll need to open up the JavaScript console in your browser and post back any errors therein.</p>
  
  <p>In Firefox and Chromium (on Ubuntu at least), you can do this by pressing the F12 key. Otherwise, in Chromium, click Tools > JavaScript Console.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-04-08T18:12:12.050Z
Answers.Text: No obvious errors there or in the console or logs, even with refresh or going to the event page and back to the sign up.  Thanks for your patience - I'm not a coder (obviously)
Answers.UserDisplayName: Ben
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-04-08T18:33:12.187Z
Answers.Text: Please see this [troubleshooting guide](https://forum.civicrm.org/index.php/topic,35850.0.html)
Answers.UserDisplayName: Coleman
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-04-09T02:06:38.613Z
Answers.Text: Thanks for the Troubleshooting Guide - I turned on debugging and backtrace, went back to the event page and through the volunteer link - No messages show on screen or in console!
Answers.UserDisplayName: Ben
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-04-08T17:46:53.120Z
Answers.LastActivityDate: 2015-04-08T17:46:53.120Z
Answers.UserDisplayName: universalhandle
Answers.Body: <p>Ben sent me a link to his site privately, so I was able to do a little more digging around. I don't have creds to the site, so my observations are limited.</p>
  
  <p>The file that's responsible for the behavior missing from the site in question lives at <em>extensions_directory</em>/<em>civivolunteer_root</em>/templates/CRM/Volunteer/Form/VolunteerSignUp.js. If things were working as they should be, you could go to the page in the screenshot, view source, and find a reference to this file in the page. As it stands, this file isn't referenced anywhere in the page. This suggests one of two things (assuming no one has modified the source):</p>
  
  <ul>
  <li>Your extensions resource URL is set incorrectly. To check this:
  <ul>
  <li>Go to "Administer » System Settings » Resouce URLs".</li>
  <li>Fill in "Extension Resource URL," and click "Save". Note that this URL corresponds to the same location as the "Extensions Directory" setting found under "Administer » System Settings » Directories."</li>
  </ul></li>
  <li>Your extension resource URL is set correctly, but some server configuration prevents the resource from loading. I have seen this happen in Drupal sites when the extensions directory is under sites/default/files/civicrm. (If memory serves correctly, it's due to some somewhat recent changes in an .htaccess file.) I haven't tested it on WordPress, but I suspect the same would happen if the extension directory is under wp-content/plugins/files.</li>
  </ul>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-04-12T02:02:59.553Z
Answers.Text: I confirmed that the volunteersignup.js is at /primary/www/wp-content/plugins/files/civicrm/custom/org.civicrm.volunteer/templates/CRM/Volunteer/Form
Answers.UserDisplayName: Ben
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-04-12T20:20:08.693Z
Answers.Text: @Ben, I think the path is your problem. See comment 1 under https://issues.civicrm.org/jira/browse/CRM-14499. The .htaccess file in that directory restricts access to files therein. I'd recommend creating a directory at /primary/www/wp-content/plugins/ext and putting CiviVolunteer in there. After you do that, you'll need to update both your ext directory and your ext resource URL configs. For good measure, I'd also clear CiviCRM's caches. One way to do this is to go to http://yoursite.org/wp-admin/admin.php?page=CiviCRM/clearcache (WordPress) or http://yoursite.org/civicrm/clearcache (Drupal).
Answers.UserDisplayName: universalhandle
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-04-12T00:19:46.403Z
Answers.LastActivityDate: 2015-04-12T00:19:46.403Z
Answers.UserDisplayName: universalhandle
Body: <p>In CiviVolunteer, I have two roles (perhaps 'Event Set-up' &amp; 'Event Staffing') needed at different times (say Friday at 7pm for Set-up and Saturday at 9am for Staffing).  </p>
  
  <p><strong>In my installation (</strong> <em>Civi 4.5.8 on Wordpress 4.1.1</em> <strong>), someone can register to 'Set-up' on Saturday or to 'Staff' on Friday - The roles are not linked to the times needed.</strong>  </p>
  
  <p>Where do I start troubleshooting?  </p>
  
  <p>(I'd test on the demo, but you can't!)</p>
  
  <hr>
  
  <p><strong>Edit:</strong> I was able to test on the 4.6.1 Dupal sandbox and it does work where you must choose a role (time is hidden), then a new box appears to choose a time for that role. On mine, both the roles and times appear at the same time and inappropriate combinations are possible. I couldn't find any way demo for testing on a WP install, so I was confirming first that this is not a bug, and second, then how to fix. You said perhaps a broken script - but this is on multiple machines (&amp; front &amp; back end), so I assume it's my configuration somewhere. Where should I start looking to figure out the problem?
  Here's my a screenshot of the page:</p>
  
  <p><img src="https://i.sstatic.net/N3c0g.png" alt="Screenshot of Error"></p>
  
  <hr>
  
  <p><strong>Edit:</strong>  No Errors in browser console with backtrace and debugging turned on.</p>
  
  <hr>
  
  <p><strong>Edit:</strong> I confirmed that volunteersignup.js is at:</p>
  
  <p>/primary/www/wp-content/plugins/files/civicrm/ <strong>custom</strong> /org.civicrm.volunteer/templates/CRM/Volunteer/Form</p>
  
  <p>It is NOT at <strong>/custom_exe/</strong></p>
  
  <p>I double checked Extension Resource Dir:<br>
  /webroot/b/g/example/primary/www/wp-content/plugins/files/civicrm/<strong>custom_ext</strong></p>
  
  <p>Extension Resource URL:
  `<a href="http://example.com/wp-content/plugins/files/civicrm/" rel="nofollow noreferrer">http://example.com/wp-content/plugins/files/civicrm/</a><strong>custom_ext</strong>'</p>
  
  <p>Changing these to other values broke many other things - These setting all follow the help prompts &amp; book instruction from what I can tell.  </p>
  
  <p>Changing these to <strong>custom</strong> made no change.  .I didn't find a reference to a .htaccess change - is this a file permissions change, or a file content change?</p>
  
  <hr>
  
  <p><strong>Edit:</strong></p>
  
  <p>I moved <code>custom_exe</code> to <code>/wp-content/plugins/civicrm_ext</code>.  </p>
  
  <p>I changed the resource dir (<code>/webroot/b/g/example/primary/www/wp-content/plugins/civicrm_ext</code>) &amp; urls (<code>http://example.org/wp-content/plugins/civicrm_ext</code>) to the file.  File has permission read access (755).  I can browse to volunteersignup.js at the new location and view as an anonymous user.  The file name is still not found when searching 'view source' on the sign-up page.  No custom coding has been done anywhere on the site.</p>
  
  <p>I cleared cache from the admin (system settings > Cleanup Cache) and from manually deleting files in <code>template_c</code> per wiki. (The clearcache url gave an error "You do not have sufficient permissions to access this page.")</p>
  
  <p>I've also disabled all the civi extensions and wp plugins. This completes all the tasks on the troubleshooting hit list Coleman posted. </p>
  
  <p><strong>But still NO CHANGE on the form!</strong> And no errors on in the console. sigh...</p>
  
  <hr>
  
  <p><strong>Edit:</strong> I upgraded to 4.5.8 just incase there was an easy fix there.  I didn't think there would be reading through the change logs - Of course, still no change...</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-04-08T15:48:09.083Z
Comments.Text: Yes, the demo that Joe mentioned is a bit out of date and probably not optimally configured for allowing the general public to get a feel for the tool. I should probably automate that and have it refresh once a week or so.
Comments.UserDisplayName: universalhandle
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-04-08T15:53:48.667Z
Comments.Text: (Whoops, didn't mean to submit that.) Anyway, can you describe your problem in more detail, @Ben? How are folks signing up? I'm able to associate multiple times with one role, and multiple roles with a single time. On the volunteer sign-up page, users are first asked to select a role, and then the times associated with the selected role are presented to the user. If JavaScript is disabled (or broken because of another broken script on the page), then it would be possible to inappropriately mix and match roles and times. If everything is working properly, however, this shouldn't be possible.
Comments.UserDisplayName: universalhandle
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-04-09T22:20:52.610Z
Comments.Text: Since your debugging efforts thus far haven't proved fruitful, it may help to post the URL in question. If you don't want to do so publicly, you may send it to me via http://ginkgostreet.com/contact.
Comments.UserDisplayName: universalhandle
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-04-07T22:21:37.617Z
Comments.Text: Good question. FYI, there is a demo for civivolunteer available at http://civivolunteer.ginkgostreet.com/
Comments.UserDisplayName: Joe Murray
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-04-08T00:34:18.077Z
Comments.Text: Great find!  Sadly, on the Ginko Street Demo, the Demo user is not given the permissions to see the front end volunteer links (arguably, the biggest reason to have a demo with the volunteer extension!).  Nor does the user have permission to change the ACL's to give itself permission.  Thus, I can't get to the page needed to determine if this issue can be replicated or not due to demo issues.
Comments.UserDisplayName: Ben
Tags: <civievent><wordpress><extension>
Title: CiviVolunteer Error on page
ThreadText: # CiviVolunteer Error on page
  
  (Asked by: username_0 on 2015-04-07)
  
  In CiviVolunteer, I have two roles (perhaps 'Event Set-up' & 'Event Staffing') needed at different times (say Friday at 7pm for Set-up and Saturday at 9am for Staffing).
  
  **In my installation (** *Civi 4.5.8 on Wordpress 4.1.1* **), someone can register to 'Set-up' on Saturday or to 'Staff' on Friday - The roles are not linked to the times needed.**
  
  Where do I start troubleshooting?
  
  (I'd test on the demo, but you can't!)
  
  ---
  
  **Edit:** I was able to test on the 4.6.1 Dupal sandbox and it does work where you must choose a role (time is hidden), then a new box appears to choose a time for that role. On mine, both the roles and times appear at the same time and inappropriate combinations are possible. I couldn't find any way demo for testing on a WP install, so I was confirming first that this is not a bug, and second, then how to fix. You said perhaps a broken script - but this is on multiple machines (& front & back end), so I assume it's my configuration somewhere. Where should I start looking to figure out the problem?
  Here's my a screenshot of the page:
  
  ![Screenshot of Error](https://i.sstatic.net/N3c0g.png)
  
  ---
  
  **Edit:** No Errors in browser console with backtrace and debugging turned on.
  
  ---
  
  **Edit:** I confirmed that volunteersignup.js is at:
  
  /primary/www/wp-content/plugins/files/civicrm/ **custom** /org.civicrm.volunteer/templates/CRM/Volunteer/Form
  
  It is NOT at **/custom\_exe/**
  
  I double checked Extension Resource Dir:  
  /webroot/b/g/example/primary/www/wp-content/plugins/files/civicrm/**custom\_ext**
  
  Extension Resource URL:
  `<http://example.com/wp-content/plugins/files/civicrm/>**custom\_ext**'
  
  Changing these to other values broke many other things - These setting all follow the help prompts & book instruction from what I can tell.
  
  Changing these to **custom** made no change. .I didn't find a reference to a .htaccess change - is this a file permissions change, or a file content change?
  
  ---
  
  **Edit:**
  
  I moved `custom_exe` to `/wp-content/plugins/civicrm_ext`.
  
  I changed the resource dir (`/webroot/b/g/example/primary/www/wp-content/plugins/civicrm_ext`) & urls (`http://example.org/wp-content/plugins/civicrm_ext`) to the file. File has permission read access (755). I can browse to volunteersignup.js at the new location and view as an anonymous user. The file name is still not found when searching 'view source' on the sign-up page. No custom coding has been done anywhere on the site.
  
  I cleared cache from the admin (system settings > Cleanup Cache) and from manually deleting files in `template_c` per wiki. (The clearcache url gave an error "You do not have sufficient permissions to access this page.")
  
  I've also disabled all the civi extensions and wp plugins. This completes all the tasks on the troubleshooting hit list username_3 posted.
  
  **But still NO CHANGE on the form!** And no errors on in the console. sigh...
  
  ---
  
  **Edit:** I upgraded to 4.5.8 just incase there was an easy fix there. I didn't think there would be reading through the change logs - Of course, still no change...
  
  **Tags:** civievent, wordpress, extension
  
  > **Comments:**
  > **username_2**: Good question. FYI, there is a demo for civivolunteer available at http://civivolunteer.ginkgostreet.com/  
  > **username_0**: Great find!  Sadly, on the Ginko Street Demo, the Demo user is not given the permissions to see the front end volunteer links (arguably, the biggest reason to have a demo with the volunteer extension!).  Nor does the user have permission to change the ACL's to give itself permission.  Thus, I can't get to the page needed to determine if this issue can be replicated or not due to demo issues.  
  > **username_1**: Yes, the demo that Joe mentioned is a bit out of date and probably not optimally configured for allowing the general public to get a feel for the tool. I should probably automate that and have it refresh once a week or so.  
  > **username_1**: (Whoops, didn't mean to submit that.) Anyway, can you describe your problem in more detail, @username_0? How are folks signing up? I'm able to associate multiple times with one role, and multiple roles with a single time. On the volunteer sign-up page, users are first asked to select a role, and then the times associated with the selected role are presented to the user. If JavaScript is disabled (or broken because of another broken script on the page), then it would be possible to inappropriately mix and match roles and times. If everything is working properly, however, this shouldn't be possible.  
  > **username_1**: Since your debugging efforts thus far haven't proved fruitful, it may help to post the URL in question. If you don't want to do so publicly, you may send it to me via http://ginkgostreet.com/contact.  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_1 on 2015-04-08. Score: 2
  
  Based on your updated description, it appears there's a JavaScript error of some sort in play. To begin debugging this, you'll need to open up the JavaScript console in your browser and post back any errors therein.
  
  In Firefox and Chromium (on Ubuntu at least), you can do this by pressing the F12 key. Otherwise, in Chromium, click Tools > JavaScript Console.
  
  > **Comments:**
  > **username_0**: No obvious errors there or in the console or logs, even with refresh or going to the event page and back to the sign up.  Thanks for your patience - I'm not a coder (obviously)  
  > **username_3**: Please see this [troubleshooting guide](https://forum.civicrm.org/index.php/topic,35850.0.html)  
  > **username_0**: Thanks for the Troubleshooting Guide - I turned on debugging and backtrace, went back to the event page and through the volunteer link - No messages show on screen or in console!  
  
  ---
  
  ### Answer by username_1 on 2015-04-12. Score: 2
  
  username_0 sent me a link to his site privately, so I was able to do a little more digging around. I don't have creds to the site, so my observations are limited.
  
  The file that's responsible for the behavior missing from the site in question lives at *extensions\_directory*/*civivolunteer\_root*/templates/CRM/Volunteer/Form/VolunteerSignUp.js. If things were working as they should be, you could go to the page in the screenshot, view source, and find a reference to this file in the page. As it stands, this file isn't referenced anywhere in the page. This suggests one of two things (assuming no one has modified the source):
  
  * Your extensions resource URL is set incorrectly. To check this:
    + Go to "Administer » System Settings » Resouce URLs".
    + Fill in "Extension Resource URL," and click "Save". Note that this URL corresponds to the same location as the "Extensions Directory" setting found under "Administer » System Settings » Directories."
  * Your extension resource URL is set correctly, but some server configuration prevents the resource from loading. I have seen this happen in Drupal sites when the extensions directory is under sites/default/files/civicrm. (If memory serves correctly, it's due to some somewhat recent changes in an .htaccess file.) I haven't tested it on WordPress, but I suspect the same would happen if the extension directory is under wp-content/plugins/files.
  
  > **Comments:**
  > **username_0**: I confirmed that the volunteersignup.js is at /primary/www/wp-content/plugins/files/civicrm/custom/org.civicrm.volunteer/templates/CRM/Volunteer/Form  
  > **username_1**: @username_0, I think the path is your problem. See comment 1 under https://issues.civicrm.org/jira/browse/CRM-14499. The .htaccess file in that directory restricts access to files therein. I'd recommend creating a directory at /primary/www/wp-content/plugins/ext and putting CiviVolunteer in there. After you do that, you'll need to update both your ext directory and your ext resource URL configs. For good measure, I'd also clear CiviCRM's caches. One way to do this is to go to http://yoursite.org/wp-admin/admin.php?page=CiviCRM/clearcache (WordPress) or http://yoursite.org/civicrm/clearcache (Drupal).  
  
  ---
  
  