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
Comment #1
raspberryman commentedThe latest -dev release should fix this. Please let me know if you see it again.