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

leoklein - June 1, 2007 - 06:06

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

drewish - June 12, 2007 - 18:33
Status:active» patch (code 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.patch2.02 KB

#3

drewish - June 12, 2007 - 18:43

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

#4

wundo - July 15, 2007 - 14:17
Status:patch (code needs review)» fixed

Commited,
thanks drewish

#5

asbdpl - July 18, 2007 - 00:56
Priority:normal» critical
Status:fixed» 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

 
 

Drupal is a registered trademark of Dries Buytaert.