kcfinder icon indicating copy to clipboard operation
kcfinder copied to clipboard

Get error when accessing site with ip addess

Open egig opened this issue 10 years ago • 14 comments

I Get:

TypeError: $(...).get(...) is undefined

at this line:

$('#order input[value="' + $.$.kuki.get('order') + '"]').get(0).checked = true;

nothing show in file browser when accessing from ip address.

egig avatar May 20 '14 04:05 egig

I just tested it. It works for me. I changed "localhost" to "127.0.0.1" and there are no problems. It seems that this is cookie issue... Please clear your cookies

sunhater avatar Jun 27 '14 18:06 sunhater

yes.. works on localhost.. but on real server nope... I have same error... also.. when I click upload i have kcact:upload and in window message The address wasn't understood

Firefox doesn't know how to open this address, because one of the following protocols (kcact) isn't associated with any program or is not allowed in this context.

zmmaj avatar Aug 02 '14 16:08 zmmaj

Please clear cookies or open in another browser. Then check for JavaScript errors.

sunhater avatar Aug 02 '14 16:08 sunhater

I was do that,,, Simple I have blank screen... your script was stuck on browser.php She do not know where is browser.php.. So I guest, you have problem with paths on real server. Your way to find where is script located was fail on some servers..

zmmaj avatar Aug 03 '14 17:08 zmmaj

when I fix that error ( in autoloader) I have next, similar.. all was related to wrong paths.

zmmaj avatar Aug 03 '14 17:08 zmmaj

try to make account to hostinghood.com than there install script and try... You will find all errors I talk about... :)

zmmaj avatar Aug 03 '14 17:08 zmmaj

This is a shared hosting. A single IP is used for many hostnames. It's impossible to browse your scripts using the shared IP address. Anyway I successfully installed KCFinder on this hosting and it works great (using its hostname, not the IP).

sunhater avatar Aug 06 '14 11:08 sunhater

I found this problem too.

I use http://localhost:8888/kcfinder/browse.php?opener=ckeditor&type=images&CKEditor=editor1&CKEditorFuncNum=1&langCode=en It's work

but i try

  1. http://mywork.uat:8888/kcfinder/browse.php?opener=ckeditor&type=images&CKEditor=editor1&CKEditorFuncNum=1&langCode=en
  2. http://127.0.0.1:8888/kcfinder/browse.php?opener=ckeditor&type=images&CKEditor=editor1&CKEditorFuncNum=1&langCode=en

And found this error on both url

nateetorn avatar Oct 25 '14 21:10 nateetorn

I found this problem too.

in localhost work, but using ip not work,

anybody have solution?

jordan095 avatar Oct 25 '16 04:10 jordan095

I got the same issue, how I can fix that? I just got blank screen when open my site with IP like 127.0.0.1

rohmanhm avatar Nov 28 '16 02:11 rohmanhm

Hi, I got this issue too. it works good on linux and MacOs but not windows. and I found that I comment this line($.$.kuki.domain = "config['cookieDomain']) ?>";) in tpl_javascript.php out and it works well. But I'm not sure if it's a good way to solve this problem.

Chien-Ching avatar Dec 19 '16 03:12 Chien-Ching

I can confirm that @Chien-Ching's suggestion solves the problem for me. I was also seeing a javascript error w.r.t. get(0), which has now disappeared. Judging from the fix I suppose there is a cookie being set, which was set to the wrong domain.

Using my own (remote) server: debian 9, apache, php7.0, https.

geez0x1 avatar Oct 15 '17 16:10 geez0x1

@Chien-Ching's fix solves the same problem for me too. Thank you!

Issues started a month after installing a Lets Encrypt SSL cert on the clients hosting, but may be unconnected.

webcatUK avatar Mar 04 '18 01:03 webcatUK

I tried on windows @Chien-Ching 's suggestion and more. It seems working well (chrome&fox). (So some features like sort do not work.)

070.setting.js Line53 // $('#order input[value="' + $.$.kuki.get('order') + '"]').get(0).checked = true; Line 72 // $('#view input[value="' + $.$.kuki.get('view') + '"]').get(0).checked = true;

djanzu avatar Jul 02 '19 04:07 djanzu