• Good morning
    Yesterday I wanted to de-activate the Yoast SEO plugin and the site crashed.
    I restored the files and the database to the previous backup but I still do not have access to the site I get the message :

    Fatal error: Uncaught Error: Call to undefined function ctype_digit() in /datas/vol1/w4a122748/var/www/1001abeilles.org/htdocs/wp-includes/class-wp-recovery-mode-cookie-service.php:94 Stack trace: #0 /datas/vol1/w4a122748/var/www/1001abeilles.org/htdocs/wp-includes/class-wp-recovery-mode.php(271): WP_Recovery_Mode_Cookie_Service->validate_cookie() #1 /datas/vol1/w4a122748/var/www/1001abeilles.org/htdocs/wp-includes/class-wp-recovery-mode.php(111): WP_Recovery_Mode->handle_cookie() #2 /datas/vol1/w4a122748/var/www/1001abeilles.org/htdocs/wp-settings.php(518): WP_Recovery_Mode->initialize() #3 /datas/vol1/w4a122748/var/www/1001abeilles.org/htdocs/wp-config.php(94): require_once(‘/datas/vol1/w4a…’) #4 /datas/vol1/w4a122748/var/www/1001abeilles.org/htdocs/wp-load.php(50): require_once(‘/datas/vol1/w4a…’) #5 /datas/vol1/w4a122748/var/www/1001abeilles.org/htdocs/wp-admin/admin.php(34): require_once(‘/datas/vol1/w4a…’) #6 /datas/vol1/w4a122748/var/www/1001abeilles.org/htdocs/wp-admin/index.php(10): require_once(‘/datas/vol1/w4a…’) #7 {main} thrown in /datas/vol1/w4a122748/var/www/1001abeilles.org/htdocs/wp-includes/class-wp-recovery-mode-cookie-service.php on line 94

    can someone help me
    THANKS

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

Viewing 10 replies - 1 through 10 (of 10 total)
  • Moderator threadi

    (@threadi)

    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.

    Thread Starter abeille

    (@abeille)

    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

    Moderator threadi

    (@threadi)

    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.

    Thread Starter abeille

    (@abeille)

    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.

    Thread Starter abeille

    (@abeille)

    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.

    Moderator threadi

    (@threadi)

    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?

    Thread Starter abeille

    (@abeille)

    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

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

    The topic ‘WordPress crash’ is closed to new replies.