Public Ticket #3171295
LayerSlider not working after updating to PHP 8.0


  • Kathrine Spuur started the conversation

    Hi there, 

    After updating php from 7.4 to 8.0 my site stop working, and it seems to be the layerslider causing the issue, even though i've bought a license and made sure to get the latest updated version. How can I fix this issue? The php 7.4 version will be deleted the 28th of november, so I am in kind a hurry to get this fixed asap, and hope you guys can help me solve the issue. 

    I received this email from Wordpress identifying an issue  with the slider (sorry some of it in danish):

    Detaljer om fejl (details about error)
    En fejl af typen E_ERROR skete i linje 4 i filen /customers/0/9/a/flyvemedicin-cph.com/httpd.www/wp-content/plugins/LayerSlider/wp/widgets.php. Fejlbesked: Uncaught Error: Call to undefined function create_function() in /customers/0/9/a/flyvemedicin-cph.com/httpd.www/wp-content/plugins/LayerSlider/wp/widgets.php:4
    Stack trace:
    #0 /customers/0/9/a/flyvemedicin-cph.com/httpd.www/wp-content/plugins/LayerSlider/layerslider.php(53): include()
    #1 /customers/0/9/a/flyvemedicin-cph.com/httpd.www/wp-settings.php(428): include_once('/customers/0/9/...')
    #2 /customers/0/9/a/flyvemedicin-cph.com/httpd.www/wp-config.php(96): require_once('/customers/0/9/...')
    #3 /customers/0/9/a/flyvemedicin-cph.com/httpd.www/wp-load.php(50): require_once('/customers/0/9/...')
    #4 /customers/0/9/a/flyvemedicin-cph.com/httpd.www/wp-admin/admin-ajax.php(22): require_once('/customers/0/9/...')
    #5 {main}

  •  69
    John replied

    Hi Kathrine,

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

    LayerSlider has been fully compatible with PHP 8 for quite some time now. Based on the error message, it seems you're using an old and outdated version. Could you please navigate to the Plugins screen on your WordPress admin area and check LayerSlider's version number?

    If you haven't done it already, please register your license key on LayerSlider's main admin screen and wait for WordPress to prompt you with a new update. 

    You can also manually update LayerSlider if needed. To do that, you can simply deactivate and delete LayerSlider under the Plugins screen on your WP admin area, then install the new version as you'd typically do. Your sliders and settings are stored in the database, so removing the plugin won't touch them. Everything will be waiting for you the same as before once you've installed the new version manually. You can download the latest release from your account.

    Best Regards,
    John | Kreatura Dev Team