Welcome Guest, Not a member yet? Register   Sign In
Codeigniter captcha ImageFilledRectangle() error
#1

[eluser]Unknown[/eluser]
Hi,
I have created an application which uses captcha_pi plugin to verify if visitor is human. The application is running perfectly under localhost but when I upload the files to the ftp and after coming to login page it says "Fatal error: Call to undefined function ImageFilledRectangle()". I checked the php info and saw that gd library was installed. To eleminate this problem I recompiled the gd library with freetype. Again it says "Fatal error: Call to undefined function ImageFilledRectangle()". After that I compared my localhost's and server's php info. There is a little difference. I could not understand from where the problem arises. By the way I am using XAMPP server on localhost.
XAMPP's gd info:
Quote:GD Support enabled
GD Version bundled (2.0.34 compatible)
FreeType Support enabled
FreeType Linkage with freetype
FreeType Version 2.3.11
T1Lib Support enabled
GIF Read Support enabled
GIF Create Support enabled
JPEG Support enabled
libJPEG Version 7
PNG Support enabled
libPNG Version 1.2.40
WBMP Support enabled
XBM Support enabled
JIS-mapped Japanese Font Support enabled
External servers's gd info:
Code:
GD Support     enabled
GD Version     bundled (2.0.34 compatible)
FreeType Support     enabled
FreeType Linkage     with freetype
FreeType Version     2.2.1
GIF Read Support     enabled
GIF Create Support     enabled
JPG Support     enabled
PNG Support     enabled
WBMP Support     enabled
XPM Support     enabled
XBM Support     enabled
What I have to do to eleminate this problem. Please help.
#2

[eluser]Nur Cholikul Anwar[/eluser]
First: check your captcha directory to 777 access
Second: install php-gd
Third: restart your webserver service




Theme © iAndrew 2016 - Forum software by © MyBB