Page 1 of 1

CAPTCHA image not visible after host migration

Posted: Sat Nov 23, 2019 6:32 am
by tedgruber
First of all, I love WYSIWYG Web Builder! It's really a well designed product.

Earlier this week, GoDaddy migrated our website (vegasmath.com) from Windows hosting to Linux-based Plesk hosting. Since this occurred, the image generated for a CAPTCHA does not display at all, obviously making it impossible for somebody to enter the CAPTCHA text. The URL for the associated page is http://www.vegasmath.com/contact-form.php.

None of the website files have been changed since the migration to Plesk, but there is a slightly different directory structure. Under the old Windows hosting, all files were in the domain's root directory, but after the migration, they are now in a subdirectory called httpdocs.

So my question...Does anything need to change in the form or CAPTCHA properties to reflect the fact that the php files are in a subdirectory, not the root directory? If so, how do I change that through WYSYWIG Web Builder? If not, does anybody have any suggestions to resolve the issue?

Thanks for any help you can provide.

Ted

Re: CAPTCHA image not visible after host migration

Posted: Sat Nov 23, 2019 7:07 am
by Pablo
Did you try all tips from the help?

Re: CAPTCHA image not visible after host migration

Posted: Sun Nov 24, 2019 2:15 am
by tedgruber
Hi Pablo,

Yes, I did try the suggestions from the help file. I was able to locate the PHP error log on the server, and here's the error relevant message:

PHP Warning: imagettftext(): Could not find/open font in G:\PleskVhosts\vegasmath.com\httpdocs\captcha1.php on line 65

Originally the CAPTCHA object used the Verdana font, and the Verdana.ttf file is present in the ...\httpdocs directory. I also tried adding a copy of Verdana.ttf to the website root directory (one level up from httpdocs), and the problem persisted.

I also tried changing the CAPTCHA font to Arial and Times New Roman, but when I publish the website in WWB, it does not create any new .ttf files in my \Local Publish directory, and again the the CAPTCHA image is still not present.

Finally, I tried changing all pages in WWB to use PHP-7 (it was PHP-5, and the server is running PHP 7.x), but again that didn't help.

If you or anybody else in the forum has any ideas, I would sure appreciate it.

Ted

Re: CAPTCHA image not visible after host migration

Posted: Sun Nov 24, 2019 4:16 am
by tedgruber
Hi Pablo,

Follow up...I gave up on the CAPTCHA problem and switched to reCAPTCHA V2. I really needed to get the contact form working ASAP, and reCAPTCHA V2 does a nice job. No further action required on your part.

Ted