the code suggestion wasn't intended as a fix, it was intended to turn error reporting on so that we could see what the problem was to be able to suggest a fix.
I dont believe the code was applied correctly, the WA_ValidationToolkit/WAVT_CaptchaSecurityImages.php? file now just shows the code.
I think that you may have removed one of the opening "<?php" brackets when adding the error reporting code.