• Resolved danaiscool

    (@danaiscool)


    Hi,

    Have just upgraded the plugin and now I am getting an issue with images that do not exist because the mapped pages are looking for a non-existent url for images. This was working before as images were mapped to the original url. How do I set this back please.

    Thanks

    https://snag.gy/gDy1Ju.jpg

    • This topic was modified 5 years, 4 months ago by danaiscool.
    • This topic was modified 5 years, 4 months ago by danaiscool.

    The page I need help with: [log in to see the link]

Viewing 15 replies - 1 through 15 (of 16 total)
  • Plugin Author matthias.wagner

    (@matthiaswagner)

    provide url and settings-screenshot please ??

    Plugin Author matthias.wagner

    (@matthiaswagner)

    ah i see, it is because you use a subdomain for your images directory. as a quick fix, you should set up the subdomain images.tnminvestor.com the same way as images.africanfinancials.com, then the paths should resolve correctly.

    but we will also set up such an environment to build a fix for it in our code – thanks for the hint!

    Thread Starter danaiscool

    (@danaiscool)

    Thanks for the quick response. This will not work as images.africanfinancials.com is a storage bucket and not the main mapping domain. Is it not possible to get it back to working the way it was before the plugin update?

    Plugin Author matthias.wagner

    (@matthiaswagner)

    i understand. i did not mean to add the subdomain in the plugin mappings, but set it up as a real subdomain in your hosting environment, so it points to the storage bucket as well.
    this is only a temporary fix, since we will change it in our code so it works well without this again.

    you could also look for the lines

    add_filter( 'wp_get_attachment_image_src', array($this, 'replace_src_domain'), 10 );
    add_filter( 'wp_calculate_image_srcset', array($this, 'replace_srcset_domain'), 10 );

    in the multidomainmapping.php file and comment them out temporarily (will be overridden with the next update).

    hope this helps in the meantime ??

    Thread Starter danaiscool

    (@danaiscool)

    Thanks for super quick response. We will give this a go.

    Plugin Author matthias.wagner

    (@matthiaswagner)

    ok fine – feel free to post a quick reply if it is working. we will comment back here as well when we release the bugfix ??

    Thread Starter danaiscool

    (@danaiscool)

    Hi,

    This appears to fix image tags but not background images. Is there something and comment out / add temporarily to fix this too?

    Thanks

    Plugin Author matthias.wagner

    (@matthiaswagner)

    since you have inline styles, go 2 lines up and remove
    add_filter( 'the_content', array($this, 'replace_domain'), 10 );
    as well.

    the subdomain-approach would be more stable and convenient i guess ??

    Thread Starter danaiscool

    (@danaiscool)

    Your prompt support is much appreciated. Thank you.

    Hey @matthiaswagner, we are experiencing the same issue, but in our case, images are loaded correctly on the main domain (without custom mapping) and not showing on subdomains (with mapping). Your quick fix resolves the issue, so we’re waiting for the official implementation now.

    Thanks for your otherwise excellent plugin, we’re looking forward for things to come!

    Plugin Author matthias.wagner

    (@matthiaswagner)

    thanks for the feedback. could you please post a screenshot of your mappings as well, so we can try to reproduce it for the bugfix?

    I’m sorry, I cannot post a screenshot with the original mappings as they contain client dev domains which I’m not at liberty to post. But I can try to describe our setup:

    We have an entry (sub)domain https://dev.example.com without mapping. We use this domain to access our WordPress admin.

    Then we have 4 (sub)domains which map to different WP pages, like

    https://dev.example-1.com -> /foo
    https://dev.example-2.com -> /bar
    https://dev.example-3.com -> /baz
    https://dev.example-4.com -> /foobar

    Does that help?

    Plugin Author matthias.wagner

    (@matthiaswagner)

    not sure ?? maybe you would like to send a screenshot to [email protected]? of course it will be treated confidentially. thanks

    Plugin Author matthias.wagner

    (@matthiaswagner)

    v1.0.3 has just been released. this will fix the subdomain issue ?? thanks again!

    Chris

    (@marketeerland)

    Hi Matthias,
    Images are loading on the main domain but not on the mapped domain.
    Main: https://tiffanynesbitt.com/womens-bible-studies/
    Mapped: https://womens-bible-study.com
    Ideas?
    Thank you.

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘Images’ is closed to new replies.