-
Notifications
You must be signed in to change notification settings - Fork 73
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
Captchas not being generated in versions > 0.3.2. #50
Comments
I'm seeing the same problem
However, it's working just fine on my MacBook Pro
|
Looks like the problem is happening when SimpleCaptcha::Utils::run appends '2>&1' to the end of the convert command. Anything on STDERR gets redirected into STDOUT, and borks up the image data stream (if I understand this correctly). It also hides whatever was sent to STDERR. Removing the redirection resulted in a valid captcha image and the error being displayed in the rails server console: Fontconfig warning: ignoring C.UTF-8: not a valid language tag in my case |
hmm interesting, so that bug only happens if there are some encodings wrong, that's why I never ran into it. |
@zealot128 I think it's simpler than that. Just let the errors go to stderr instead of redirecting them, then the OS can handle them. Alternately, make the redirection an option, so they can easily be muted. |
Hello! The following solution helped me:
I'm not sure this solution is safe enough, but it works. If someone can tell how to improve security - I will be grateful. Maybe you need to update README. Thank you! |
Upgrading imagemagick to version 7.0.7-15 solved the issue for me. |
delete '2>&1' worked for me ! |
Hi there,
After a recent upgrade I noticed that captchas were not showing up:
I didn't see any errors in my server log, but my guess is that the tempfile changes
generate_simple_captcha_image
might be the problem?Versions:
Version 0.4.0 had the same problem. Changing the simple_captcha2 version to 0.3.2 "fixed" the issue.
The text was updated successfully, but these errors were encountered: