Edit: Lost (image) attachment function
#21
Will a buggy captcha file be the cause of not being able to upload any image file and not to see my forums existing attached thumbnails?


Attached Files
.php   captcha.php (Size: 7.81 KB / Downloads: 148)
#22
Your using a captcha.php thats over 6 months old.

Yours:
* $Id: captcha.php 2148 2006-08-27 04:10:33Z Tikitiki $

vs.

My current rev:
* $Id: captcha.php 2806 2007-02-15 01:30:34Z Tikitiki $

Try the attached file


Attached Files
.php   captcha.php (Size: 7.93 KB / Downloads: 156)
#23
Quote:Will a buggy captcha file be the cause of not being able to upload any image file and not to see my forums existing attached thumbnails?
No, but when that is fixed we'll be able to see if GD is working correctly as the test image will load.
#24
I've uploaded the newer captcha.php and enabled CAPTCHA for registration and there is no image. I sent off an email to tech support and he did in fact misunderstood my original question. He replied back with the below.

"I doublechecked, and it appears that GD is in fact installed, by default rather. I misinterpreted what you said, and thought you were attempting to install GD on your own. (Oops!)


Here is a direct copy and paste of the GD stats from running a phpinfo:"


gd
GD Support enabled
GD Version bundled (2.0.28 compatible)
FreeType Support enabled
FreeType Linkage with freetype
FreeType Version 2.1.7
GIF Read Support enabled
GIF Create Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled
XBM Support enabled


So to me it looks like GD is working correctly right?
#25
Follow this link to see my problem. Now, if you click on one of the "thumbnails" it will bring you to the page where the image is, but you don't see it you just see the line below.

http://www.ej8squad.com/attachment.php?aid=44

When you visit the link above, right click anywhere within in the url and tell me what you guys see. It appears that the image is there, but I can't view it. Under properties it says how large the file is and everything.
#26
It's producing an invalid image. Your hosts GD is corrupt or mis-configured in some way. Something else on your host might be interfering with it too.
#27
Tikitiki Wrote:It's producing an invalid image. Your hosts GD is corrupt or mis-configured in some way. Something else on your host might be interfering with it too.

When it comes to asking the correct question, what do you suggest? When it comes to this I'm lost.
#28
Well lets try this first to make sure it's a problem with GD. Paste this into a php file and upload it to any web accessible directory in your site and run it from your browser:

<?php

// create a 200*200 image
$img = imagecreatetruecolor(200, 200);

// allocate some colors
$white = imagecolorallocate($img, 255, 255, 255);
$red  = imagecolorallocate($img, 255,  0,  0);
$green = imagecolorallocate($img,  0, 255,  0);
$blue  = imagecolorallocate($img,  0,  0, 255);


imagearc($img, 100, 100, 200, 200,  0, 360, $white);

imagearc($img, 100, 100, 150, 150, 25, 155, $red);

imagearc($img,  60,  75,  50,  50,  0, 360, $green);
imagearc($img, 140,  75,  50,  50,  0, 360, $blue);

// output image in the browser
header("Content-type: image/png");
imagepng($img);

// free memory
imagedestroy($img);

?> 

If it works you should see a reflection of yourself - or something similar to it Wink
#29
Cute! Yes, it works. So GD is fine?

http://ej8squad.com/media/test.php
#30
[Image: bump.gif]


Forum Jump:


Users browsing this thread: 1 Guest(s)