Closed (fixed)
Project:
CCK Scorm Field
Version:
6.x-1.0-beta9
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
24 Nov 2010 at 12:30 UTC
Updated:
29 Jun 2011 at 10:57 UTC
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
Comment #1
dirk.westrup commentedComment #2
dirk.westrup commentedProblem has only appeared by using the Localized Drupal install profile from Acquia.
If you use only Drupal core, the error is not thrown.
Comment #3
xarbot commentedI think i have the same problem. Which archive has this funcion?
Thanks in advanced
Xarbot
Comment #4
dirk.westrup commentedComment #5
dirk.westrup commentedProblem solved in release candidate (will be available today).