Support » Plugin: Make Paths Relative » View Attachment Page / Multisites

  • Resolved gcurtisdep

    (@gcurtisdep)


    Image Page not working (redirected you too many times) on Main Site of Multisite.

    ERR_TOO_MANY_REDIRECTS from Media Library when clicking on View Attachment Page when Image is attached to post or page

    • This topic was modified 1 year, 3 months ago by  gcurtisdep.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Sami Ahmed Siddiqui

    (@sasiddiqui)

    @gcurtisdep Are you sure that this is because of this plugin? As recently one of the Plugin user confirms that it works fine with multisite..

    Thanks,
    Sami

    Hi Sami,

    Thanks for your reply. Yes, when plugin is deactivated, the media attachment link works. When I activate the plugin, the error shows.

    Problem occurs if the media is attached to a post. If the media is attached to a page, it works fine.

    It shows up on any subsite that has posts.

    Hi Sami,
    Thank you, I would like to arrange a meeting.

    I tried below but still got redirect loop

    function redirect_attachment_page() {
    if ( is_attachment() ) {
    global $post;
    if ( $post && $post->post_parent ) {
    wp_redirect( esc_url( get_permalink( $post->post_parent ) ) );
    exit;
    } else {
    wp_redirect( esc_url( home_url( ‘/’ ) ), 301 );
    exit;
    }
    }
    }
    add_action( ‘template_redirect’, ‘redirect_attachment_page’ );

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    @sasiddiqui Your account is flagged for moderation watch.

    https://wordpress.org/support/guidelines/#being-mod-watched-or-banned

    I’ve deleted your offer to login to your user’s site. I’m am 100% sure you mean well but please never ask for credentials on these forums.

    https://wordpress.org/support/guidelines/#the-bad-stuff

    Now for the why: The internet is a wonderful place full of very nice people and a few very bad ones. I’m sure everyone here is very nice however, by giving some ones keys to your house you are trusting they wont steal anything. Likewise the person who takes the keys is now responsible for the house FOREVER.

    If something was to go wrong, then you the author may well legally become liable for damages, which they would not normally have been as their software is provided without warranty.

    Please be aware that repeatedly asking for credentials will result in us asking you to repeatedly stop before escalating up to the plugins team.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘View Attachment Page / Multisites’ is closed to new replies.