CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Discussion »
  • Extensions »
  • CiviVolunteer (Moderators: GinkgoFJG, Michael Z Daryabeygi) »
  • Persistent error message with CiviVolunteer
Pages: [1]

Author Topic: Persistent error message with CiviVolunteer  (Read 1597 times)

clarkac

  • Administrator
  • Ask me questions
  • *****
  • Posts: 399
  • Karma: 11
  • CiviCRM version: 4.4.11 & 4.5.5
  • CMS version: Drupal 7
  • MySQL version: 5.1.61-cll
  • PHP version: 5.3.27
Persistent error message with CiviVolunteer
July 25, 2014, 05:31:13 am
I am getting this message when I try to use CiviVolunteer:

"Your extension resource url is not configured correctly. CiviVolunteer cannot work without this setting.
Correct the problem at Settings - Resource URLs."

I have uninstalled & reinstalled to no avail.  There's nothing wrong with the Resource URLs - I have several other extensions working OK.  I'm on 4.4.6.  Ideas?
Andy Clark

GinkgoFJG

  • Moderator
  • I post frequently
  • *****
  • Posts: 135
  • Karma: 4
    • Ginkgo Street Labs
Re: Persistent error message with CiviVolunteer
July 25, 2014, 07:20:31 am
Hi, Clark,

Can you help us determine whether or not the warning message is a false positive?

Please go to "Manage Events" and edit an event. On the volunteer tab, enable volunteering for the event. When the page reloads, you should have three buttons. If nothing happens when you click the left two, then your configuration is indeed incorrect.

Can you please post the path to your CiviCRM Extensions Directory (Administer > System Settings > Directories) as well as you Extension Resource URL (Administer > System Settings > Resource URLs)? Also, what's your CMS?
Are you a CiviVolunteer user? Join the CiviVolunteer 2.0 Matching Grant effort to help the project win $15,000 in grant funding.

clarkac

  • Administrator
  • Ask me questions
  • *****
  • Posts: 399
  • Karma: 11
  • CiviCRM version: 4.4.11 & 4.5.5
  • CMS version: Drupal 7
  • MySQL version: 5.1.61-cll
  • PHP version: 5.3.27
Re: Persistent error message with CiviVolunteer
July 25, 2014, 08:42:17 am
I did what you prescribed, and hit 'Save' - and got a 'Leave page' or 'Stay on page' box.  But when I hit 'Save and Done' I get the 3 buttons and the error message I mentioned in the first post.  When I then attempted to log some volunteer hours it crashed after I failed to put in the actual duration and then tried to correct that - trace back attached.

My extension resource URL is:

http://www.rc-admin.org.uk/sites/default/files/civicrm/persist/Xtensions
Andy Clark

GinkgoFJG

  • Moderator
  • I post frequently
  • *****
  • Posts: 135
  • Karma: 4
    • Ginkgo Street Labs
Re: Persistent error message with CiviVolunteer
July 30, 2014, 07:26:34 am
Hi, Andy,

I just installed CiviVolunteer 1.3 on a fresh copy of CiviCRM 4.4.6, and I am unable to reproduce the problem.

Re-reading the code that throws that error, it's hard to see how it could throw a false positive.

When I go to http://localhost/sites/default/ext/org.civicrm.volunteer/js/checkResourceUrl.js, my browser loads a two-line JavaScript file:

Code: [Select]
// http://civicrm.org/licensing
window.civiVolunteerResourceUrlIsOk = true;

Based on the information you've provided, that same file should be accessible at http://www.rc-admin.org.uk/sites/default/files/civicrm/persist/Xtensions/CiviVolunteer/js/checkResourceUrl.js. I can't pull it up.

I'd check all your paths again, and maybe check that your web server is configured to allow files to be downloaded from that directory. As an aside, I think it's rather nonstandard to have your extensions under files/civicrm/persist. CiviCRM writes to that directory; in theory, anyway, CiviCRM could overwrite your extensions.

Another thing to check... pop open your browser's developer tools (sometimes called an inspector), look at the network tab, and reload the page. I'm guessing you've got 404s on some of your JavaScript resources, in which case you do indeed have a configuration problem.

If you can't figure it out, send me a direct message and we can arrange for you to get me your server creds so I can take a look myself.
Are you a CiviVolunteer user? Join the CiviVolunteer 2.0 Matching Grant effort to help the project win $15,000 in grant funding.

clarkac

  • Administrator
  • Ask me questions
  • *****
  • Posts: 399
  • Karma: 11
  • CiviCRM version: 4.4.11 & 4.5.5
  • CMS version: Drupal 7
  • MySQL version: 5.1.61-cll
  • PHP version: 5.3.27
Re: Persistent error message with CiviVolunteer
July 31, 2014, 10:38:54 am
Thanks for your help with this.  I changed the extensions directory to the same as the CiviCRM demo sites, which is sites/default/ext.  I moved the extensions, disabled and then enabled them and cleared caches.  I then created a new event, and the volunteer extension now seems to be working normally.  It would be worth understanding why putting the extensions directory inside the 'persist' directory causes a problem - maybe a documentation update is needed so others don't make this mistake.
Andy Clark

GinkgoFJG

  • Moderator
  • I post frequently
  • *****
  • Posts: 135
  • Karma: 4
    • Ginkgo Street Labs
Re: Persistent error message with CiviVolunteer
July 31, 2014, 11:15:48 am
There's been some talk about setting defaults for these configurations so end-users don't have to guess/choose. Plus one to that idea, I say. Most people probably won't need to customize them, I'd say.
Are you a CiviVolunteer user? Join the CiviVolunteer 2.0 Matching Grant effort to help the project win $15,000 in grant funding.

CiviTeacher.com

  • I live on this forum
  • *****
  • Posts: 1282
  • Karma: 118
    • CiviTeacher
  • CiviCRM version: 3.4 - 4.5
  • CMS version: Drupal 6&7, Wordpress
  • MySQL version: 5.1 - 5.5
  • PHP version: 5.2 - 5.4
Re: Persistent error message with CiviVolunteer
March 31, 2015, 04:24:12 pm
Quote from: clarkac on July 31, 2014, 10:38:54 am
sites/default/ext

This is the only directory that worked for me in a recent D7 Civi 4.4 install, and only after clearning Civi caches.

[root]/civicrm_ext did not work

neither did [root]/sites/default/files/civicrm/custom/ext
Try CiviTeacher: the online video tutorial CiviCRM learning library.

GinkgoFJG

  • Moderator
  • I post frequently
  • *****
  • Posts: 135
  • Karma: 4
    • Ginkgo Street Labs
Re: Persistent error message with CiviVolunteer
April 20, 2015, 06:28:06 am
See comment 1 under http://issues.civicrm.org/jira/browse/CRM-14499. The .htaccess file in sites/default/files/civicrm/custom restricts access to files therein, so while you can include PHP files from there on the server side, assets such as images, CSS, and JS won't load.
Are you a CiviVolunteer user? Join the CiviVolunteer 2.0 Matching Grant effort to help the project win $15,000 in grant funding.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Discussion »
  • Extensions »
  • CiviVolunteer (Moderators: GinkgoFJG, Michael Z Daryabeygi) »
  • Persistent error message with CiviVolunteer

This forum was archived on 2017-11-26.