• Resolved chernenkopetro

    (@chernenkopetro)


    Hello! Thx for the great plugin. But i need some help with my project.
    After testing session limit i got a critical error:

    Версия WordPress 5.4
    Текущая тема: Hello Elementor (версия 2.3.0)
    Проблемный плагин: Sessions (версия 2.2.0)
    Версия PHP 7.2.31

    ===================================
    Ошибка с типом E_ERROR возникла на строке 244 файла /home/c/ca05124/wordpress/public_html/wp-content/plugins/sessions/includes/system/class-session.php. Сообщение об ошибке: Uncaught Error: Call to undefined function POSessions\System\array_key_first() in /home/c/ca05124/wordpress/public_html/wp-content/plugins/sessions/includes/system/class-session.php:244
    Stack trace:
    #0 /home/c/ca05124/wordpress/public_html/wp-content/plugins/sessions/includes/system/class-session.php(752): POSessions\System\Session->verify_per_user_limit(1)
    #1 /home/c/ca05124/wordpress/public_html/wp-includes/class-wp-hook.php(287): POSessions\System\Session->limit_logins(Object(WP_User), 'xxxxxx', 'xxxxxx')
    #2 /home/c/ca05124/wordpress/public_html/wp-includes/plugin.php(206): WP_Hook->apply_filters(Object(WP_User), Array)
    #3 /home/c/ca05124/wordpress/public_html/wp-includes/pluggable.php(539): apply_filters('authenticate', NULL, 'xxxxx', 'xxxxx')
    #4 /home/c/ca05124/wordpress/public_html/wp-includes/user.php(95): wp_authenticate('xxxxxxxxx', 'xxxxxxx')
    #5 /home/c/ca05124/wordpress/public_html/wp-login.php(1197): wp_signon(Array, true)
    #6 /home/c/ca05124/wordpress/public_html/wp-content/plugins/hide-log
Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter chernenkopetro

    (@chernenkopetro)

    SOLVED. Updated to PHP 7.4+

    Plugin Author Pierre Lannoy

    (@pierrelannoy)

    Hello @chernenkopetro
    Glad you found the solution by yourself…
    That’s an error on my side (I “publicize” 7.2 compatibility, and it’s not): the called functions doesn’t exist before 7.3.

    It will be fixed in the next release to be compatible with 7.2 too.

    Thanks for the report.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Critical error after enabling sessions limit’ is closed to new replies.