XF 2.3 Errors on upgrading to 2.3

Hi: I've got a pretty basic site, with the Cloudflare and installation add-ons and that's about it.

When I upgraded, I immediately had a number of errors logs, as shown in the screenshot. I've closed the forum for now. Any idea why I got these errors, and if this can be easily addressed or should I start over, using the database backup?

Screenshot 2024-07-05 at 13.32.02.webp
 
The undefined function one is due to the sodium_bin2base64() function missing from PHP on the server (although the code seems to account for that so not sure why the error is being triggered.
PHP:
public static function getRandomString($length)
{
    $random = static::getRandomBytes($length);
    if (function_exists('sodium_bin2base64'))
    {
        $string = sodium_bin2base64($random, SODIUM_BASE64_VARIANT_URLSAFE_NO_PADDING);
    }
    else
    {
        $string = strtr(base64_encode($random), [
            '=' => '',
            "\r" => '',
            "\n" => '',
            '+' => '-',
            '/' => '_',
        ]);
    }
    return substr($string, 0, $length);
}

Can you paste the full stack trace of the error related to the filesystem.
 
Brief update. I was one version down from the recommended PHP version and once I adjusted that and also uploaded the latest Cloudflare app version, I haven't had any further error messages so far. So hopefully those were the causes of both errors.
 
Back
Top Bottom