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?
Go to bottomPage: 1
TOPIC: images not working correctly
#1133
images not working correctly 15 Years, 5 Months ago Karma: 0
I was trying to deploy a slave from a master to a slave which ist reachable from a subdomain.

However everything seems to work, except the pictures and urls to other files.

In backend entering the media-manager i can upload the picture to /stories which is viewable by ftp but not by entering an URL.

It seems, that by entering the url of the picture - the request refers to the master www.master.com/... - site instead of the slave, subdomain.master.com/images/stories/pic.jpg

Using symbolic links, creating new media-folders in a new folder:
/webroot/master
/webroot/slave

SEF Urls in Joomla, but this should not matter.

Can you help me in that? Is this a common error/bug?
barolo
Fresh Boarder
Posts: 6
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2009/07/01 23:38 By barolo.
The administrator has disabled public write access.
 
#1134
Re:images not working correctly 15 Years, 5 Months ago Karma: 54
Which version of JMS 1.1.x are you using.
The latest version is JMS 1.1.23.

A similar description has been solved in JMS 1.1.17.
So if your JMS has a version < 17, update it using the procedure in the FAQ
/faq#sec-122

See also FAQ /faq/change-history-v11x
For the history of fixes.
edwin2win
Moderator
Posts: 5370
graph
User Offline Click here to see the profile of this user
Last Edit: 2009/07/02 00:20 By edwin2win.
The administrator has disabled public write access.
 
#1139
Re:images not working correctly 15 Years, 5 Months ago Karma: 0
I have the newest Version:
Joomla Multi Sites version: 1.1.23
Patches definition version: 1.1.11

Looking for the FAQs, any hints though?

The path (not URL) is working correctly.
The URL, when using Joomla seems to work fine.
The URL to a file (e.g: images) are looking for the image in the master URL, this makes sense becaus my Vhost is set to the master dir.

Try yourself:
http://hebc.ligakultur.de/images/stories/hebc-logo_170x1701.jpg
leads to the master image-folder, the picture is uploaded but in the slaves images folder

http://hebc.ligakultur.de/images/stories/clock.jpg
leads to the master images folder as well, and this one is in the masters folder but not in the slaves folder.

Another crosscheck: replace hebc with www.

Tried also to do this without -htaccess = same result
I am lost here.

Chris
barolo
Fresh Boarder
Posts: 6
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2009/07/02 12:26 By barolo.
The administrator has disabled public write access.
 
#1148
Re:images not working correctly 15 Years, 5 Months ago Karma: 54
Without a full access on your server to add debuging traces into the sources, I can not tell you why.

Try to give me a procedure that could allow me reproduce the problem.
edwin2win
Moderator
Posts: 5370
graph
User Offline Click here to see the profile of this user
Last Edit: 2009/07/02 20:44 By edwin2win.
The administrator has disabled public write access.
 
#1163
Re:images not working correctly 15 Years, 5 Months ago Karma: 0
hm, but we are talking about a simple http-request.

This is rather a apache thing not a JMS/PHP or Joomla thing.
I wonder if this has to be set in the htaccess or something.

My vHost-config is done as i understand the docu:
hebc.ligakultur.de (slave) and www.ligakultur.de (master) are set to go to the master directory: /www/ligakultur

It sounds logical tht a http-request on [slave-url]/images/img.png is seaching for the masters dir and not the slave dir.
Hm, am I right with that?
Or other question: How should a HTTP-request is handled normaly?

Chris
barolo
Fresh Boarder
Posts: 6
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2009/07/03 19:12 By barolo.
The administrator has disabled public write access.
 
#1165
Re:images not working correctly 15 Years, 5 Months ago Karma: 54
I have sent you an email yesterday to who you have not replied.
I don't know the reason.
If you want that I assist you, reply to my email and send me the information to allow me debug your case.

I don't know what you have put in your environment that may cause this problem.
This is the first time that somebody report that with JMS 1.1.23.

Normally, you don't have to touch to anything (vhost, htaccess, ....)

You have to first check if you have a correct path and a correct URL.
Use for example the hello world procedure to ensure that you have the access to the correct directory and that you have the correct permission.
Also it is necessary to check the files and folders creation to know if they are physical files and folders or symbolic links.


The processing how HTTP request is handled normally is completly explained in the video present in the tutorial step 0.
All the concept is there.

In summary, when you enter an URL, your browser first try to retreive the IP address based on the domain name using the DNS server.
Once it has the IP address, it contact the server located on the port 80.
In your case this is apache.
In apaches, you have defined a virtual host with the domain name and a documentroot path.
The documentroot path is either the master website directory or a specific directory.
Based on the path present in the apaches, you have to setup JMS to use this documentroot directory.
When you define the slave site and that the apaches documentroot is the master website directory, you have to let the "deploy folder" empty.
Otherwise you have to enter in JMS the full path corresponding the documentroot that you have specified in apaches.

So when the URL request arrive to the appropriate directory, JMS take finally the hand and parse the URL like apaches to perform the appropriate database connection into joomla. When this is done, joomla can continue to work.

So JMS is like an application that is between apaches and joomla.

All that is explained in the video.
edwin2win
Moderator
Posts: 5370
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 1
get the latest posts directly to your desktop
2Win, Multisite(s) are trademarks of Edwin2Win.
Joomla