• Resolved sapunce

    (@sapunce)


    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

Viewing 4 replies - 1 through 4 (of 4 total)
  • What version of the theme are you on? The theme should work fine with php 7.

    -Kevin

    Thread Starter sapunce

    (@sapunce)

    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)
    ---------------------------------------------------------------------------------------------------------------------------------------
    

    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

    (@sapunce)

    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.