Title: PHP 7.0 Support
Last modified: September 1, 2016

---

# PHP 7.0 Support

 *  Resolved [Kevin-G](https://wordpress.org/support/users/kevin-g/)
 * (@kevin-g)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/php-70-support/)
 * Hello,
    Juste a quick post to let people know that this plugin has issue with
   PHP 7.0 because of a unsupported function. The error is : `stderr: PHP message:
   PHP Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback
   instead in /wp-content/plugins/wordpress-faq-manager/faq-manager.php on line 
   637`
 * To fix the issue, I updated lines 637 and 638 from:
 *     ```
       $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);
       ```
   
 * To
 *     ```
       $faq_topic	= preg_replace_callback('~&#x0*([0-9a-f]+);~i', create_function('$matches','return chr(hexdec("\\1"));'),$faq_topic);
       $faq_tag	= preg_replace_callback('~&#x0*([0-9a-f]+);~i', create_function('$matches','return chr(hexdec("\\1"));'),$faq_tag);
       ```
   
 * I am not confident on this code as this was my first use of preg_replace_callback.
 * That’s it, just left that here in case someone else had the same issue as me.
 * Andrew please support PHP 7.0 if you update the plugin and let me know if this
   fix is incorrect, thank you.
 * Regards,
    Kevin
 * [https://wordpress.org/plugins/wordpress-faq-manager/](https://wordpress.org/plugins/wordpress-faq-manager/)

Viewing 1 replies (of 1 total)

 *  Thread Starter [Kevin-G](https://wordpress.org/support/users/kevin-g/)
 * (@kevin-g)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/php-70-support/#post-7566351)
 * Marking it as resolved.

Viewing 1 replies (of 1 total)

The topic ‘PHP 7.0 Support’ 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/)

## Tags

 * [php-7](https://wordpress.org/support/topic-tag/php-7/)

 * 1 reply
 * 1 participant
 * Last reply from: [Kevin-G](https://wordpress.org/support/users/kevin-g/)
 * Last activity: [9 years, 10 months ago](https://wordpress.org/support/topic/php-70-support/#post-7566351)
 * Status: resolved