• Error messages below appear above the output of a [faqcombo] shortcode::

    Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /Applications/MAMP/htdocs.shineonled/wp-content/plugins/wordpress-faq-manager/faq-manager.php on line 810

    Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /Applications/MAMP/htdocs.shineonled/wp-content/plugins/wordpress-faq-manager/faq-manager.php on line 811

    havent looked at your code but note that i came up with a fix for this in another plugin recently, here is what i did, you canfollow this example:

    This:

    $controllerName = preg_replace(
    ‘%(^’ . preg_quote(self::PREFIX, ‘%’) . ‘|_).%e’,
    ‘strtoupper(“$0”)’,
    str_replace(‘-‘, ‘_’, $page)
    );
    // capitalize prefix and first letters of class name parts

    was replaced with this:

    $controllerName = preg_replace_callback(
    ‘%(^’ . preg_quote(self::PREFIX, ‘%’) . ‘|_).%’,
    create_function (‘$matches’, ‘return strtoupper($matches[0]);’),
    str_replace(‘-‘, ‘_’, $page)
    ); // capitalize prefix and first letters of class name parts

    https://wordpress.org/plugins/wordpress-faq-manager/

Viewing 1 replies (of 1 total)
  • Thread Starter fogcity

    (@fogcity)

    fix at line 738:

    // clean up text
    // $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);
    // bugfix
    $faq_topic = preg_replace_callback(‘~&#x0*([0-9a-f]+);~i’,
    create_function (‘$matches’, ‘return chr(hexdec($matches[0]));’), $faq_topic);
    $faq_tag = preg_replace_callback(‘~&#x0*([0-9a-f]+);~i’,
    create_function (‘$matches’, ‘return chr(hexdec($matches[0]));’), $faq_tag);

    fix at line 635:

    // clean up text
    // $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);
    // bugfix
    $faq_topic = preg_replace_callback(‘~&#x0*([0-9a-f]+);~i’,
    create_function (‘$matches’, ‘return chr(hexdec($matches[0]));’), $faq_topic);
    $faq_tag = preg_replace_callback(‘~&#x0*([0-9a-f]+);~i’,
    create_function (‘$matches’, ‘return chr(hexdec($matches[0]));’), $faq_tag);

    any chance you can incorporate this or similar in next release so i dont lose it?

Viewing 1 replies (of 1 total)

The topic ‘Errors appear when using [faqcombo] shortcode’ is closed to new replies.