cache directory is mode 777. Cleaned it out, no change.

I changed this line:
$html->not_right($ubbt_lang['NO_IMAGE_VERIFY']);

to this:
$html->not_right($_SESSION['cp_code']);

It prints nothing, i.e. _SESSION is losing the cp_code.