Captcha image not showing? |
[eluser]chefnelone[/eluser]
Hello, This is really odd. I have a captcha image in a form which was working fine until today. But now the captcha image doesn't show up. The captcha folder has permissios set to: 777 There are NO error messages, nothing. I linked 4 screenshots pictures to show what I see: This one shows the missing image in the web, I used Firebug to spot the missing image: http://img257.imageshack.us/img257/4944/17352714.jpg This shows that the image is in the correct remote folder. Then the image is there! http://img228.imageshack.us/img228/7407/81645404.jpg This show the permission of the image, which is 640 http://img839.imageshack.us/img839/7403/...3at100.jpg And this one shows that image is correctly saved in the database table: 'captcha' http://img228.imageshack.us/img228/3650/38958356.jpg I checked everything but I can see what the problem is. Any help please?
[eluser]chefnelone[/eluser]
I think I spot the problem... but I don't know how to fix it?? If I try to load the url: http://www.my-domain.com/captcha/image.jpg I get: Forbidden You don't have permission to access /captcha/image.jpg on this server. Then if I change the image permission from 640 to 644 I can load the image. The image permission should be 644 and not 640. Since the image is dinamically created by the captcha plugin I don't know how to change this? I uploaded the captcha_pi.php (captcha plugin)
[eluser]LuckyFella73[/eluser]
Did you try to set the folder permissions where the images is generated into to 644? When that don't work you could try to use the PHP chmod function: http://php.net/manual/en/function.chmod.php to change the permission of the file.
[eluser]chefnelone[/eluser]
[quote author="LuckyFella73" date="1292273336"]Did you try to set the folder permissions where the images is generated into to 644? When that don't work you could try to use the PHP chmod function: http://php.net/manual/en/function.chmod.php to change the permission of the file.[/quote] The container folder is set to 777 but it seems like is the script generating the image which set the permissions.
[eluser]LuckyFella73[/eluser]
The script doesn't contain a chmod command so I assume it's a server setting. I had a simular problem when setting up a PHP shop-system where the images where uploaded with the wrong permissions while the same shop-system worked on an other server without problems. Our admin did some changes and from that on it worked. Just a thought ...
[eluser]chefnelone[/eluser]
[quote author="LuckyFella73" date="1292274304"]The script doesn't contain a chmod command so I assume it's a server setting. I had a simular problem when setting up a PHP shop-system where the images where uploaded with the wrong permissions while the same shop-system worked on an other server without problems. Our admin did some changes and from that on it worked. Just a thought ...[/quote] You are right, I just delete the complete hosting, create a new account and uploaded the complete site and now it works like a charm... Server issues... Many thanks.
[eluser]LuckyFella73[/eluser]
Nice it worls now! Such issues can be really annoying ..
[eluser]John V4lkyr[/eluser]
[quote author="chefnelone" date="1292253970"]I think I spot the problem... but I don't know how to fix it?? If I try to load the url: http://www.my-domain.com/captcha/image.jpg I get: Forbidden You don't have permission to access /captcha/image.jpg on this server. Then if I change the image permission from 640 to 644 I can load the image. The image permission should be 644 and not 640. Since the image is dinamically created by the captcha plugin I don't know how to change this? I uploaded the captcha_pi.php (captcha plugin)[/quote] sorry my english is not good, i have the same problem like this too, then i found the problem is on my .htaccess file so i just edit the file and add the folder name to the .htaccess file like this : from : RewriteCond $1 !^(index\.php|asset|inc|images|robots\.txt) to : RewriteCond $1 !^(index\.php|asset|captcha|inc|images|robots\.txt) note that i just add the folder named 'captcha' to the string above may it helpfull...
[eluser]Genuine Scope[/eluser]
now Codeigniter has a helper.Its easy to use. $this->load->helper('captcha');
[eluser]PAstorKill[/eluser]
How to load 'captcha_pi.php' plugin from the library... I'm writing : $CI = & get_instance; $CI -> load -> plugin('captcha_pi'); but the browser says - Call to undefined method CI_Loader::plugin() all other code is alright, I'm 200% sure ... |
Welcome Guest, Not a member yet? Register Sign In |