• Resolved Claudiu T.

    (@claudiu-t)


    Hello,

    I believe I have identified a bug.

    Steps to reproduce:

    • Install Elementor Header & Footer Builder (EHFB)
    • Install Polylang
    • Edit the Main Menu and add Language switcher widget (with only flag configuration)
    • Open EHFB and add the Main Menu
    • The flag is not generated.

    The flag is a Base64 image, similar to the one below:

    <img src="image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAALCAMAAABBPP0LAAAAt1BMVEW ....... ABJRU5ErkJggg==" alt="English" width="16" height="11" style="width: 16px;height: 11px">

    But this Base64 data must be preceded by “data:” like this:

    <img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAALCAMAAABBPP0LAAAAt1BMVEW ....... ABJRU5ErkJggg==" alt="English" width="16" height="11" style="width: 16px;height: 11px">

    I suspect that your plugin is removing this information, causing the flags not to display.

    • This topic was modified 10 months, 1 week ago by Claudiu T..
Viewing 10 replies - 1 through 10 (of 10 total)
  • Hi

    I have just noticed the same problem on a couples of websites. If I disable the plugin, then the flags will appear as expected in the menu.

    Same issue here, I have to change from Flags switcher to dropdown with language names. This error occurred after new update of EHFB was installed.

    Thread Starter Claudiu T.

    (@claudiu-t)

    Temporary, you can use non-encoded images by adding:
    define( 'PLL_ENCODED_FLAGS', false );
    in your wp-config.php.

    Afterward, it may be necessary to refresh the cache by going to Languages (Polylang menu) > Settings > URL modifications and resave the settings (no need to modify anything).

    But the problem with Base64 flags remains.

    • This reply was modified 10 months, 1 week ago by Claudiu T..

    Hi Claudiu T

    Thanks for the tip. Its working. ??

    Plugin Support Herman Asrori (BSF)

    (@bsfherman)

    Hi @claudiu-t,

    I am able to replicate the issue on my dev site. Thanks for reporting this and we are sorry for the inconvenience you may have because of this. We’ll try to fix this ASAP.

    Kind regards,
    Herman ??

    Plugin Support Herman Asrori (BSF)

    (@bsfherman)

    Hi guys,

    This issue has been fixed in v1.6.24 we released today. Please update the plugin and confirm the fix.

    Kind regards,
    Herman ??

    Thread Starter Claudiu T.

    (@claudiu-t)

    Yes, is ok now. Thank you for the plugin!

    Plugin Support Herman Asrori (BSF)

    (@bsfherman)

    Thanks for confirming the fix, @claudiu-t!

    Feel free to start a new thread if there’s anything else related to this plugin, we can help you with.

    Kind regards,
    Herman ??

    Good morning, I have a problem with the Polylang plugin. Namely, after installing the plugin and inserting it into the website in the menu – displaying only flags, I have img src=”data:image/png;base64…”

    Please help me solve the problem, thank you in advance, Jerry ??

    Plugin Support Herman Asrori (BSF)

    (@bsfherman)

    Hi @jerryzetpeka,

    This is an old thread and the issue had been resolved on v1.6.24. If you are using the latest version of this plugin, you should not have the problem. However, if that is not the case, as per the forum guidelines, please start your own topic. You are welcome to cross-link it to this thread, so we are aware of both.

    Kind regards,
    Herman ??

Viewing 10 replies - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.