As far as I can tell, this is because of the call to file_check_path, which in turn checks to see if the directory is writable.

However I see no reason why textimage should be able to write to the directory in question, I think read only access should be sufficient.

CommentFileSizeAuthor
#2 textimage_147553.patch2.02 KBdrewish

Comments

leoklein’s picture

Should this be a 'feature request'?

In any case, the error message "current font path is invalid. The default font will be used" is completely misleading -- it's fooled a number of people here judging by the bug reports.

drewish’s picture

Status: Active » Needs review
StatusFileSize
new2.02 KB

as has been pointed out forcing the fonts directory to be writable is a bad idea. file_check_directory shouldn't be used. the attached patch replaces it with is_dir() calls.

drewish’s picture

marked http://drupal.org/node/111838 as a duplicate

wundo’s picture

Status: Needs review » Fixed

Commited,
thanks drewish

asbdpl’s picture

Priority: Normal » Critical
Status: Fixed » Closed (won't fix)

Applied patch, no errors, textimage still complains about "entered fonr path is invalid".

Solution:

* Disable module teximage
* Replace it by modules Captcha / Image captcha / Text captcha.

Now, everything - image captchas, text captachas, and math captchas - works like a charms.

Regards, -asb

deciphered’s picture

Priority: Critical » Normal
Status: Closed (won't fix) » Closed (fixed)

This should not have been marked as won't fix if the issue was still present.

Marked as closed.