Reputation: 1125
I have configured my CKFinder standalone but I keep getting
Folder not found. Please refresh and try again.
What could I have done wrong?
I ensured my CheckAuthentication()
works fine. My $baseUrl
is also intact and I tested on my browser to ensure the created folders are accessible. My File Permissions are set to 0755 for folders
and 0777 for filess
I need a helping hand to figure out what could be wrong.
Upvotes: 1
Views: 6307
Reputation: 61
url - ckfinder/config.php
in this config.php file go to this
$config['backends'][] = array(
'name' => 'default',
'adapter' => 'local',
'baseUrl' => 'https://example.com/ckfinder/userfiles/',// here write full path of your site address to folder ckfinder. that its "its work form me."
// 'root' => '', // Can be used to explicitly set the CKFinder user files directory.
'chmodFiles' => 0777,
'chmodFolders' => 0755,
'filesystemEncoding' => 'UTF-8',
);
Upvotes: 0
Reputation: 31
You can edit config.php of ckfinder
// Development
// error_reporting(E_ALL);
// ini_set('display_errors', 1);
Edit into
// Development
error_reporting(E_ALL);
ini_set('display_errors', 1);
To know where the error is. This is my configuration section you can refer to. The server I use is Linux Ubuntu.
$config['backends'][] = array(
'name' => 'default',
'adapter' => 'local',
'baseUrl' => '/files/',
// 'root' => '', // Can be used to explicitly set the CKFinder user files directory.
'chmodFiles' => 0777,
'chmodFolders' => 0755,
'filesystemEncoding' => 'UTF-8',
);
Please chmod ckfinder folder to 777 It looks like the file directory is not created, so create the files folder and chmod 777 for it. My was active.
Upvotes: 1
Reputation: 5020
In my case, I got the solution by setting permission in Ubuntu as follows:
sudo chmod -R 777 /var/www
And the config of ckfinder/config.php
as follows:
$config['backends'][] = array(
'name' => 'default',
'adapter' => 'local',
'baseUrl' => 'http://localhost/dmc-burn/upload/ckfinder/userfiles/',
// 'root' => '', // Can be used to explicitly set the CKFinder user files directory.
'chmodFiles' => 0777,
'chmodFolders' => 0755,
'filesystemEncoding' => 'UTF-8',
);
Upvotes: 0
Reputation: 21
CKEditor Image Upload issue:
Issue1: When click on the Browse Server Button, it shows the alert as "Folder not found. Please refresh and try again."
Issue2: In the Upload tab, After choose the image file then click Send it to the server button, it shows the alert as "It was not possible to complete the request due to file system permission restrictions."
Solution1: Open filemanager.config.php:
change this below line
$_SESSION['ckeditor']['UserFilesAbsolutePath'] = $_SESSION['ckeditor'][$_GET['id']]['UserFilesAbsolutePath'];
to
$_SESSION['ckeditor']['UserFilesAbsolutePath'] = '/var/www/html/domain/sites/subdomain/files/';
Solution2: Open ckediotr.lib.inc:
change this below line
$_SESSION['ckeditor'][$profile_name]['UserFilesAbsolutePath'] = strtr($profile->settings['UserFilesAbsolutePath'], array("%f" => variable_get('file_public_path', conf_path() . '/files'), "%u" => $user->uid, "%b" => base_path(), "%d" => ckeditor_get_document_root_full_path(), "%n" => $user->name));
to
$_SESSION['ckeditor'][$profile_name]['UserFilesAbsolutePath'] = strtr($profile->settings['UserFilesAbsolutePath'],
array("%f" => variable_get('file_public_path', conf_path() . '/files'), "%u" => $user->uid, "%b" =>**'/domainname/'**, "%d" => ckeditor_get_document_root_full_path(), "%n" => $user->name));
That's it.
Upvotes: 1
Reputation: 5093
I changed into the ckfinder/config.php
file $baseDir = $_SERVER['DOCUMENT_ROOT'].'/web/app/webroot/files/ckFinderFiles/';
variable & that did the trick
Upvotes: 1
Reputation: 1125
After months of research and reworks, I understood that with the way CKFinder requests for files, doing a rewrite will halt it's operation in some ways like I experienced which they after all my emails could not say or resolve.
To this end, if you did a rewrite and and ran into issues like
Folder not found. Please refresh and try again.
best bet is to simply turn off your rewrite rule in the CKFinder's folder
RewriteEngine Off
That simply solved my problem.
Upvotes: 1