Title: Errors appear when using [faqcombo] shortcode
Last modified: August 21, 2016

---

# Errors appear when using [faqcombo] shortcode

 *  [fogcity](https://wordpress.org/support/users/fogcity/)
 * (@fogcity)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/errors-appear-when-using-faqcombo-shortcode/)
 * 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/](https://wordpress.org/plugins/wordpress-faq-manager/)

Viewing 1 replies (of 1 total)

 *  Thread Starter [fogcity](https://wordpress.org/support/users/fogcity/)
 * (@fogcity)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/errors-appear-when-using-faqcombo-shortcode/#post-4664098)
 * 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.

 * ![](https://s.w.org/plugins/geopattern-icon/wordpress-faq-manager_e7e7e7.svg)
 * [SFN Easy FAQ Manager](https://wordpress.org/plugins/wordpress-faq-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordpress-faq-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordpress-faq-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/wordpress-faq-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordpress-faq-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordpress-faq-manager/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [fogcity](https://wordpress.org/support/users/fogcity/)
 * Last activity: [12 years, 2 months ago](https://wordpress.org/support/topic/errors-appear-when-using-faqcombo-shortcode/#post-4664098)
 * Status: not resolved