In unitsapi.module, line 110 there is:

  $file = url(drupal_get_path('module', 'unitsapi'), array('absolute' => TRUE)) .'/units.xml';

But if you dont have clean urls enabled you get something like mysite.com/?q=sites/all/modules/unitsapi/units.xml in the file to load, so it causes an error.

I solve it by this way:

  $file = str_replace('?q=', '', url(drupal_get_path('module', 'unitsapi'), array('absolute' => TRUE)) .'/units.xml');

But maybe isn't the right way to fix it.

Comments

raspberryman’s picture

Status: Active » Fixed

The latest -dev release should fix this. Please let me know if you see it again.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.