Okay
  Public Ticket #1486893
LAYERSLIDER / PHP 7.2.2 Incompatibility
Closed

Comments

  • TripShooter started the conversation

    Is Layerslider fully compatible with PHP 7.2.2?


    PHP Scanner identify the following warnings and errors:

    FILE: /home/makeartf/public_html/.../wp-content/plugins/LayerSlider/wp/widgets.php
    -----------------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    -----------------------------------------------------------------------------------------------
     8 | WARNING | Use of deprecated PHP4 style class constructor is not supported since PHP 7.
    -----------------------------------------------------------------------------------------------

    FILE: /home/makeartf/public_html/.../wp-content/plugins/LayerSlider/wp/shortcodes.php
    --------------------------------------------------------------------------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    --------------------------------------------------------------------------------------------------------------------------------------------------------
     14 | WARNING | Method name "LS_Shortcode::__contruct" is discouraged; PHP has reserved all method names with a double underscore prefix for future use
    --------------------------------------------------------------------------------------------------------------------------------------------------------

    FILE: /home/makeartf/public_html/.../wp-content/plugins/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
    --------------------------------------------------------------------------------------------------------------------------------------------------------------------


  • [deleted] replied

    Hello TripShooter,

    Thank you for getting in touch with us. My name is Attila and I'm happy to assist you today. I appreciate your patience while we've been working towards your ticket.

    There were errors in certain subversions of PHP 7.1 and 7.2 that affected LayerSlider and could result in problems. However these errors were already fixed in the latest subversions of both branch (7.1 and 7.2), so the plugin should be working with those. We've also replied to your other ticket, please follow up with the instructions provided there.