Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

secureimage not working [Solved]

Locked Asked Modified Viewed 11,008 times
H
HobbyMan
H
Just some Guy
  • Veteran Member, joined since
  • Contributed 1,486 posts on the community forums.
  • Started 91 threads in the forums
  • Started this discussions
asked
Veteran Member

URL to your site: http://www.hobbysites.net/contact.php
Version of PHPFusion: v7.00
Any mods you've made to your site: none relevant to fault
Version of PHP: 5.2.6
Version of MySQL: 5.0.51a-community
Have you searched for your problem: yes
If so, what terms did you try: secureimage error
Do you have a test account for us? not necessary atm
Updated to latest svn: 958

All relevant files uploaded: includes/secureimage/securimage_show.php, includes/secureimage/securimage_play.php, includes/secureimage/securimage.php, contact.php, etc.

In contact.php validation code not showing.

Page Source:

<td width='100' class='tbl'>Validation Code:</td>
<td class='tbl'><img id='captcha' src='includes/securimage/securimage_show.php' alt='' align='left' />
<a href='includes/securimage/securimage_play.php'><img src='includes/securimage/images/audio_icon.gif' alt='' align='top' class='tbl-border' style='margin-bottom:1px' /></a><br />
<a href='#' onclick="document.getElementById('captcha').src = 'includes/securimage/securimage_show.php?sid=' + Math.random(); return false"><img src='includes/securimage/images/refresh.gif' alt='' align='bottom' class='tbl-border' /></a>
</td>


Screenshot: www.hobbysites.net/images/secureimage_fault.jpg
Edited by HobbyMan on 11-08-2008 17:16,
0 replies

11 posts

M
muscapaul
M
Paul

Time flies like an arrow, fruit flies like banana (Groucho Marx)

Sites: Diptera.info (site owner); Online-Keys.net (site owner); Sciomyzidae.info (site co-owner); muscapaul.com (defunct; site owner)
  • Veteran Member, joined since
  • Contributed 1,075 posts on the community forums.
  • Started 8 threads in the forums
answered
Veteran Member

GD2 extension installed/enabled? On my test site (localhost) it works perfectly.
0 replies
H
HobbyMan
H
Just some Guy
  • Veteran Member, joined since
  • Contributed 1,486 posts on the community forums.
  • Started 91 threads in the forums
  • Started this discussions
answered
Veteran Member

Yes, GD2 is enabled, I've had no previous problems with images, validations, etc.
0 replies
H
HobbyMan
H
Just some Guy
  • Veteran Member, joined since
  • Contributed 1,486 posts on the community forums.
  • Started 91 threads in the forums
  • Started this discussions
answered
Veteran Member

Solved - stupid rookie mistake.

misspelled "securimage"
0 replies
G
gnckampus
G
campus student platform
  • Newbie, joined since
  • Contributed 8 posts on the community forums.
  • Started 1 thread in the forums
answered
Newbie

0 replies
S
SiteMaster
S
If i have touched it, it's W3C Valid
  • Senior Member, joined since
  • Contributed 305 posts on the community forums.
  • Started 15 threads in the forums
answered
Senior Member

Quote

gnckampus wrote:
securimage http://www.gnckampus.com/register.php error why ?


if your gd info is like this

Quote

GD Support enabled
GD Version bundled (2.0.34 compatible)
GIF Read Support enabled
GIF Create Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled
XBM Support enabled

then it will not work

if it is like this

Quote

GD Support enabled
GD Version bundled (2.0.34 compatible)
FreeType Support enabled
FreeType Linkage with freetype
FreeType Version 2.1.9
T1Lib Support enabled
GIF Read Support enabled
GIF Create Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled
XBM Support enabled

it works
0 replies
G
gnckampus
G
campus student platform
  • Newbie, joined since
  • Contributed 8 posts on the community forums.
  • Started 1 thread in the forums
answered
Newbie

Securimage Test Script
This script will test your PHP installation to see if Securimage will run on your server.

GD Support: Yes!
GD Version: bundled (2.0.34 compatible)
TTF Support (FreeType): No
No FreeType support. Cannot use TTF fonts, but you can use GD fonts
JPEG Support: Yes!
PNG Support: Yes!
GIF Read Support: Yes!
GIF Create Support: Yes!
Since you can see this...


oke servering problem.
0 replies
A
Arda
A
Arda 10
  • Member, joined since
  • Contributed 150 posts on the community forums.
  • Started 11 threads in the forums
answered
Member

you can check securimage with this script, just upload to somewhere and check output

<?php

/**
Securimage Test Script
Version 1.0 - 01/02/2008

Upload this PHP script to your web server and call it from the browser.
The script will tell you if you meet the requirements for running Securimage.

http://www.phpcaptcha.org
*/


if (isset($_GET['testimage']) && $_GET['testimage'] == '1') {
$im = imagecreate(225, 225);
$white = imagecolorallocate($im, 255, 255, 255);
$black = imagecolorallocate($im, 0, 0, 0);

$red = imagecolorallocate($im, 255, 0, 0);
$green = imagecolorallocate($im, 0, 255, 0);
$blue = imagecolorallocate($im, 0, 0, 255);

// draw the head
imagearc($im, 100, 120, 200, 200, 0, 360, $black);
// mouth
imagearc($im, 100, 120, 150, 150, 25, 155, $red);
// left and then the right eye
imagearc($im, 60, 95, 50, 50, 0, 360, $green);
imagearc($im, 140, 95, 50, 50, 0, 360, $blue);

imagestring($im, 5, 15, 1, 'Securimage Will Work!!', $blue);
imagestring($im, 2, 5, 20, ':) :) :)', $black);
imagestring($im, 2, 5, 30, ':) :)', $black);
imagestring($im, 2, 5, 40, ':)', $black);

imagestring($im, 2, 150, 20, '(: (: (:', $black);
imagestring($im, 2, 168, 30, '(: (:', $black);
imagestring($im, 2, 186, 40, '(:', $black);

imagepng($im, null, 3);
exit;
}

function print_status($supported)
{
if ($supported) {
echo "<span style=\"color: #00f\">Yes!</span>";
} else {
echo "<span style=\"color: #f00; font-weight: bold\">No</span>";
}
}

?>
<html>
<head>
<title>Securimage Test Script</title>
</head>

<body>

<h2>Securimage Test Script</h2>
<p>
This script will test your PHP installation to see if Securimage will run on your server.
</p>

<ul>
<li>
<strong>GD Support:</strong>
<?php print_status($gd_support = extension_loaded('gd')); ?>
</li>
<?php if ($gd_support) $gd_info = gd_info(); else $gd_info = array(); ?>
<?php if ($gd_support): ?>
<li>
<strong>GD Version:</strong>
<?php echo $gd_info['GD Version']; ?>
</li>
<?php endif; ?>
<li>
<strong>TTF Support (FreeType):</strong>
<?php print_status($gd_support && $gd_info['FreeType Support']); ?>
<?php if ($gd_support && $gd_info['FreeType Support'] == false): ?>
<br />No FreeType support. Cannot use TTF fonts, but you can use GD fonts
<?php endif; ?>
</li>
<li>
<strong>JPEG Support:</strong>
<?php print_status($gd_support && $gd_info['JPG Support']); ?>
</li>
<li>
<strong>PNG Support:</strong>
<?php print_status($gd_support && $gd_info['PNG Support']); ?>
</li>
<li>
<strong>GIF Read Support:</strong>
<?php print_status($gd_support && $gd_info['GIF Read Support']); ?>
</li>
<li>
<strong>GIF Create Support:</strong>
<?php print_status($gd_support && $gd_info['GIF Create Support']); ?>
</li>

</ul>

<?php if ($gd_support): ?>
Since you can see this...<br /><br />
<img src="<?php echo $_SERVER['PHP_SELF']; ?>?testimage=1" alt="Test Image" align="bottom" />
<?php else: ?>
Based on the requirements, you do not have what it takes to run Securimage :(
<?php endif; ?>

</body>
</html>
0 replies
S
SiteMaster
S
If i have touched it, it's W3C Valid
  • Senior Member, joined since
  • Contributed 305 posts on the community forums.
  • Started 15 threads in the forums
answered
Senior Member

what the f...

hhmm thought it was that because it dont work on my NAS server but on my linux and windows server it works

but the secureimage test says that it works on my NAS server to :|
0 replies
S
sybeer
S
sybeer 10
  • Newbie, joined since
  • Contributed 1 post on the community forums.
answered
Newbie

Solution:

make directory in root
/tmp

set rights to:
777

It helped me
0 replies
S
SiteMaster
S
If i have touched it, it's W3C Valid
  • Senior Member, joined since
  • Contributed 305 posts on the community forums.
  • Started 15 threads in the forums
answered
Senior Member

Quote

sybeer wrote:
Solution:

make directory in root
/tmp

set rights to:
777

It helped me


don't work on my NAS server
0 replies
D
dewa5227
D
  • Member, joined since
  • Contributed 51 posts on the community forums.
  • Started 5 threads in the forums
answered
Member

ukh, i'm also experiencing this : http://www.d-bests.com/register.php

the Validation Image isn't showing.

and here's the Securimage test : http://www.d-bests.com/testsi.php

EDIT :
now it's working, after i edit includes/securimage/securimage.php
and change var $use_gd_font = false; into true

it seems my site can't support TTF :( it's better if it can be set manually thru admin CP
Edited by dewa5227 on 18-08-2008 17:39,
0 replies

Labels

None yet

Statistics

  • Views 0 views
  • Posts 11 posts
  • Votes 0 votes
  • Topic users 7 members

7 participants

M
M
Paul

Time flies like an arrow, fruit flies like banana (Groucho Marx)

Sites: Diptera.info (site owner); Online-Keys.net (site owner); Sciomyzidae.info (site co-owner); muscapaul.com (defunct; site owner)
  • Veteran Member, joined since
  • Contributed 1,075 posts on the community forums.
  • Started 8 threads in the forums
A
A
Arda 10
  • Member, joined since
  • Contributed 150 posts on the community forums.
  • Started 11 threads in the forums
D
D
  • Member, joined since
  • Contributed 51 posts on the community forums.
  • Started 5 threads in the forums
G
G
campus student platform
  • Newbie, joined since
  • Contributed 8 posts on the community forums.
  • Started 1 thread in the forums
H
H
Just some Guy
  • Veteran Member, joined since
  • Contributed 1,486 posts on the community forums.
  • Started 91 threads in the forums
  • Started this discussions
S
S
sybeer 10
  • Newbie, joined since
  • Contributed 1 post on the community forums.
S
S
If i have touched it, it's W3C Valid
  • Senior Member, joined since
  • Contributed 305 posts on the community forums.
  • Started 15 threads in the forums

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet