Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi, you can try to solve this by changing the plugin code (although it’s not recommended and there could be a lot of other errors since the last update was 2 years ago).

    Maybe this helps, if you replace these 2 lines

    $faq_topic = preg_replace('~&#x0*([0-9a-f]+);~ei', 'chr(hexdec("\\1"))', $faq_topic);
    $faq_tag = preg_replace('~&#x0*([0-9a-f]+);~ei', 'chr(hexdec("\\1"))', $faq_tag);

    with these

    $faq_topic = preg_replace('~&#x0*([0-9a-f]+);~i', function() { return chr(hexdec("\\1")); }, $faq_topic);
    $faq_tag = preg_replace('~&#x0*([0-9a-f]+);~i', function() { return chr(hexdec("\\1")); }, $faq_tag);

    Thread Starter Bryan Monzon

    (@bryanmonzon)

    Thanks! I just commented the lines. I don’t really need that functionality right now.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘preg_replace error’ is closed to new replies.