Hello,
I test your module and the path return is false, the url is encoded :
<script src="http://mysite.localhost/sites%5Cdefault%5Cfiles%5Cjs_injector%5Cjs_injector_1.js?ltq5k0" type="text/javascript"></script>
How to correct it?
Thanks for this module
Comments
Comment #1
barwonhack commentedbump-sub ... er, uhm, "thing"
Comment #2
hadi farnoud commentedComment #3
eduardocintas commentedSeems to be a windows only problem puting this on line 52 fix the issue:
$filepath = str_replace('\\','/',$filepath );
Comment #4
Lex commented@eduardocintas:
Thanks, but in which file should I put this line?
Comment #5
barwonhack commentedNot windows only. I use Debian / Nginx
Comment #6
mwsam commentedI also encounter this problem on a windows server, I do the same thing as @eduardocintas to solve it.
@Lex: It is in js_injector.module
Comment #7
davidd07 commentedAlso confirming this is not only windows problem, #3 addresses this issue.
Comment #8
wiifmHey all,
Can you try upgrading to the 7.x-2.x version of this module (note, there is no upgrade path), and see if this issue persists?
Sean
Comment #9
apmsooner commentedI'm on latest version of 7.2 and i get this error:
File temporary://fileT4KOa4 could not be copied, because the destination directory public://js_injector is not configured correctly.
Comment #10
apmsooner commentedI just manually created the directory js_injector and gave public write permissions and i'm good now.
Comment #11
wiifm@apmsooner there is now hook_requirements() in the 7.x-2.x version of the module, so if the webserver cannot create or write to the folder "
public://js_injector" your statue report will be red (unhappy). Yes, you are right, granting the webserver permissions to either:will resolve the issue.
Comment #12
vinmassaro commented@wiifm: what if you can do neither from #11? Shouldn't the module be doing this correctly?
Comment #13
theoc commentedweirdly, I created js_injector in sites/all/modules/js_injector and gave it 777 permissions. Then, my problems were gone, too. But after I deleted sites/all/modules/js_injector/js_injector (out of curiosity) my problems still are gone.
Comment #14
astonvictor commentedI'm closing it because the issue was created a long time ago without any further steps.
if you still need it then raise a new one.
thanks