The message
Call to undefined function ctype_digit
means that a PHP extension called “ctype” is not activated in your hosting. This must be activated to correct the error. Please contact your hoster’s support for clarification.
Good evening
To get around the problem, I commented out lines 94 to 96 in the class-wp-recovery-mode-cookie-service.php file.
So I have access to the site again and everything seems to be working!
what are these lines for and can I leave them deactivated?
THANKS
I am waiting for the response from my host for the Ctype extension
You have changed a WordPress core file. This means that you may no longer receive any support for any problems that arise with your project, as it is completely unclear how WordPress behaves in this case. In addition, your customization will be overwritten with the next WordPress update. All in all, this change is useless, which is why we generally advise against such actions.
Wait for an answer from the hoster. They must provide you with a solution. If your host cannot offer you this, move the project to another host. The missing PHP library is one of the standards and is actually always activated, otherwise WordPress – as you can see here – would not be able to run properly.
Thanks
I hope my host cant help me
It was working fine up to yesterday !?
Hi @abeille,
It was working fine up to yesterday !?
The error shared only points to missing ctype extension in PHP. It may be that this extension got disabled on your server or change in server configuration.
Getting in touch with the hosting provider would be the recommended approach.
Kind Regards,
Nithin
Hi @abeille, Please get in touch with your hosting provider and ask to enable ctype PHP Extension, Enabling this can fix your issue.
Thank you for your response
Which raises a question for me… I have 5 other WordPress sites on this hosting and they all work without problem!
except this one. It had been working very well for years and when I trie to deactivate the plugin Yoast SEO, it crashed with this error message!?
The problem should come from somewhere else! But from where?
Thanks for ideas and help.
Again, only your host can give you the answer to this question. It depends very much on how they handle the individual websites internally. Each one can have its own hosting settings. For 5 it is correct, for one it is not.
What have you heard from your hoster’s support so far?
No response from my host yet… I’m waiting
I’ll give you the answer when I have it
thank you for your light, it’s a little clearer for me
But all the same… why can it work for several years and suddenly fail?
Hi @abeille,
I hope you are doing well today!
It is possible that the issue with this specific site is related to a unique configuration or setting that is different from your other WordPress sites. Since the error message specifically mentions an undefined function related to the ctype extension in PHP, it could be that this particular site was relying on that function for some specific functionality.
In addition to checking with your hosting provider about the ctype extension, you may also want to consider the following troubleshooting steps:
- Check if the Yoast SEO plugin was fully deactivated before the site crashed. Sometimes, incomplete deactivation of a plugin can cause conflicts.
- Review any recent changes or updates made to this specific site that could have triggered the issue. This could include theme or plugin updates, changes to the site’s code, or server configuration changes.
- Consider reaching out to Yoast support for assistance, as they may have encountered similar issues with their plugin and could provide guidance on resolving it.
Kind regards,
Zafer