images sitemap

#120965
  • Resolved Andre Scheres
    Rank Math free

    Hi,
    I got errors from google

    Dies ist keine gültige URL. Korrigiere die URL und reiche die Daten erneut ein.
    Beispiele
    URL:
    /wp-content/uploads/2020/11/Llobe-Motion-whtite-G8-1-1920×1280-1.jpg
    Zeile 42
    Übergeordnetes Tag:
    image
    Tag:
    loc

    I changed the /wp-content/plugins/seo-by-rank-math/includes/modules/sitemap/class-generator.php as below

    320 public function sitemap_images( $url ) {
    321 $output = ”;
    322 foreach ( $url[‘images’] as $img ) {
    323
    324 if ( empty( $img[‘src’] ) ) {
    325 continue;
    326 }
    327 if(strpos(esc_html( $this->encode_url_rfc3986( $img[‘src’])), ‘https://’) === false){
    328 $img[‘src’] = ‘https://’.$_SERVER[‘HTTP_HOST’].$img[‘src’];
    329 }

    now everything is OK. Maybe add it to the next update

    Best regards

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hello,

    Thank you for getting in touch and sharing this.

    I’ll forward to the dev team to see what they can do about it.

    If you have any further question(s), please let us know. Thank you.

    Hello,

    Can you please tell us how you are adding the images on your site? It doesn’t look like you are using the standard WP way to add images in the content.

    Also, instead of changing the code in plugin, you can use following filter to change the Image URL:
    https://rankmath.com/kb/filters-hooks-api-developer/#remove-change-images

    Looking forward to helping you.

    Hi Pratik,
    I’m using the standard WP way to upload media files.
    Perhaps it is the following line in wp-config.php, but this is used by many users

    define( ‘WP_CONTENT_URL’, ‘/wp-content’); // content directory

    Your tip doesn’t work for me
    https://rankmath.com/kb/filters-hooks-api-developer/#remove-change-images

    Best regards

    André

    Hello,

    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.
    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,

    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 4 replies - 1 through 4 (of 4 total)

The ticket ‘images sitemap’ is closed to new replies.