TwistedInteractive / ckeditor

Symphony CMS extension that provides the CKEditor WYSIWYG editor for text fields.
http://symphony-cms.com/download/extensions/view/35082/
Other
19 stars 24 forks source link

File browser not working. #43

Open dionsnoeijen opened 10 years ago

dionsnoeijen commented 10 years ago

Hi,

I have a section for the files. But it's not working.

When I try to create the entry for the image in the filebrowser I get this error: Afbeelding /​workspace/​uploads/​images/[​object ​File]​ The file uploaded is no longer available. Please check that it exists, and is readable.

When I create the entry with the image directly the entry submits. But in the filebrowser the images don't show up. Using the image anyway results in a wrong path.

I will check what's going on, if I find anything I will let you know. If you know what's going on I would love to hear about it :)!

bernardodiasc commented 10 years ago

Sorry for the rush, but please check is some PR on https://github.com/TwistedInteractive/ckeditor/pulls fix your issue.

dionsnoeijen commented 10 years ago

Thanks!

This fixes: The thumbnail is visible in the filebrowser.

This doesn't fix: Creating an image from the filebrowser gives the following error: Afbeelding /​workspace/​uploads/​images/[​object ​File]​ The file uploaded is no longer available. Please check that it exists, and is readable.

This doesn't fix: Image paths are incorrect. Something like: /workspacede-tuttebellen.jpg is the result.

dionsnoeijen commented 10 years ago

Ok, fixed it. I had to change this:

Around line 82:

$value = '<a href="/workspace'.preg_replace('/\/workspace/','',$destination,1).'/'.$info['file'].'">';

Thanks man, awesome extension!

dionsnoeijen commented 10 years ago

Woops, no. Never mind. Forgot to delete line 77! The answer is in the link you gave to me!

bernardodiasc commented 10 years ago

Awesome. Indeed its a great extension. It's unmaintained, that's why various fixes are still on PRs...

Good job on fixing :+1: