Page 1 of 1

captcha does not show

Posted: Tue Jan 16, 2024 5:14 pm
by wb_gjg
Hello, everyone,
after my service provider (SP) announced to upgrade from php 5-7 to 8, I installed the latest Apache server x64-8.2..
Using WWB 19.0.5 a formpage using a simple text-captcha does not show the image of the captcha.
GD-extension in php.ini is defined. In previous releases and up to php 7, the captcha works good.
What did I forget? Your help is appreciated. :)

Regards
Guenter

Re: captcha does not show

Posted: Tue Jan 16, 2024 6:09 pm
by Pablo
What is the error message in the PHP error log?

Re: captcha does not show

Posted: Tue Jan 16, 2024 7:09 pm
by wb_gjg
In the PHP error log are no error messages at all. Only some hints: Implicit conversion from float xyz.abc to int loses precision..

Re: captcha does not show

Posted: Tue Jan 16, 2024 8:38 pm
by Pablo
What is the URL of the page?

Re: captcha does not show

Posted: Wed Jan 17, 2024 8:29 am
by wb_gjg
The simple text captcha is only tested locally in advance under XAMPP version: 8.2.12 and no longer works under the new PHP version. It will only be published once it works reliably. This should be easily reproducible. How can I see or set the PHP version in the new WWB version 19.0.5?

Re: captcha does not show

Posted: Wed Jan 17, 2024 10:12 am
by Pablo
I doubt that this has anything to do with the PHP version.

There is most likely a conflict somewhere.
I can only help you if I know the error message.

Re: captcha does not show

Posted: Wed Jan 17, 2024 5:49 pm
by wb_gjg
May be, you are right. Perhaps the problem is due to a lack of necessary privileges. I'm still searching because I'm not sure about this area. When a solution is found, I'll share it here. Thanks so far!

Re: captcha does not show

Posted: Fri Jan 19, 2024 8:39 am
by wb_gjg
Obviously php version 8.2.12, which I am using for testing, is not tolerant regarding the expected type of the function parameters, since no automatic typecast is executed here anymore. Since I have corrected this, the captcha works.
What I thought was just a hint (see above) should actually be an error message here, as not only precision but also function is lost!