• Resolved tamarmipo

    (@tamarmipo)


    Hi,

    After I activates the cookiebot plugin 2 issues appeared in my site:
    1. The site is using Elementor & Elementor pro and some of the elementor pages got “502 Bad Gateway” error.
    2. Strange characters apeared instead of Apostrophe, Hyphen and other characters.
    I looked in the plugin files and found that both problems were caused by the “new DOMDocument()” class used in cookiebot\addons\controller\addons\add-to-any\add-to-any.php file. I had to add 2 lines of code to the “cookiebot_addon_add_to_any_content” function to solve the problems:
    1. for turning off some errors:
    libxml_use_internal_errors(true);
    2.to converts all special characters to utf-8:
    $content = mb_convert_encoding($content, ‘HTML-ENTITIES’, ‘UTF-8’);

    Is there another solution I can use to these problems?
    If not, can you make a fix on the next release?

    Thanks,
    Tamar

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘502 Bad Gateway && Strange characters’ is closed to new replies.