We get complaints from our clients that ckfinder does not load for them. Sometimes using a different browser works or deleting their temporary internet files. Other times nothing they do solves the problem. I'm running v2.1 via php.
Happened to happen to me one day and I received the following javascript error. I closed my browser and reopened and then it started working again.
Here's what I use in the body of the page to call ckfinder
What causes this error and how do we stop it from coming up?
Happened to happen to me one day and I received the following javascript error. I closed my browser and reopened and then it started working again.
SCRIPT5: Access is denied. ckfinder.js, line 7 character 41335 D.push(new j(a.oC.getWindow().$.opener.document));
Here's what I use in the body of the page to call ckfinder
<?php $_SESSION['IsAuthorized'] = true; //for allowing access to ckfinder unset($_SESSION['CKFinder_UserRole']); //if not authorized due to session, show the message. if ($_SESSION['IsAuthorized'] != true) { echo "Not authorized"; } else { ?> <script type="text/javascript"> // This is a sample function which is called when a file is selected in CKFinder. function showFileInfo( fileUrl, data ) { var msg = 'The selected URL is: <u><a href="' + fileUrl + '">' + fileUrl + '</a></u><br /><br />'; // Display additional information available in the "data" object. // For example, the size of a file (in KB) is available in the data["fileSize"] variable. if ( fileUrl != data['fileUrl'] ) msg += '<b>File url:</b> ' + data['fileUrl'] + '<br />'; msg += '<b>File size:</b> ' + data['fileSize'] + 'KB<br />'; //msg += '<b>Last modifed:</b> ' + data['fileDate']; // this = CKFinderAPI object this.openMsgDialog( "Selected file", msg ); } // You can use the "CKFinder" class to render CKFinder in a page: var finder = new CKFinder(); // The path for the installation of CKFinder (default = "/ckfinder/"). finder.basePath = '../../'; // This is a sample function which is called when a file is selected in CKFinder. finder.selectActionFunction = showFileInfo; //finder.selectActionFunction = SetFileField; finder.create(); // It can also be done in a single line, calling the "static" // create( basePath, width, height, selectActionFunction ) function: // CKFinder.create( '../../', null, null, showFileInfo ); // The "create" function can also accept an object as the only argument. // CKFinder.create( { basePath : '../../', selectActionFunction : showFileInfo } ); </script> <?php } ?>
What causes this error and how do we stop it from coming up?
Re: Users see js error
If anyone is able to provide the details set of steps to reproduce this problem, please post it here. Thanks!
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Re: Users see js error