Title: PHP 7 Compatibility
Last modified: March 21, 2017

---

# PHP 7 Compatibility

 *  Resolved [sapunce](https://wordpress.org/support/users/sapunce/)
 * (@sapunce)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/php-7-compatibility-140/)
 * Hi,
 * I run a compatibility check against my wp installation and the only errors I 
   got are these:
 *     ```
       FILE: /home/myuser/public_html/wp-content/themes/pinnacle/themeoptions/redux/inc/validation/preg_replace/validation_preg_replace.php
       --------------------------------------------------------------------------------------------------------------------------------------
       FOUND 1 ERROR AFFECTING 1 LINE
       --------------------------------------------------------------------------------------------------------------------------------------
        30 | ERROR | preg_replace() - /e modifier is deprecated since PHP 5.5 and removed since PHP 7.0
       --------------------------------------------------------------------------------------------------------------------------------------
   
       FILE: /home/myuser/public_html/wp-content/themes/pinnacle/lib/init.php
       ---------------------------------------------------------------------------------------------------------------------------------------
       FOUND 2 ERRORS AFFECTING 1 LINE
       ---------------------------------------------------------------------------------------------------------------------------------------
        22 | ERROR | Function name, class name, namespace name or constant name can not be reserved keyword '__dir__' (since PHP version 5.3)
        22 | ERROR | Function name, class name, namespace name or constant name can not be reserved keyword '__dir__' (since PHP version 5.3)
       ---------------------------------------------------------------------------------------------------------------------------------------
       ```
   
 * Any plans to provide php 7 compatibility for this theme or any advice how can
   I fix it?
 * Thank you,
    Nace [http://www.themagicoftraveling.com](http://www.themagicoftraveling.com)

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [Kevin](https://wordpress.org/support/users/jx-3p/)
 * (@jx-3p)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/php-7-compatibility-140/#post-8944655)
 * What version of the theme are you on? The theme should work fine with php 7.
 * -Kevin
 *  Thread Starter [sapunce](https://wordpress.org/support/users/sapunce/)
 * (@sapunce)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/php-7-compatibility-140/#post-8950211)
 * Hi Kevin,
 * I updated to 1.4.8 and there is this one error
 *     ```
       /wp-content/themes/pinnacle/lib/init.php
       ---------------------------------------------------------------------------------------------------------------------------------------
       FOUND 2 ERRORS AFFECTING 1 LINE
       ---------------------------------------------------------------------------------------------------------------------------------------
        22 | ERROR | Function name, class name, namespace name or constant name can not be reserved keyword '__dir__' (since PHP version 5.3)
        22 | ERROR | Function name, class name, namespace name or constant name can not be reserved keyword '__dir__' (since PHP version 5.3)
       ---------------------------------------------------------------------------------------------------------------------------------------
       ```
   
 *  [Ben Ritner – Kadence WP](https://wordpress.org/support/users/britner/)
 * (@britner)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/php-7-compatibility-140/#post-8953473)
 * Yep, it will be removed in the next version. It won’t effect you ability to run
   php 7 though. You can update.
 * Kadence Themes
 *  Thread Starter [sapunce](https://wordpress.org/support/users/sapunce/)
 * (@sapunce)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/php-7-compatibility-140/#post-8982781)
 * Thank you!
    I just updated my php version and everything works like a charm.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘PHP 7 Compatibility’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/pinnacle/1.8.10/screenshot.png)
 * Pinnacle
 * [Support Threads](https://wordpress.org/support/theme/pinnacle/)
 * [Active Topics](https://wordpress.org/support/theme/pinnacle/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/pinnacle/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/pinnacle/reviews/)

## Tags

 * [PHP7](https://wordpress.org/support/topic-tag/php7/)

 * 4 replies
 * 3 participants
 * Last reply from: [sapunce](https://wordpress.org/support/users/sapunce/)
 * Last activity: [9 years, 1 month ago](https://wordpress.org/support/topic/php-7-compatibility-140/#post-8982781)
 * Status: resolved