CertSage HTTP ERROR 500 error message

My domain is: kathleenbada.com

(It is hosted by a company owned by GoDaddy)

I uploaded the most recent version os certsage.php but get the HTTP ERROR 500 message when I visit https://kathleenbada.com/certsage.php

The error log message is:

[12-Apr-2024 10:54:36 UTC] PHP Fatal error: Call to undefined function random_bytes() in /home/o8ewa912tgrf/additional_domains/kathleenbada.com/public_html/certsage.php on line 267

The site is running on PHP 8.0

I've update the certificate quite a few times so I'm not sure what I'm doing wrong on this occasion.

Any help would be appreciated

1 Like

Are you sure? Because the function random_bytes was added in PHP 7.0 apparently and should also be available on PHP 8.

Please check the PHP version actually used, e.g. using phpinfo().

6 Likes

You were quite correct. My host said I was running 8.2. But when I checked it independently, it was 5.6. It's working now.

Thanks

6 Likes

Welcome to the Let's Encrypt Community, @SaulGitH! :slightly_smiling_face:

I'm the author of CertSage. I'm curious what version of CertSage you are using since I removed the dependency on the random_bytes function in version 1.4.1 (currently the latest released version). You might want to consider an upgrade. Please let us know if you run into any further problems.

5 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.