Closed (fixed)
Project:
Closed Question
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
28 Aug 2011 at 18:30 UTC
Updated:
29 Aug 2011 at 14:54 UTC
When I launched cron, there was a message that I have not installed libraries json, jstree and jDraw2D. I read the readme and downloaded all that is necessary. Now I have some error messages.
Warning: file_get_contents(/sites/all/libraries/jquery-json/jquery.json.min.js) [function.file-get-contents]: failed to open stream: No such file or directory в функции _locale_parse_js_file() (строка 1393 в файле Z:\home\mysite\www\includes\locale.inc).
Warning: file_get_contents(/sites/all/libraries/jquery-jstree/jquery.jstree.js) [function.file-get-contents]: failed to open stream: No such file or directory в функции _locale_parse_js_file() (строка 1393 в файле Z:\home\mysite\www\includes\locale.inc).
Warning: file_get_contents(/sites/all/libraries/jsDraw2D/jsDraw2D.js) [function.file-get-contents]: failed to open stream: No such file or directory в функции _locale_parse_js_file() (строка 1393 в файле Z:\home\mysite\www\includes\locale.inc).
They appear when I save a question or renew it.
My site in russian.
UPD:
strange, but the errors gone
I do not know what happened
Comments
Comment #1
HylkeVDS commentedQuick fix:
Edit closedquestion.module, function library_get_path (last one in the file)
Change
return base_path() . $file_path;to
return $file_path;And let me know if it fixed it. :)
Also, can you check if it is still using your local version of those files, and not the fallback?
Comment #2
konon commentedErrors are gone. After changing the module they do not appear. But your last sentence, I can not understand... :)
Comment #3
HylkeVDS commentedI had a look at your test site, and it seems to work correctly now.
Comment #3.0
HylkeVDS commentedupdated