Download & Extend

Complains "The entered font path is invalid"

Project:Textimage
Version:5.x-1.2
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

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.

Comments

#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

Status:active» needs review

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.

AttachmentSize
textimage_147553.patch 2.02 KB

#3

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

#4

Status:needs review» fixed

Commited,
thanks drewish

#5

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

#6

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.

nobody click here