• Resolved Tom M

    (@tominthephilippines)


    Hi,

    After updating the plugin I noticed the language switcher is broken. The image of the flag gives a broken icon and behind it there’s some code showing (English” alt=”EN” width=”16″ height=”11″ />) which isn’t supposed to be there.

    It would be great if you could look into this.

    Thanks!

    Cheers,
    Tom

Viewing 8 replies - 1 through 8 (of 8 total)
  • Same problem here after updating the plugin and WP (5.5.1)

    Same issue, Show Country Flag isn’t working and showing the HTML code + broken image.

    Hi

    I encountered a problem that, I think, is related.
    It seems that the pll_the_languages() return, under the ‘flag’ key, full HTML image tag instead of just url of the flag as documented.

    This also appeared with the last update.

    Same problem after updating!

    Plugin Author Chouby

    (@chouby)

    Hello,

    We have identified the source of the issue. This will be fixed in the next version 2.8.1. See the PR for more details: https://github.com/polylang/polylang/pull/558

    Thread Starter Tom M

    (@tominthephilippines)

    Thank you for fixing the issue!

    Cheers,
    Tom

    I updated to the latest pro version and the issue is still present.

    ( pll_current_language( 'flag' ) )

    returns

    <img src="image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAALCAIAAAD5gJpuAAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAGQSURBVHjaYvz69SsDEvj37x+ERGbAwZ9//wACiAUoysXF9f8/w48ffxkY/3NxMIM1/gcCKIUEvnz5AhBALBCD+6c8fvHqPfO/v62NugxMTP+xAUZGRqAlAAHEyCx4eEKH0ufPf6JChOcsfvXly99//xn+/Pn35/e/33/+Axm/gej3PyBDQpx95sRDAAHE8vf9l8dPftSZ3vnLZ1uucz1iocRvBmagol9ADb/A5O9/v34Byb8fPv1mYHgDEEBAJ/37859h0fJXIpuW//n99/d/6V///wPNBqJfYARi/AWSDH/+gkIBIICAGlj+/mPayWzy6wPYGUDVQCP/MP36y/D7L8Ovv4xQ8h/D739MQMUAAcTSyhDj/LX+06cXQGf+/QVyMpQEOuLXn79AtwO5QKnff/kEJSczTAcIIJYShtfM3y/9+3aP4fdvoOH/f/0CIQgDLvLnN9BBjD9UjBkYAAKIBRg9TEAHSkoC5UDOBMr9/s0IYv9hgJBA9PcvBAEVAwQQIzCe/yEhBlQumhQQAAQYAF6IXDEgUHAsAAAAAElFTkSuQmCC">

    instead of the link. I’m using custom flags in wp-content/polylang folder.
    The language switcher is working OK, though.

    @bonovski As the plugin author is aware, support for commercial software is not allowed in this forum. Please use https://polylang.pro/support/ instead.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Language switcher broken after update’ is closed to new replies.