dreamhost and validation image problem

Register an Account
Reply
 
Thread Tools Display Modes
  #11 (permalink)  
Old 02-01-2006, 04:00 PM
Yankidank's Avatar
Pligg Founder/Coder/Designer
Pligg Version: SVN
Pligg Template: Wistie
 
Join Date: Dec 2005
Location: Ocala, FL
Posts: 4,934
Send a message via AIM to Yankidank
linkage

you might want to test if it's php-gd by creating a php file with this:
PHP Code:
   <?php 
Header
("Content-type: image/png"); 
$height 300
$width 300
$im ImageCreate($width$height); 
$bck ImageColorAllocate($im10,110,100); 
$white ImageColorAllocate($im255255255); 
imageellipse ($im150150100200$white); 
ImagePNG($im); 
?>
and see if it displays an image of an oval. I think this should be an adequate test. If you find that your server settings doesn't include php-gd try contacting them and asking them if they can include it. Most web hosts are pretty friendly and might be glad to assist you.
Reply With Quote
  #12 (permalink)  
Old 02-01-2006, 04:39 PM
New Pligger
 
Join Date: Jan 2006
Posts: 11
I get the following when I try to run the file:

Warning: Cannot modify header information - headers already sent by (output started at /home/content/n/h/o/nhopligg/html/admin/imagetest.php:9) in /home/content/n/h/o/nhopligg/html/admin/imagetest.php on line 10
‰PNG 
Reply With Quote
  #13 (permalink)  
Old 02-10-2006, 01:08 AM
New Pligger
 
Join Date: Jan 2006
Posts: 9
check the code ,if you edit the ts_image.php with windows, it will be ANSI.
and then there will be a special code in front of the ts_image.php ,this code is invisible.
you can edit it again with ultraedit (a text editor) and delete invisible code ,maybe it works again.
Reply With Quote
  #14 (permalink)  
Old 03-28-2006, 06:33 PM
New Pligger
 
Join Date: Mar 2006
Posts: 8
Quote:
Originally Posted by Yankidank
linkage

you might want to test if it's php-gd by creating a php file with this:
PHP Code:
   <?php 
Header
("Content-type: image/png"); 
$height 300
$width 300
$im ImageCreate($width$height); 
$bck ImageColorAllocate($im10,110,100); 
$white ImageColorAllocate($im255255255); 
imageellipse ($im150150100200$white); 
ImagePNG($im); 
?>
and see if it displays an image of an oval. I think this should be an adequate test. If you find that your server settings doesn't include php-gd try contacting them and asking them if they can include it. Most web hosts are pretty friendly and might be glad to assist you.
OK, it didn't work (same problem here), so until I figure out how to get GD on my server, how do I disable that requirement?
Reply With Quote
  #15 (permalink)  
Old 04-09-2006, 11:47 PM
New Pligger
 
Join Date: Apr 2006
Posts: 8
i ran the test info.php file and got this:
Code:
./configure' '--build=i386-redhat-linux' '--host=i386-redhat-linux' '--target=i386-redhat-linux-gnu' '--program-prefix=' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/usr/com' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--cache-file=../config.cache' '--with-config-file-path=/etc' '--with-config-file-scan-dir=/etc/php.d' '--enable-force-cgi-redirect' '--disable-debug' '--enable-pic' '--disable-rpath' '--enable-inline-optimization' '--with-bz2' '--with-db4=/usr' '--with-curl' '--with-exec-dir=/usr/bin' '--with-freetype-dir=/usr' '--with-png-dir=/usr' '--with-gd=shared' '--enable-gd-native-ttf' '--without-gdbm' '--with-gettext' '--with-ncurses=shared' '--with-gmp' '--with-iconv' '--with-jpeg-dir=/usr' '--with-openssl' '--with-png' '--with-pspell' '--with-xml' '--with-expat-dir=/usr' '--with-dom=shared,/usr' '--with-dom-xslt=/usr' '--with-dom-exslt=/usr' '--with-xmlrpc=shared' '--with-pcre-regex=/usr' '--with-zlib' '--with-layout=GNU' '--enable-bcmath' '--enable-exif' '--enable-ftp' '--enable-magic-quotes' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-track-vars' '--enable-trans-sid' '--enable-yp' '--enable-wddx' '--with-pear=/usr/share/pear' '--with-imap=shared' '--with-imap-ssl' '--with-kerberos' '--with-ldap=shared' '--with-mysql=shared,/usr' '--with-pgsql=shared' '--with-snmp=shared,/usr' '--with-snmp=shared' '--enable-ucd-snmp-hack' '--with-unixODBC=shared,/usr' '--enable-memory-limit' '--enable-shmop' '--enable-calendar' '--enable-dbx' '--enable-dio' '--enable-mbstring=shared' '--enable-mbstr-enc-trans' '--enable-mbregex' '--with-mime-magic=/usr/share/file/magic.mime' '--with-apxs2=/usr/sbin/apxs'




i ran the test.php file with code prescribed above and received this error message:
Code:
<br />
<b>Fatal error</b>:  Call to undefined function:  imagecreate() in <b>/var/www/vhosts/driftboatcentral.com/httpdocs/info_test.php</b> on line <b>5</b><br />



this leads me to believe that i don't have the GD functions enabled/installed. i will pay someone (either $$ or huge compliments) if they can help a boob like me install/enable this.

thanks,
grant
Reply With Quote
  #16 (permalink)  
Old 10-07-2006, 05:26 PM
New Pligger
 
Join Date: Oct 2006
Posts: 19
I have test the above and I do see the oval shape. So I presume my gd is fine.
Furthermore my ts_image.php looks like the following:
<?php

// include('config.php'); //originally this line is NOT commented. This is to fix gd problem for registration verification..
include('libs/ts.php');
ts_gfx($_GET['ts_random']);
?>


I still dont get the registration image displayed.....my version is 6.1

Please help.
Or if you can tell me ho I can by-pass registration image that is fine too.

Thanks a lot!
Reply With Quote
  #17 (permalink)  
Old 10-07-2006, 05:29 PM
Pligg Developer/Admin
Pligg Version: 0
Pligg Template: none
 
Join Date: Jun 2006
Location: Muncie, Indiana
Posts: 3,215
can you keep the same question in 1 thread and not 2 or 3, please. Thank you.
Reply With Quote
  #18 (permalink)  
Old 01-17-2007, 02:14 PM
New Pligger
 
Join Date: Jan 2007
Posts: 1
hi guys,
I am having the same problem on Beta 9. I have tried the gd test and saw the oval fine. Does anyone have any suggestions on how to solve this?
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
why can't show validation image? manboo Questions and Comments 1 08-22-2006 08:05 AM


Pligg Modules and Pligg Templates from Pligg Pro Find support on the Pligg CMS Forum - 24 hours a day! Make a donation to support Pligg CMS development