• Resolved lucawal

    (@lucawal)


    Hello there,

    We have a small issue with both post and portfoglio-sitemap.xml as this error occurs:
    https://pasteboard.co/K9aK6cT.png

    Looking at the page code, it seems like themes’ customizer.php file is mainly causing this issue. Especially this line:

    $image_alt = get_post_meta( $image_id, '_wp_attachment_image_alt', true);

    However, I didn’t get to find any blank space or code error, as the file is as new.

    What I’ve done so far:
    – Clear cache
    – Disable/enable sitemap function in Yoast backend
    – Checked theme functions.php

    All those things didn’t solve the issue and I’m out of ideas.

    Thank you for your help!

    Cheers

    • This topic was modified 3 years, 4 months ago by lucawal.
    • This topic was modified 3 years, 4 months ago by lucawal.
    • This topic was modified 3 years, 4 months ago by lucawal.
    • This topic was modified 3 years, 4 months ago by lucawal.
    • This topic was modified 3 years, 4 months ago by lucawal.

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Maybellyne

    (@maybellyne)

    Hello,

    We are sorry about the error you are getting in your sitemap. This is usually caused by an empty?whitespace or a blank line due to a conflict with another plugin or your theme. Usually, there is an empty space or a blank line before or after the closing PHP opening or closing tag, which shouldn’t be there.

    You can narrow down the exact source of conflict by performing a?conflict check. Once you have identified whether your theme or a plugin causes the issue, please contact?the developers of that theme or plugin for assistance in finding and removing the whitespace.

    Thread Starter lucawal

    (@lucawal)

    Hi there,

    Thank you for your quick answer.

    I’ve already performed this conflict check and as said previously, it is coming from the themes’ file I’ve mentionned above.
    However, there is no blank space or code error in it to be honest.

    Sa?a

    (@stodorovic)

    It isn’t problem in white space. The theme throws PHP Warnings which breaks XML. You should turn off display_errors in php.ini to prevent output of these errors.
    Also, you may update the theme to the latest version and contact their support because it isn’t warning related to Yoast code.

    Thread Starter lucawal

    (@lucawal)

    Found the issue. Our hosting provider switched to PHP 8.0. Rolled back to 7.4 and working now with our actual theme.

    Thank you to both of you for your support, you may tick as resolved.

    To whom it may concern: don’t use Undsgn theme with PHP 8.0 yet.

    Plugin Support Michael Ti?a

    (@mikes41720)

    Hi,

    This thread has been marked as resolved as the original poster confirmed the issue as resolved on their site.

    If you are not the original poster and continue to experience a similar issue, please open a new request. That way it’s easier for us to match replies with a specific problem. Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Post-sitemap.xml and portfoglio-sitemap.xml error on line 2 at column 1’ is closed to new replies.