Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #742197

    So, I’m getting ready to upgrade my site to PHP7.0 and based on advice from several sound sources I ran the PHP Compatibility Checker plugin to verify if my site is ready.

    Now I don’t doubt that there are others running the site on PHP7.0, but the checker nonetheless came back with 5 warnings and 2 errors that it believes could impact operations. Other than nixing my specific paths, I am posting them verbatim here:

    FILE: ****/wp-content/themes/enfold/config-layerslider/LayerSlider/wp/shortcodes.php
    --------------------------------------------------------------------------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    --------------------------------------------------------------------------------------------------------------------------------------------------------
     15 | WARNING | Method name "LS_Shortcode::__contruct" is discouraged; PHP has reserved all method names with a double underscore prefix for future use
    --------------------------------------------------------------------------------------------------------------------------------------------------------
    
    FILE: ****/wp-content/themes/enfold/config-layerslider/LayerSlider/helpers/phpQuery.php
    --------------------------------------------------------------------------------------------------------------------------------------------------------------------
    FOUND 2 ERRORS AND 4 WARNINGS AFFECTING 6 LINES
    --------------------------------------------------------------------------------------------------------------------------------------------------------------------
     2231 | WARNING | Method name "phpQueryObject::__pseudoClassParam" is discouraged; PHP has reserved all method names with a double underscore prefix for future use
     2467 | WARNING | Method name "phpQueryObject::__loadSuccess" is discouraged; PHP has reserved all method names with a double underscore prefix for future use
     2631 | WARNING | Method name "phpQueryObject::___wrapAllCallback" is discouraged; PHP has reserved all method names with a double underscore prefix for future use
     4207 | ERROR   | Function split() is deprecated since PHP 5.3 and removed since PHP 7.0; use preg_split instead
     4275 | WARNING | Method name "phpQueryObject::__dumpTree" is discouraged; PHP has reserved all method names with a double underscore prefix for future use
     5637 | ERROR   | Using 'break' outside of a loop or switch structure is invalid and will throw a fatal error since PHP 7.0
    --------------------------------------------------------------------------------------------------------------------------------------------------------------------

    I was hoping that I could get a response from the admin, moderator, or just others that are more adept at PHP than I if they felt any of these should be of concern. Of course, if they aid in making improvements to the Theme, all the better.

    Ah yes, and for reference I’m running WP 4.7.2 and Enfold 3.8.4 (I haven’t done the very latest update yet, but I don’t think that it’s pertinent to this).

    My thanks in advance.

    • This topic was modified 7 years, 2 months ago by dziesmer.
    #742224

    Hey dziesmer!

    There is no concern at all.
    The only issue is with php 7.1+ that Kriesi is working and will release on the newest enfold version that will include the LayerSlider updates that also fix those issues.

    Thanks a lot for your understanding

    Best regards,
    Basilis

    • This reply was modified 7 years, 2 months ago by Basilis.
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.