• Resolved Tatichka

    (@tatichka)


    Hello,

    For security reasons, I put a .htaccess in my blogs.dir folder to protect the access to my images with the full URL (wp-content/blogs.dir/idblog/files/…) since I am using the ms-files to serve the images.

    When I activate Events Manager on one of my blogs (I am running WP 3.5 MU) the image suddenly are called with the full URL, so I have my pop-up window requiring logging. Can you tell me if it possible to change that?

    I am using Events Manager 5.3.7.

    Thanks

    http://wordpress.org/plugins/events-manager/

Viewing 14 replies - 1 through 14 (of 14 total)
  • Hiya,

    I’m not fully understanding what the issue here is I’m afraid – could you clarify exactly what your .htaccess does and how EM is intefering?

    Thanks!
    Phil

    Thread Starter Tatichka

    (@tatichka)

    Hello Philipjohn,

    I should have started with the beginning.
    I am managing a WP Multisite platform in my company, and my platform is currently protected with a custom authentication (based on FEDID and simplesamlphp). But with this kind of authentication, my images are still accessible if the user uses the full path to the file (wp-content/blogs.dir/blogid/files…). So in order to counteract this, I added a .htaccess/.htpasswd to the blogs.dir folder.

    So basically, when the plugin is not active, all is fine. But when I activate it, it seems that the image that I uploaded on my blog are being called with their full path – so I get my login pop-up window when charging the page.

    Any idea why ?

    Just to clarify: when you upload images via Events Manager the login windows appears?

    Does this happen when you upload images using the standard WordPress post interface?

    Thread Starter Tatichka

    (@tatichka)

    No, not when I upload image, but when I charge the page !

    The images are already uploaded. I am not trying to upload one, only to visit my blog.

    Got you.

    Do you have the same problem when viewing pages / posts that have images that have been uploaded with the normal Edit Post / Page options?

    Sounds like you’d need to change where uploaded images are saved, so that they’re stored outside of the folder protected by the .htaccess file.

    Thread Starter Tatichka

    (@tatichka)

    Hello,

    Sorry for the delay, I was away for the month.

    The problem is not related to the .htaccess files or the directory I’m saving my images in (it’s the default one under wp-content/blogs.dir/idblog/files…) but the way the plugin changes the path when activated.

    On one blog, where Events manager is not activated, the media info displays the file URL as follow
    http://blog.domain.com/myblog/files/2013/09/banner1-FR.jpg

    and on the blog where Events manager is activated
    http://blog.domain.com/myblog/wp-content/blogs.dir/33/files/2013/09/banner1-FR.jpg

    So it appears your plugin changes the way media files are called in WordPress.
    Could you please tell me how to fix it ? Or is there a workaround ?

    Thanks you

    Can you elaborate on exactly where EM is calling http://blog.domain.com/myblog/wp-content/blogs.dir/33/files/2013/09/banner1-FR.jpg please?

    It feels like we’ve not got a full picture. Rather than explain your setup, can you go through, step-by-step, how to get to the issue on your site?

    Thanks

    Thread Starter Tatichka

    (@tatichka)

    Hello philipjohn,

    OK let’s take this from the beginning.

    When I activated the plugin Events Manager, all the images on my blog couldn’t be displayed because they weren’t being loaded with this type of path http://blog.domain.com/myblog/files/2013/09/banner1-FR.jpg but instead with this one http://blog.domain.com/myblog/wp-content/blogs.dir/33/files/2013/09/banner1-FR.jpg.

    Normally, this wouldn’t have been a problem, but since I added a .htaccess on my blogs.dir folder to restrict its access, images couldn’t be displayed.

    I checked on the Chrome console, and I can see the difference in the path between a blog where EM is activated, and another one where it’s not.

    I know this is not a issue for most of the users, since they don’t have the protection on the blogs.dir folder, but could you tell me where to change this ? I had a look at pretty much all the scripts in your plugin, but without any chance.

    Thanks for helping me 🙂

    Thread Starter Tatichka

    (@tatichka)

    So simply, the issue arises whenever I am trying to load a page on my blog where there is a picture.

    I think the only solution here would be to edit your htacess file to deny all requests except those coming from the domains you specify.

    Thread Starter Tatichka

    (@tatichka)

    Addind my domain wouldn’t solve my problem, since the requests come from this domain.

    I am sure there is somewhere in EM scripts a line where the media URL is set with the “wrong” function..

    Plugin Support angelo_nwl

    (@angelo_nwl)

    how about trying to upgrade to EM 5.5.2 and see if this resolves the issue?

    Thread Starter Tatichka

    (@tatichka)

    I updated the plugin, without any luck…

    Hiya,

    I’ve tried this myself on a clean WP Multisite and I do not get any difference in the paths to images.

    Are you sure there are no other plugins, or your theme, that is interfering?

    Thanks

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘Events Manager changing how the pictures are requested’ is closed to new replies.