MyBB Community Forums

Full Version: Captcha not Showing
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Hello there,

evertime I, or somebody else try's to register on my forum, the captcha won't show up. I didn't touch anything in the general settings as far as I know. Here is a little screenshot: http://prntscr.com/ob7c5

I try'd to replace the Captcha.php file with another one, which doesn't work either.

I refuse to use no captcha, cause then my forum would be filled with spam.

Thanks to whoever knows how to solve this problem.

P.S. I use the Impirial (City) theme.
Can you share link of your forum so we can test it?
(2013-01-06, 01:47 PM)JovanJ. Wrote: [ -> ]Can you share link of your forum so we can test it?
Ofcourse, my forum link is: http://scronix.org/
I had a similar problem some time ago. Check if your server has php-gd installed. You can check it here: Admin CP -> Tools & Maintenance -> View PHP Info
You have a UTF-8 Byte-Order-Mark in the output, which prevents the image from being displayed.

This is usually caused by broken PHP file(s), and it's usually MS Notepad that breaks them.

You'll have to fix the file you broke; e.g. by editing with Notepad++ and change charset to UTF-8 without Byte-Order-Mark.

If you don't know which file is the culprit, you can use dirwalk to find possible candidates:

http://community.mybb.com/thread-47354-p...#pid347635
(2013-01-06, 02:11 PM)Irreligious Wrote: [ -> ]I had a similar problem some time ago. Check if your server has php-gd installed. You can check it here: Admin CP -> Tools & Maintenance -> View PHP Info
Yes, I checked it and my server has it enabled.

(2013-01-06, 02:15 PM)frostschutz Wrote: [ -> ]You have a UTF-8 Byte-Order-Mark in the output, which prevents the image from being displayed.

This is usually caused by broken PHP file(s), and it's usually MS Notepad that breaks them.

You'll have to fix the file you broke; e.g. by editing with Notepad++ and change charset to UTF-8 without Byte-Order-Mark.

If you don't know which file is the culprit, you can use dirwalk to find possible candidates:

http://community.mybb.com/thread-47354-p...#pid347635
Thank you for your reply, I'll see what I can do, even though I don't fully understand you Toungue.

EDIT: I Pastebinned my result for you: http://pastebin.com/k0Y8tT6G
PHP files (such as used by MyBB) are supposed to start with <?php and end with ?>. Without whitespace or anything else at the beginning / end of the file. Dirwalk lists the files that do not meet these requirements as FAIL, so they're the ones you have to check. Load them all with Notepad++, remove whitespace at the beginning and end of the file (before/after <?php ?>), save as UTF-8 without Byte-Order-Mark, reupload and see if it helps.

It'll probably be one of the plugin files, as that's what's loaded everywhere including on captcha.php.

I guess I should improve dirwalk so it will look specifically for byte-order-marks as that's the most common issue apparently...
Or you can use also Recaptcha Smile
(2013-01-06, 04:09 PM)alv4 Wrote: [ -> ]Or you can use also Recaptcha Smile
Yeah, is it possible to replace the default captcha with a reCaptcha?

@ Frostschutz, thanks alot, I'll look into this ;-).
(2013-01-06, 04:09 PM)alv4 Wrote: [ -> ]Or you can use also Recaptcha Smile

You realize of course that this problem doesn't affect only the captcha, but all other content on the site as well... unwanted output breaks the captcha, but it may also break attachments, redirects, and more.

Installing another captcha system does not really solve anything, because that's not where the problem is.
Pages: 1 2