Complains "The entered font path is invalid"
brian_may - May 29, 2007 - 03:48
| Project: | Textimage |
| Version: | 5.x-1.2 |
| Component: | Code |
| Category: | bug report |
| Priority: | critical |
| Assigned: | Unassigned |
| Status: | won't fix |
Description
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.

#1
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.
#2
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.
#3
marked http://drupal.org/node/111838 as a duplicate
#4
Commited,
thanks drewish
#5
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