Skip to content

Captcha Font not Loading on PHP 8.5 #1957

@j0hax

Description

@j0hax

Describe the bug
After an Upgrade to PHP 8.5, the captcha no longer displays any text.

It appears that fonts can no longer be properly loaded.

To Reproduce
Steps to reproduce the behavior:

  1. Change PHP Version to 8.5
  2. Click on Preferences > CAPTCHA
  3. The preview as well as actual CAPTCHAs are broken

Downgrading back to PHP 8.4 fixes the issues!

Expected behavior
CAPTCHA text is properly rendered.

Screenshots

Image

System (please complete the following information):

  • Admidio-Version 5.0.4
  • PHP 8.5
  • Database MySQL
  • Browser Firefox
  • Browser-Version 147.0.2

(Reproducible on different devices and browsers)

Additional context
Here is the related log message, warning of deprecations in PHP 8.5:

[01-Feb-2026 23:03:54 Europe/Berlin] PHP Warning:  Trying to access array offset on false in /home/web3ds8iu/html/intern.avfrisia.de/libs/securimage/securimage.php on line 2254
[01-Feb-2026 23:03:54 Europe/Berlin] PHP Warning:  imagettfbbox(): Could not find/open font in /home/web3ds8iu/html/intern.avfrisia.de/libs/securimage/securimage.php on line 2252
[01-Feb-2026 23:03:54 Europe/Berlin] PHP Warning:  Trying to access array offset on false in /home/web3ds8iu/html/intern.avfrisia.de/libs/securimage/securimage.php on line 2254
[01-Feb-2026 23:03:54 Europe/Berlin] PHP Warning:  imagettfbbox(): Could not find/open font in /home/web3ds8iu/html/intern.avfrisia.de/libs/securimage/securimage.php on line 2252
[01-Feb-2026 23:03:54 Europe/Berlin] PHP Warning:  Trying to access array offset on false in /home/web3ds8iu/html/intern.avfrisia.de/libs/securimage/securimage.php on line 2254
[01-Feb-2026 23:03:54 Europe/Berlin] PHP Warning:  imagettftext(): Could not find/open font in /home/web3ds8iu/html/intern.avfrisia.de/libs/securimage/securimage.php on line 2213
[01-Feb-2026 23:03:54 Europe/Berlin] PHP Deprecated:  Function imagedestroy() is deprecated since 8.5, as it has no effect since PHP 8.0 in /home/web3ds8iu/html/intern.avfrisia.de/libs/securimage/securimage.php on line 2448
[01-Feb-2026 23:04:06 Europe/Berlin] PHP Deprecated:  Function imagedestroy() is deprecated since 8.5, as it has no effect since PHP 8.0 in /home/web3ds8iu/html/intern.avfrisia.de/src/Infrastructure/Image.php on line 142
[01-Feb-2026 23:05:30 Europe/Berlin] PHP Deprecated:  Function imagedestroy() is deprecated since 8.5, as it has no effect since PHP 8.0 in /home/web3ds8iu/html/intern.avfrisia.de/src/Infrastructure/Image.php on line 142
[01-Feb-2026 23:07:17 Europe/Berlin] PHP Deprecated:  Function imagedestroy() is deprecated since 8.5, as it has no effect since PHP 8.0 in /home/web3ds8iu/html/intern.avfrisia.de/src/Infrastructure/Image.php on line 142
[01-Feb-2026 23:07:25 Europe/Berlin] PHP Deprecated:  Function imagedestroy() is deprecated since 8.5, as it has no effect since PHP 8.0 in /home/web3ds8iu/html/intern.avfrisia.de/src/Infrastructure/Image.php on line 303

Metadata

Metadata

Assignees

Labels

bugphpPull requests that update Php codesystem

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions