English (United Kingdom)
Jms Multi Site, formerly joomla multisite.
Create, share multiple joomla sites in few clicks !
Message
  • EU e-Privacy Directive

    This website uses cookies to manage authentication, navigation, and other functions. By using our website, you agree that we can place these types of cookies on your device.

    View e-Privacy Directive Documents

Welcome, Guest
Please Login or Register.    Lost Password?

JCE Editor: uploaded images location
(1 viewing) (1) Guest
Go to bottomPage: 12
TOPIC: JCE Editor: uploaded images location
#885
JCE Editor: uploaded images location 14 Years, 11 Months ago Karma: 0
Hello All

I need to have a different "uploaded images" directory for each slave.

In some modules/plug-ins I managed to fix it by configuring them to use a special directory named "multimedia" and configuring the JMS template to copy the master's one.

I found JCE uploads the images to "images/stories" but "images" is a link to the master's one.

Found "images/stories" directory is defined in the JCE's admin area:

a) Click on Components/JCE Administration
b) Click on the Groups link
c) Click on a group called "Front End"
d) Click on the "Editor Parameters" link
e) Look for something like "Directory Archive path" (I'm translating it from spanish: "Ruta del Directorio del Archivo" )

So, I just changed that value to: multimedia/JCEstories, then, recreated the slaves.

If I go to a slave site, and upload an image, it uploads it to the "master's" multimedia directory, instead of the "slave's" one. Weird.

I mean, instead of uploading to:
/path/to/slave/multimedia/JCEstories
it uploads the image to
/path/to/master/multimedia/JCEstories

So, looking for an answer, I found here is some reference to the images locations.
... and normally, you should let the image and Media folder in
- images
and
- images/stories

In your case, I have saw that you have specfied another directory for the image and media folder.
In addition, I suspect that you have link on the image and media folder.

The problem is that "images" is created as a link to the master's one, and if I go to the JMS template's "Folders and Files" configuration, Besides the "images" directory I only find " special: Copia especial "(special copy, or something like that)

It's readonly, can't change it.

Have someone else noticed this?
Do someone has any idea on how to fix this?

Thank's in advance.

Ely.
elysch
Fresh Boarder
Posts: 4
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2009/05/15 16:11 By elysch.
The administrator has disabled public write access.
 
#886
Re:JCE Editor: uploaded images location 14 Years, 11 Months ago Karma: 54
Which version of JMS are you using ?
Is it >= 1.1.17 ?

In general, when Symbolic Link is allowed, it is better to deploy the slave site into a specific directory and keep the same name than standard Joomla (images, media, ...)
/path/to/slave/image/stories
it uploads the image to
/path/to/master/images/stories

If you want to have some directory specific, just re-endter the value images, ... as they are provided by default in Joomla.
This will replicate the directory with exactly the same name.

The element that you also have to check is :
- Does this problem occurs from the front-end or only from the back-end ?

Check also that you have provide a value in the image and media folder (JMS) when creating the slave site (event when identical). This avoid to create a link and replicate the directory.

Check also that the directories are not a link.
edwin2win
Moderator
Posts: 5370
graph
User Offline Click here to see the profile of this user
Last Edit: 2009/05/15 16:26 By edwin2win.
The administrator has disabled public write access.
 
#887
Re:JCE Editor: uploaded images location 14 Years, 11 Months ago Karma: 0
Which version of JMS are you using ?
Is it >= 1.1.17 ?

The zip I received says: 1.1.18

In general, when Symbolic Link is allowed, it is better to deploy the slave site into a specific directory and keep the same name than standard Joomla (images, media, ...)
Yes, they are created in a single directory, and I didn't change joomla's images and multimedia configuration.

The element that you also have to check is :
- Does this problem occurs from the front-end or only from the back-end ?

It occurrs from the front end. The slave administrators currently can only access the site from the front end.

Check also that you have provide a value in the image and media folder (JMS) when creating the slave site (event when identical). This avoid to create a link and replicate the directory.
ohhh... I didn't know. Those values where empty.

I defined them just like they are in joomla by default, and yes, the "images" directory is no longer a link.

Sadly, the images are uploaded to the same directory as before, the "master's" one.

I couldn't find where the path is used in the JCE code. I wanted to hack it.

Any ideas?

Thank's a lot.

Ely
elysch
Fresh Boarder
Posts: 4
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#889
Re:JCE Editor: uploaded images location 14 Years, 11 Months ago Karma: 54
There is no hack required.

If you have updated you slave site definition, JMS will have not converted the potential exisiting Symbolic link for the image and media into a real directory.

If you want to have specific image and media folder, you have to check with and FTP tool or SSH or whatever that the folders are not a link.
You also have to enter values in the slave site defintioin otherwise it will be a link and therefore share the same image and media folder.
edwin2win
Moderator
Posts: 5370
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#891
Re:JCE Editor: uploaded images location 14 Years, 11 Months ago Karma: 0
Hello Edwin.

What I did, is I deleted the slaves (including database) and re-created them. Then I went there via SSH, and found that "images" was no longer a link, in the slaves.

To be sure, I did:

ls images/stories/*ely* slaves/slave01/images/stories/*ely*

And it returned nothing, but an error saying both files didn't exist

Then I jumped to slave01.example.com/ and verified it had the correct site name (is different from the master one) So I'm sure I'm in the slave.

And also tested some other modules to verify I'm on the slave database.

Clicked to add a new article, then uploaded the image with JCE named "PRUEBASaaaaaa01ely.jpg".

ran again the "ls" command, as before, and found:

-------------------------
[root@...]# ls images/stories/*ely* slaves/slave01/images/stories/*ely*
ls: slaves/slave01/images/stories/*ely*: No such file or directory
images/stories/PRUEBASaaaaaa01ely.jpg
------------------------

(Couldnt use the forum tag "code" and "/code", because didn't show the line breaks)

So... it uploaded the file to the wrong directory... the master's one.

Any ideas why or where to investigate?

Ely.
elysch
Fresh Boarder
Posts: 4
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#897
Re:JCE Editor: uploaded images location 14 Years, 11 Months ago Karma: 54
Here it is a sample of values to create "slave1" having a specific image and media folder when Symbolic Link is allowed.

Site ID = slave1
Domain = {site_url}/multisites/slave1
Template = Select a template to replicate or the master DB
deploy directroy = {site_dir}
media folder = images
image folder = images/stories

This will use the /multisites/slave1 directory and create inside a copy of the images folder (not a link).
As the root URL of this slave is the {site_url}/multisites/slave1, this also mean that images will be the children of the slave1.

This is the method used by many customers and it works.
The idea is to keep the same name than the default one used by Joomla an not try providing another one like "ely" one.
edwin2win
Moderator
Posts: 5370
graph
User Offline Click here to see the profile of this user
Last Edit: 2009/05/16 21:47 By edwin2win.
The administrator has disabled public write access.
 
Go to topPage: 12
get the latest posts directly to your desktop
2Win, Multisite(s) are trademarks of Edwin2Win.
Joomla