Can you post the first 4 lines of either debug file?
(In whatever you post, remove the first two dir's of your hosting account path for security reasons.)

Also, are you using ImageHandler 2 and if yes, have you updated it to use the version for Zen Cart 1.3.9h?