Rank Math Shows A Conflict with attachment.php attachment pages shows blank page

#203051
Viewing 13 replies - 1 through 13 (of 13 total)
  • Ankit
    Rank Math business

    Hello,

    Thank you for contacting the support and sorry for any inconvenience that might have been caused due to that.

    Assuming you are using the latest version of all the plugins and the themes (please update if not yet), it would seem like a conflict with one of the plugins or the theme you are using.

    To determine that, please follow this troubleshooting guide:
    https://rankmath.com/kb/check-plugin-conflicts/

    Only the site admin would know and your users won’t be affected by this troubleshooting.

    If the issue persists, please record a video screencast using a tool like Loom showing the troubleshooting and edit the first post on this ticket and include your WordPress & FTP logins in the designated Sensitive Data section.

    Please do take a complete backup of your website before sharing the information with us.
    Sensitive Data Section

    It is completely secure and only our support staff has access to that section. If you want, you can use the below plugin to generate a temporary login URL to your website and share that with us instead:

    https://wordpress.org/plugins/temporary-login-without-password/

    You can use the above plugin in conjunction with the WP Security Audit Log to monitor what changes our staff might make on your website (if any):

    https://wordpress.org/plugins/wp-security-audit-log/

    Please do take a complete backup of your website before sharing the information with us.

    We really look forward to helping you.

    Actually, you do not understand the issue rack math is only showing blank pages for the attachments that do not appear in the post. otherwise, it is working fine.

    Prabhat
    Rank Math agency

    Hello,

    Thanks for your reply.

    Please deactivate and then reactivate Rank Math and see if that fixes the issue.

    If the issue persists, then we might need to take a closer look at the settings. Please edit the first post on this ticket and include your WordPress & FTP logins in the designated Sensitive Data section.

    Please do take a complete backup of your website before sharing the information with us.
    Sensitive Data Section

    It is completely secure and only our support staff has access to that section. If you want, you can use the below plugin to generate a temporary login URL to your website and share that with us instead:

    https://wordpress.org/plugins/temporary-login-without-password/

    You can use the above plugin in conjunction with the WP Security Audit Log to monitor what changes our staff might make on your website (if any):

    https://wordpress.org/plugins/wp-security-audit-log/

    We really look forward to helping you.

    Hello,

    I have updated the sensitive data as requested. Can you please check further?

    Thank you.

    Yes, this error resolves if I deactivate rank math. I have sent you the credential please review the error and let me know!

    Hello,

    Thank you for that information.

    Since the redirect attachments option is enabled, it will redirect the attachment to the page where it appears. Did you already include this attachment to one of your posts/pages?

    The main purpose of this function is to redirect your attachment page to the post or page that they belong to. Here’s a link for your reference:
    https://rankmath.com/kb/should-you-redirect-attachments/

    I hope that helps.

    Thank you.

    Actually, I want to keep this option enabled. I want my images to redirect to parent posts but for some attachment files, I don’t want to include them in posts I just want users to redirect to the attachment page of that particular attachment. If you could do something like that the attachment that appears in the post redirects to its parent and those that do not appear in the post should simply open the attachment page of the particular file.

    Brian
    Rank Math free

    Hello,

    Thank you for getting back to us.

    Just to confirm from you, do you want these attachment pages that you have created to redirect to the actual file?

    Please note that files uploaded in the media section are not considered as attachments or rather those that bear the format .jpg, .pdf, etc. They are only uploaded to the WP media section to form attachment pages.

    Well if for instance, you have a page like: https://www.fr****tez.com/yoast_seo/

    and you have linked an attachment page in this page as well like: https://www.fr****tez.com/yoast_seo_premium_free_download/

    whereas the actual file is like: https://www.fr****ez.com/wp-content/uploads/2021/05/Yoast_SEO_Premium_Free_Download.zip

    then you can then consider doing a redirect from the attachment page to the actual file URL.

    To achieve this you can insert this code to the functions.php file:

    add_filter( 'rank_math/frontend/attachment/redirect_url', function( $redirect, $post) 
    {
    
     return $post->guid; 
    
    }, 10, 2 );

    Hope this is helpful. If this is not what you meant please clarify a little bit more for further understanding.

    Thank you.

    No, I don’t want these attachment pages that I have created to redirect to the actual file. I want to open their attachment pages. But if a file such as an image or pdf exists in the post. Then I want to redirect it to its parent post otherwise I want to open its attachment page.

    consider this image is in a post!
    ——————————
    https://ibb.co/VBdXG9m
    ——————————

    Whenever I should use this attachment page link it should redirect the user to its parent post…..
    ——————————–
    https://ibb.co/TRDPWys
    ———————————

    Now consider this file it doesn’t appear in the post.
    ——————————–
    https://ibb.co/f1g35Q5
    ——————————–

    so when I use its attachment page it should open the file attachment page. But the issue is it shows a blank page like this
    —————————
    https://ibb.co/bX8fHpF
    —————————
    That’s the main issue!

    Any update?

    Hello,

    Thanks for getting back to us.

    It seems that the credentials have very limited access now as we can only see the Profile page of WordPress.

    Could you please verify the situation and report back so we can debug the issue further?

    Looking forward to hearing back from you.

    I was waiting for a response and I didn’t hear from you and now I don’t want to resolve this issue Thanks!

    Hello,

    We are very sorry for the delay but totally understand and respect your decision.

    If you have any other questions or require any further assistance with any other topic don’t hesitate to get in touch.

    We are here to help!

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

Viewing 13 replies - 1 through 13 (of 13 total)

The ticket ‘Rank Math Shows A Conflict with attachment.php attachment pages shows blank page’ is closed to new replies.