The function _locale_parse_js_file($filepath){...} uses the php function file_get_contents() to receive the content from javascript files. Our project uses one dynamic javascript callback drupal_add_js('api?id='.$cm->id.$scoidstr.$modestr.$attemptstr, 'core', 'header', FALSE, FALSE, FALSE); which can cause an error message from mentioned function.

Workaround: Just use a if(file_exist($filepath)){...} in the _locale_parse_js_file($filepath){...} function to prevent such error messages.

We will try to fix this issue in a later version of cck_scorm module, so you won't need to edit includes/locale.inc anymore.

Comments

dirk.westrup’s picture

Status: Needs work » Active
dirk.westrup’s picture

Problem has only appeared by using the Localized Drupal install profile from Acquia.

If you use only Drupal core, the error is not thrown.

xarbot’s picture

I think i have the same problem. Which archive has this funcion?

Thanks in advanced

Xarbot

dirk.westrup’s picture

Assigned: dirk.westrup » pgerling
dirk.westrup’s picture

Status: Active » Closed (fixed)

Problem solved in release candidate (will be available today).