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?

Path issue in media component on windows server
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: Path issue in media component on windows server
#13890
Path issue in media component on windows server 6 Years, 5 Months ago Karma: 0
hello Edwin,
we are expiriencing a very strange issue with our latest slave implementation:
when uploading an image to the media component, the physical path to that image is additionally included into the path, which leads to a non visible image (wrong path).
Let me explain an example:

When I upload an image to that latest slave with the backend media manager, the upload is successful, but the image does not show up. In source code of the backend page, I see the following <img src=...> tag:

<img src="shop.wins.wien/images/wins.wien//C:/Webserver/httpdocs/XXXXX/XXXXX/httpdocs/images/wins.wien/kochbuch-titelseite.png" alt="kochbuch-titelseite.png - 681,03 kB" height="60" width="42">

Note the bolded part of that path, which should not be there anyway...

If I switch to another slave within the same master, and upload the very same image, it works as expected and I can see the following <img > tag:

<img src="it-solutions.schultz.ch/images/schultz.c...titelseite.png" alt="kochbuch-titelseite.png - 681,03 kB" height="60" width="42">

Again, this is within the same master installation, so the Joomla! media component is physically the same scripts. So I come to the conclusion that it somehow has to do with the JMS environment (though I am not certain of this).

A little background information:
Windows Server implementation, Apache 2.4, PHP 7.1.11, MariaDB 10.2, Joomla 3.8.2, JMS 1.3.70 basic
The slave installation I am talking about was created only within the last few weeks. All other installations within that master seem not to be affected by this issue - though I positively know this only for two or three of the implementations.

Do you have any idea what this could be about?
Kind regards
Ruediger
schultz
Junior Boarder
Posts: 31
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2017/11/16 11:33 By schultz.
The administrator has disabled public write access.
 
#13891
Re: Path issue in media component on windows server 6 Years, 5 Months ago Karma: 54
Can you compare your 2 slaves (the one that works and the one that fails) to see if the /images manage is both a symbolic link (short-cut on windows) or if this is a physical directory for the /images.

Does the slave sites use the same joomla template and when you said upload the image, perhaps that you are using JCE to insert the image inside an article ?

In general, the case where we encounter such kind of issue is due to the fact that some extension does NOT compute correctly the path because the use the php function realpath() to get the full path of a file on the disk.
When a symbolic link (or short-cut) is used, this function return the physical location of the file that can be different of the "document root" of the slave site.
In this case, the extension does not find a matching with the "document root" and keep the physical location on the disk.

So to fix that, it is required to identify the extension that call the realpath() function instead of using the "document root" related path.
edwin2win
Moderator
Posts: 5370
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#13897
Re: Path issue in media component on windows server 6 Years, 5 Months ago Karma: 0
Found the issue!!!!

in the media component options, the path to image directory and file directory ended with a /
that was it!

sorry for bothering you
have a good weekend
Ruediger
schultz
Junior Boarder
Posts: 31
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#13903
Re: Path issue in media component on windows server 6 Years, 5 Months ago Karma: 54
Thank you for the feedback that may help other people with a similar issue.
Have a good week-end too.
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