You are not logged in.

  • Index
  •  » Support
  •  » Problem clicking image in imagemanager browser

#1 2007-07-06 12:22:17

pyrat
Member
Registered: 2007-07-06
Posts: 6

Problem clicking image in imagemanager browser

Hi,

I can upload images and create directories but cannot click on the image to add the path to the add image dialog.
I have taken two screenshots, it looks as though it might be something to do with my config but I am not sure.

If you look at the first screenshot the value {0}/  is in there. Is this correct?

http://farm2.static.flickr.com/1142/736 … 919a_o.jpg

http://farm2.static.flickr.com/1363/736 … 83cb_o.jpg

Thank you very much for your help. Hopefully it is just a configuration issue!

Thanks,
Alastair

Offline

 

#2 2007-07-06 13:11:01

pyrat
Member
Registered: 2007-07-06
Posts: 6

Re: Problem clicking image in imagemanager browser

I have upgraded to 3.02 and now the second screenshot is irrelevant. The behaviour now is such that the wrong path is passed to the insert/edit image dialog. The path passed does not resemble the true path at all.

In for the left image the value passed is ../.. and for the right image it is {base_url}pg where base_url is the base url of the site.

Hopefully this gives you a little more information.

Many thanks,
Alastair

Offline

 

#3 2007-07-06 13:18:28

spocke
Administrator
From: Sweden, Skellefteċ
Registered: 2004-11-25
Posts: 11253
Website

Re: Problem clicking image in imagemanager browser

Set the {0} is in there when encrypt paths is enabled. This is a security option that can be disabled if you like.


Best regards,
Spocke - Main developer of TinyMCE

Offline

 

#4 2007-07-06 13:52:29

pyrat
Member
Registered: 2007-07-06
Posts: 6

Re: Problem clicking image in imagemanager browser

Thanks, that makes sense.

I have turned off encrypted paths. But the problem remains. When I click on each image to add - both in the same directory one gives me ../../  and the other gives me http://coredev.ifodev.co.ukpg

Do you have any suggestions why this path translation is failing?

Many thanks,
Alastair.

Offline

 

#5 2007-07-06 14:17:25

spocke
Administrator
From: Sweden, Skellefteċ
Registered: 2004-11-25
Posts: 11253
Website

Re: Problem clicking image in imagemanager browser

It could be that the preview.wwwroot needs to be configured. Sometimes it can not resolve it automatically.


Best regards,
Spocke - Main developer of TinyMCE

Offline

 

#6 2007-07-06 15:18:52

pyrat
Member
Registered: 2007-07-06
Posts: 6

Re: Problem clicking image in imagemanager browser

Hi,

I have now set the preview.wwwroot and unfortunately it does not make any difference. I still have the same behaviour.
Is there anything else that I can try?

Cheers,
Alastair.

Offline

 

#7 2007-07-06 16:09:58

spocke
Administrator
From: Sweden, Skellefteċ
Registered: 2004-11-25
Posts: 11253
Website

Re: Problem clicking image in imagemanager browser

preview.wwwroot is the key. Make sure that it's set correctly like c:/inetpub/wwwroot or /var/www

Check this page for details.
http://wiki.moxiecode.com/index.php/MCI … ew.wwwroot


Best regards,
Spocke - Main developer of TinyMCE

Offline

 

#8 2007-07-06 18:14:04

pyrat
Member
Registered: 2007-07-06
Posts: 6

Re: Problem clicking image in imagemanager browser

Hi Spocke,

Thanks for your help I think it is definitely an issue with paths. Still having problems however.
I am deploying my application with capistrano, am I correct in thinking that there is problems with the connector using symlinks?

The folder layout I have is as shown in the image.

http://farm2.static.flickr.com/1179/738 … d44f_o.jpg

The public folder which is in the directory myapp/current/ is the wwwroot
Have you had path issues with people using capistrano in the past?

Thanks for your help,
Alastair.

Offline

 

#9 2007-07-06 21:33:41

spocke
Administrator
From: Sweden, Skellefteċ
Registered: 2004-11-25
Posts: 11253
Website

Re: Problem clicking image in imagemanager browser

Yes, there has been issues with symlinks before. You need to specify the real paths not the symlink ones. I think I managed to resolve most of these problems in 3.0.2. But I guess there is still things in there.


Best regards,
Spocke - Main developer of TinyMCE

Offline

 

#10 2007-07-11 10:03:01

pyrat
Member
Registered: 2007-07-06
Posts: 6

Re: Problem clicking image in imagemanager browser

Solved:

If using capistrano and you have a symlinked shared directory which exists between deployments.
set preview.wwwroot to /var/www/apps/application/shared/
and filesystem.tootpath to /var/www/apps/application/shared/system

(assuming you want to save files in system).

This avoids the symlinks and allows tinymce to translate the paths properly.

Last edited by pyrat (2007-07-11 10:04:26)

Offline

 
  • Index
  •  » Support
  •  » Problem clicking image in imagemanager browser

Board footer

Powered by PunBB
© Copyright 2002–2008 PunBB