• Resolved Romrayster

    (@romrayster)


    Hi,

    I have a wordpress Multisite installation. The Plugin and htaccess seem to be installed fine. If I for example open this page:
    Page
    the image gets resized correctly.
    However if I open the main page (https://xn--die-exklusiven-gartenmbel-ksc.de/) in Chrome Developer or as suggested here:
    Webtest
    the full images rather than the resized one get loaded.

    I thought that it might be a problem with the cookie, because I use the BWP Minify Plugin, however, putting this script in the head, had no result:
    <script>document.cookie='resolution='+Math.max(screen.width,screen.height)+'; path=/';</script>

    Any suggestions what I am doing wrong?
    As well, opening just the image, not the homepage, serves the right file, e.g. the file gets resized. It only doesn’t work if I open a normal page.

    https://www.ads-software.com/plugins/adaptive-images/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Takis Bouyouris

    (@nevma)

    Hello, there,

    Very sorry for replying so late, I will try to do my best!

    Now, first of all, multisite installations are not yet officially supported by our plugin, because of the special circumstances of the /wp-content folder there, but yours is a very interesting case that I would love to debug.

    From debug links like https://die-exklusiven-gartenm?bel.de/wp-content/uploads/sites/7/2016/06/Slider_Conic_01.png?resolution=640,3 and https://die-exklusiven-gartenm?bel.de/wp-content/uploads/sites/7/2016/06/Slider_Conic_01.png?debug=true it seems that our plugin is active and working. That is a good start!

    However, it seems that the necessary resolution cookie -as you have correctly noticed- is not available. Also, I do not see any cookies being sent by your domain at all. Are they somehow disabled or stripped away? I am not sure if this is because of BWP, because I do use this plugin almost everywhere. But the bottom line is the same: no cookies are there! Have you any idea why?

    Cheers,
    Takis

    Thread Starter Romrayster

    (@romrayster)

    Hi,
    thank you for your response. I figured out the problem myself. The problem was with the DomainMapping Plugin.

    Since I have a multisite installation, I wanted to map certain sites to certain domains.
    For example in this case the initial Site URL was:
    https://wordpress.gartenhaus-wohnkultur.de/wohnkultur-cane-line/
    and it was mapped to https://die-exklusiven-gartenm?bel.de
    I mapped the URL correctly with the plugin, however I forgot to change the site URL from wordpress.gartenhaus-wohnkultur.de/wohnkultur-cane-line/ to https://die-exklusiven-gartenm?bel.de

    Therefore the files on the homepage were served through the old url and not the new one, so it was:
    https://wordpress.gartenhaus-wohnkultur.de/wohnkultur-cane-line/wp-content/uploads/sites/7/2016/06/Slider_Conic_01.png

    and not
    https://die-exklusiven-gartenm?bel.de/wp-content/uploads/sites/7/2016/06/Slider_Conic_01.png
    as it was supposed to be.

    I as well had to change the URL with certain plugins, in my case the Huge IT Slider, since some urls for media were not changed automatically with the site url.

    After that, the plugin worked correctly.

    Plugin Author Takis Bouyouris

    (@nevma)

    I am very glad things worked out well!

    Let me know if you need anything else in the future.

    Cheers,
    Takis

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Not serving the right files’ is closed to new replies.