• Resolved htjoe38

    (@htjoe38)


    I’m using PHP 7.2 and when trying to register a new user I get a 500 PHP error.

    PHP Fatal error: Uncaught Error: Call to undefined function session_unregister() in /-snip-/wp-content/plugins/clean-login/clean-login.php:413

    On line 413 there is

    session_unregister (‘cleanlogin-captcha’);

    According to the PHP manual for session_unregister()

    Warning This function has been DEPRECATED as of PHP 5.3.0 and REMOVED as of PHP 5.4.0.

    Searching the web it was suggested that

    unset($_SESSION[‘cleanlogin-captcha’]);

    could be used instead. When I tried this all seemed to work OK but I might not have it correctly.

    Hope that is helpful.
    Joe

    • This topic was modified 6 years, 3 months ago by htjoe38.
    • This topic was modified 6 years, 3 months ago by htjoe38.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘PHP 7.2 500 error using session_unregister()’ is closed to new replies.