WPIntell

Source evidence

Spaces in filenames leads to unloaded image / invalid error.

Open Graph and Twitter Card Tags · support · 2024-09-19T21:39:00+00:00

mixedsentiment
highseverity
0.94relevance
4replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

4 / 31 rows with source links

12.9% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

27 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
Marty resolved
When using images generated directly from macOS screenshots, the auto generated filename has spaces in it . I am not sure why they are all not stripped out by WordPress core, but they are creating issues with open graph featured images rendering on share links. When I run the URL through the debugger. Corrupted Image Provided og:image URL, https://redacted.com/wp-content/uploads/2022/09/Screenshot-2022-09-19-at-12.09.42 PM.jpg could not be processed as an image. It may be corrupted or may have an invalid format. When I review the source code: <meta property="og:image" content="https://redacted.com/wp-content/uploads/2022/09/Screenshot-2024-09-19-at-12.09.42 PM.jpg"/> The actual URL when properly rendered in the browser: https://redacted.com/wp-content/uploads/2022/09/Screenshot-2022-09-19-at-12.09.42%E2%80%AFPM.jpg When I run the latter URL through the FB debugger itself, it processes and renders properly. So it’s possible the URL rendering on the plugin meta tags could be at least part of the problem. Would appreciate any thoughts or suggestions. Thanks! This topic was modified 1 year, 9 months ago by Marty . Hi @bozzmedia , Thank you for your detailed explanation. I hope you are doing well. I am glad to assist you today. Could you please check and confirm if the image you want to use in the OG tag exists in your media library? We’ve tried to replicate the scenario in our environment, and it seems to be working fine. This information will help us better understand the situation and assist you more effectively. I appreciate your help, and I look forward to your response! Thanks & regards, WP Experts Support Team Thank you for the response. Yes, the file is there. It seems to have to do with spaces and escaping/sanitizing the spaces then how it is output in the meta tags. Hi @bozzmedia , I hope you are doing well. I want to inform you that in WordPress, URLs for media files are automatically escaped and sanitized by WordPress. This helps prevent security vulnerabilities, so it seems like this is a site-specific issue. if you need further assistance regarding this issue, please open a ticket on our official website so we can easily connect you with our technical team. Hope to hear from you soon. Thanks & regards, WP Experts Support Team Hello @bozzmedia , We are marking this ticket as resolved due to inactivity. If you encounter any further issues, please feel free to open a new ticket. Have a great day!

Comments

4 shown
Muhammad Usama Azad 2024-09-23T11:33:00+00:00

Hi @bozzmedia , Thank you for your detailed explanation. I hope you are doing well. I am glad to assist you today. Could you please check and confirm if the image you want to use in the OG tag exists in your media library? We’ve tried to replicate the scenario in our environment, and it seems to be working fine. This information will help us better understand the situation and assist you more effectively. I appreciate your help, and I look forward to your response! Thanks & regards, WP Experts Support Team

Marty 2024-09-23T19:47:00+00:00

Thank you for the response. Yes, the file is there. It seems to have to do with spaces and escaping/sanitizing the spaces then how it is output in the meta tags.

Muhammad Usama Azad 2024-09-25T11:50:00+00:00

Hi @bozzmedia , I hope you are doing well. I want to inform you that in WordPress, URLs for media files are automatically escaped and sanitized by WordPress. This helps prevent security vulnerabilities, so it seems like this is a site-specific issue. if you need further assistance regarding this issue, please open a ticket on our official website so we can easily connect you with our technical team. Hope to hear from you soon. Thanks & regards, WP Experts Support Team

Muhammad Usama Azad 2024-10-24T07:35:00+00:00

Hello @bozzmedia , We are marking this ticket as resolved due to inactivity. If you encounter any further issues, please feel free to open a new ticket. Have a great day!