• Resolved ellienowels2

    (@ellienowels2)


    If I try to go to the users from my WordPress dashboard, I get this message:

    Error thrown
    Call to undefined function WordfenceLS\ctype_digit()

    If I deactivate Wordfence I am able to access the user panel just fine. This has started happening since the new version of WF 7.8.0

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support wfpeter

    (@wfpeter)

    Hi @ellienowels2, thanks for getting in touch.

    The error mentioning “Call to undefined function WordfenceLS\ctype_digit” refers to a call that was added to the login security plugin in the 7.8.0 release, so it makes sense that the error for this would occur after the update.

    However, the ctype_digit function is a core PHP function that’s existed since around 2017 in PHP 4.0.4. We’d understand this if you were running a very very old version of PHP but this is unlikely in your case. I would certainly suggest updating your PHP version if it is!

    There are 2 things we thought might be the cause of this:

    • It could be that ctype_digit in the disable_functions setting for PHP and that might cause it. I don’t remember if PHP 7.4 makes disabled functions a fatal error if a plugin tries to call them. Reaching out to your hosting provider to ask might be necessary to know if it has been disabled and can be re-enabled.
    • PHP opcache errors are much less common these days, but that might also be a possibility so restarting PHP-FPM would likely help if they’re able to restart it. If you can’t you may have to reach out to your hosting provider to do this.

    Can you ​let us know what your hosting provider says?

    Thanks,

    Peter.

    I too have seen this error (running PHP 7.4.10) in an error description and stack trace that was emailed to me by WordPress.

    I would post it but concerned some of the info might be a security issue, so if you are interested, please let me know how you’d like to get it?
    Thanks!

    Thread Starter ellienowels2

    (@ellienowels2)

    The web host said it was a memory limit and ctype extension was missing. They increased the memory to its highest limit, and added the ctype. All is working now.

    Plugin Support wfpeter

    (@wfpeter)

    That’s great news, thanks for letting us know @ellienowels2. If you have any more Wordfence questions by all means start a new topic and we’ll be glad to help out any time!

    Peter.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘get error from user panel when wordfence is active’ is closed to new replies.