Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Creation of dynamic property Gregwar\Captcha\CaptchaBuilder::$background is deprecated #54

Closed
garbast opened this issue Dec 28, 2023 · 5 comments

Comments

@garbast
Copy link

garbast commented Dec 28, 2023

(1/1) #1476107295 TYPO3\CMS\Core\Error\Exception
PHP Runtime Deprecation Notice: Creation of dynamic property Gregwar\Captcha\CaptchaBuilder::$background is deprecated in /usr/local/apache2/htdocs/fischer/www/vendor/blueways/bw-captcha/Libraries/Captcha/src/Gregwar/Captcha/CaptchaBuilder.php line 430

The property needs to be defined beforehand.

@maikschneider
Copy link
Owner

Hi @garbast, thanks for reporting!
Could you please specify which version of bw_captcha, TYPO3 and PHP you are using?

@garbast
Copy link
Author

garbast commented Dec 28, 2023

bw_captcha v3.1.0, TYPO3 12.4.9, PHP 8.2.7

@maikschneider
Copy link
Owner

With your setup, you can update to 4.0.2. This version should resolve the problem (see #48)

@garbast
Copy link
Author

garbast commented Dec 29, 2023

Sorry for not checking this first. My composer.json was missing ext-gd which resulted in an older version with composer req. I should have checked this first.

@garbast garbast closed this as completed Dec 29, 2023
@garbast
Copy link
Author

garbast commented Dec 29, 2023

After upgrading the captcha worked like a charm. Thanks for the quick response and keep up the good work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants