You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have replaced the default script with a custom one but it is not working for now. Right now I am trying to replace the current script with one developed in PHP, this script takes the random number generated as argument, create a captcha based on that value and output a binary image as content
In my ejabberd configuration I have specified to use a different script in this way:
If I execute the script directly from the terminal like this php -f /usr/share/ejabberd/mycaptcha.php 123456 > test.png The captcha is generated properly
But when I restart ejabberd is not working and I am getting the following output in the logs:
[error] <0.525.0>@ejabberd_captcha:do_create_image/2:431 Failed to process an output from "php -f /usr/share/ejabberd/mycaptcha.php 686389": efbig
[critical] <0.525.0>@ejabberd_captcha:check_captcha_setup/0:577 Captcha is enabled in the option captcha_cmd, but it can't generate images.
Am I missing something? Thanks
The text was updated successfully, but these errors were encountered:
I was just directly outputing the binary image. But after reviewing more carefully the default captcha I see that conver/ImageMagick is using a pseudo-filename pipping the output using a standard stream STDOUT. I have modified my script as it follows:
I have replaced the default script with a custom one but it is not working for now. Right now I am trying to replace the current script with one developed in PHP, this script takes the random number generated as argument, create a captcha based on that value and output a binary image as content
In my ejabberd configuration I have specified to use a different script in this way:
And this is how I am producing the binary image:
If I execute the script directly from the terminal like this
php -f /usr/share/ejabberd/mycaptcha.php 123456 > test.png
The captcha is generated properlyBut when I restart ejabberd is not working and I am getting the following output in the logs:
Am I missing something? Thanks
The text was updated successfully, but these errors were encountered: