Welcome Guest, Not a member yet? Register   Sign In
FreakAuth 1.1: Captcha not working and blank page when font is found
#5

[eluser]maesk[/eluser]
Thank you, inparo.
Solution a) seems very logical to me but I get this error message:
Code:
Message: chmod() [function.chmod]: No such file or directory
So I thought the path or filename may not be correct and I found that
Code:
echo($config['new_image']);
gives me the correct path and filename: tmp/1206955298.91.jpg
Then I tried to change your code to this:
Code:
chmod($config['new_image'], 0777);

but I get the same error message.

So I tried umask() and after some experimentation it works, if I put it on line 1072 (after $image->image_lib->initialize($config) and before $this->CI->db_session->set_userdata('FreakAuth_captcha', $securityCode);
Code:
$image->image_lib->initialize($config);
umask(022);
if ( ! $image->image_lib->watermark())
  {
  echo $image->image_lib->display_errors();
  };
...

Is this just changing the umask for the tmp directory? How would I do this on the shell?
I don't really understand what's going on here. FAL including Captcha worked without problems on other servers. Also, the default umask seems to be 022, so why does it create new files with 700?


Thanks again,
maesk


Messages In This Thread
FreakAuth 1.1: Captcha not working and blank page when font is found - by El Forum - 03-31-2008, 03:41 AM



Theme © iAndrew 2016 - Forum software by © MyBB