• To avoid: “Uncaught Error: Call to undefined function ctype_alnum() in /wp-content/plugins/tarteaucitronjs/tarteaucitron.php:30” if PHP module is not enabled without breaking your website, you can add a “function_exists(‘ctype_alnum’)” before the 3 “ctype_alnum()” function usage, like this from line 29:

    case “uuid”:
    if (function_exists(‘ctype_alnum’) && ctype_alnum($data) && strlen($data) == 40) {
    return $data;
    }
    break;
    case “token”:
    if (function_exists(‘ctype_alnum’) && ctype_alnum(str_replace(‘-‘, ”, $data)) && strlen($data) == 122) {
    return $data;
    }
    break;
    case “alnum”:
    if (function_exists(‘ctype_alnum’) && ctype_alnum($data)) {
    return $data;
    }
    break;


You must be logged in to reply to this topic.