Hello,
I'm using CKFinder for a Drupa 7 website. Linux environment.
When I upload an image, I'm getting an extra / in the file path
i.e. //images/image_filename.jpg
I checked my .htaccess and it's ok. Also, there is no trailing slash set in your base url in my settings.php.
Any ideas?
Thx-in-Advance,
John
I'm using CKFinder for a Drupa 7 website. Linux environment.
When I upload an image, I'm getting an extra / in the file path
i.e. //images/image_filename.jpg
I checked my .htaccess and it's ok. Also, there is no trailing slash set in your base url in my settings.php.
Any ideas?
Thx-in-Advance,
John
Re: Extra / in CKFinder file path
What are you using for these settings in your config.php file:
$baseUrl
$baseDir
$config['AccessControl']
$config['ResourceType']
Be Well,
Joe
Re: Extra / in CKFinder file path
Here are the settings in the CKFinder config.php file:
$baseUrl = '/ckfinder/userfiles/';
$baseDir = resolveUrl($baseUrl);
require_once '../../../../includes/filemanager.config.php';
$config['AccessControl'][] = Array(
'role' => '*',
'resourceType' => '*',
'folder' => '/',
'folderView' => true,
'folderCreate' => true,
'folderRename' => true,
'folderDelete' => true,
'fileView' => true,
'fileUpload' => true,
'fileRename' => true,
'fileDelete' => true);
$config['ResourceType'][] = Array(
'name' => 'Files', // Single quotes not allowed
'url' => $baseUrl . 'files',
'directory' => $baseDir . 'files',
'maxSize' => 0,
'allowedExtensions' => '7z,aiff,asf,avi,bmp,csv,doc,docx,fla,flv,gif,gz,gzip,jpeg,jpg,mid,mov,mp3,mp4,mpc,mpeg,mpg,ods,odt,pdf,png,ppt,pptx,pxd,qt,ram,rar,rm,rmi,rmvb,rtf,sdc,sitd,swf,sxc,sxw,tar,tgz,tif,tiff,txt,vsd,wav,wma,wmv,xls,xlsx,zip',
'deniedExtensions' => '');
$config['ResourceType'][] = Array(
'name' => 'Images',
'url' => $baseUrl . 'images',
'directory' => $baseDir . 'images',
'maxSize' => "16M",
'allowedExtensions' => 'bmp,gif,jpeg,jpg,png,avi,iso,mp3',
'deniedExtensions' => '');
$config['ResourceType'][] = Array(
'name' => 'Flash',
'url' => $baseUrl . 'flash',
'directory' => $baseDir . 'flash',
'maxSize' => 0,
'allowedExtensions' => 'swf,flv',
'deniedExtensions' => '');
Thanks,
John
Re: Extra / in CKFinder file path
I set up a Drupal install to look at this further, but I'm having a problem myself.
If I comment out loading the filemanager file:
require_once '../../../../includes/filemanager.config.php';
I'm able to use the file browser window and do direct uploads and the paths look good on both.
But when I use the filemanager file, I get the empty "System Error" alert box. That usually means a path problem. I'm not sure if the problem is with the filemanager file or one of the many URL and Directory paths you need to enter during the set up process. I'll let you know if I'm able to duplicate your problem.
Be Well,
Joe
Re: Extra / in CKFinder file path
When I remove the extra / the image path looks like this:
http://www.irapropertymaster.com/images/image_name.jpg
If I don't remove the extra / the image path looks like this:
http://images/image_name.jpg
Here is the test page without the image path fixed:
http://www.irapropertymaster.com/test.htm
Re: Extra / in CKFinder file path
Hi,
here is topic with the same problem http://drupal.org/node/1173294. Please follow it.
Re: Extra / in CKFinder file path
Sorry I wasn't able to help John.
Be Well,
Joe
Re: Extra / in CKFinder file path
I don't have the trailing /
Re: Extra / in CKFinder file path
Hi John,
I thought the bug was being worked on, but when I looked again, I saw that it said:
Assigned: Unassigned
Status: needs work
Apparently it's a bug that appeared after ckeditor 7.x-1.2 was released at the end of March.
I would suggest rolling back to ckeditor 7.x-1.1, you can download it here:
http://drupal.org/node/606034/release
Another approach would be to roll back the actual CKEditor or CKFinder code, you can get previous releases here:
http://ckeditor.com/download/releases
http://ckfinder.com/download/releases
Let me know version combination ends up working.
Be Well,
Joe
Re: Extra / in CKFinder file path
Re: Extra / in CKFinder file path
Good to know that it's being worked on.
I suggested that John roll back because I was thinking that he was already using 7.x.1.3 (his original post was on Sept 3rd, after 1.3 was released).
John,
If you haven't tried using 7.x.1.3, I would suggest trying that before rolling back to an earlier version.
Joe